[PATCH v3 01/11] checkpatch: check for nested (un)?likely() calls

Markus Elfring Markus.Elfring at web.de
Sat Aug 31 09:15:20 UTC 2019


> +# nested likely/unlikely calls
> +		if ($line =~ /\b(?:(?:un)?likely)\s*\(\s*!?\s*(IS_ERR(?:_OR_NULL|_VALUE)?|WARN)/) {
> +			WARN("LIKELY_MISUSE",

How do you think about to use the specification “(?:IS_ERR(?:_(?:OR_NULL|VALUE))?|WARN)”
in this regular expression?

Regards,
Markus


More information about the dri-devel mailing list