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

From: Markus Elfring
Date: Sat Aug 31 2019 - 05:17:06 EST


+# 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