summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2025-03-26 02:51:55 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-05-12 03:54:05 +0300
commit15d4734c7a5837bd1a3d261ae232fa698fef39c4 (patch)
tree730622792d04baf62bda5f8f02318e070288a49c /scripts/gdb/linux/utils.py
parentdf3d527495376e29333035e087ead194580ea3b2 (diff)
downloadlinux-15d4734c7a5837bd1a3d261ae232fa698fef39c4.tar.xz
checkpatch: qualify do-while-0 advice
Add a paragraph of advice qualifying the general do-while-0 advice, noting 3 possible misguidings. reduce one ERROR to WARN, for the case I actually encountered. And add 'static_assert' to named exceptions, along with some additional comments about named exceptions vs (detection of) declarative construction primitives (union, struct, [], etc). Link: https://lkml.kernel.org/r/20250325235156.663269-3-jim.cromie@gmail.com Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Cc: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Cc: Dwaipayan Ray <dwaipayanray1@gmail.com> Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com> Cc: Louis Chauvet <louis.chauvet@bootlin.com> Cc: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions