[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0d9345ed-f16a-de0b-6125-1f663765eb46@web.de>
Date: Sat, 31 Aug 2019 11:15:20 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Denis Efremov <efremov@...ux.com>, Joe Perches <joe@...ches.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Anton Altaparmakov <anton@...era.com>,
Andy Whitcroft <apw@...onical.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Boris Pismenny <borisp@...lanox.com>,
"Darrick J. Wong" <darrick.wong@...cle.com>,
"David S. Miller" <davem@...emloft.net>,
Dennis Dalessandro <dennis.dalessandro@...el.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
dri-devel@...ts.freedesktop.org,
Inaky Perez-Gonzalez <inaky.perez-gonzalez@...el.com>,
Jürgen Groß <jgross@...e.com>,
Leon Romanovsky <leon@...nel.org>,
linux-arm-msm@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-ntfs-dev@...ts.sourceforge.net, linux-rdma@...r.kernel.org,
linux-wimax@...el.com, linux-xfs@...r.kernel.org,
Mike Marciniszyn <mike.marciniszyn@...el.com>,
netdev@...r.kernel.org,
Pali Rohár <pali.rohar@...il.com>,
Rob Clark <robdclark@...il.com>,
Saeed Mahameed <saeedm@...lanox.com>,
Sean Paul <sean@...rly.run>,
Alexander Viro <viro@...iv.linux.org.uk>,
xen-devel@...ts.xenproject.org, Enrico Weigelt <lkml@...ux.net>
Subject: Re: [PATCH v3 01/11] checkpatch: check for nested (un)?likely() calls
> +# 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
Powered by blists - more mailing lists