[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v3 01/11] checkpatch: check for nested (un)?likely() calls
- To: Denis Efremov <efremov@xxxxxxxxx>, Joe Perches <joe@xxxxxxxxxxx>
- From: Markus Elfring <Markus.Elfring@xxxxxx>
- Date: Sat, 31 Aug 2019 11:15:20 +0200
- Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx, Leon Romanovsky <leon@xxxxxxxxxx>, "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>, linux-rdma@xxxxxxxxxxxxxxx, Inaky Perez-Gonzalez <inaky.perez-gonzalez@xxxxxxxxx>, Saeed Mahameed <saeedm@xxxxxxxxxxxx>, linux-input@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, Boris Pismenny <borisp@xxxxxxxxxxxx>, linux-arm-msm@xxxxxxxxxxxxxxx, linux-wimax@xxxxxxxxx, Enrico Weigelt <lkml@xxxxxxxxx>, Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>, Andy Whitcroft <apw@xxxxxxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Sean Paul <sean@xxxxxxxxxx>, Anton Altaparmakov <anton@xxxxxxxxxx>, Jürgen Groß <jgross@xxxxxxxx>, Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx>, linux-ntfs-dev@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>, Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxxxxxx, Rob Clark <robdclark@xxxxxxxxx>, Pali Rohár <pali.rohar@xxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>
- Delivery-date: Sun, 01 Sep 2019 14:49:39 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
+# 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|