Thread (10 messages) 10 messages, 4 authors, 2019-08-31

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

From: Markus Elfring <hidden>
Date: 2019-08-31 09:16:33
Also in: dri-devel, linux-arm-msm, linux-fsdevel, linux-input, linux-rdma, linux-xfs, lkml, xen-devel

+# 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help