]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
scripts/checkpatch.pl: some improvements to reduce false positives
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 17 Jul 2024 04:23:00 +0000 (06:23 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 17 Jul 2024 04:44:22 +0000 (06:44 +0200)
commitbb513b73fc34640d187a2b3cd97fcb9d50d36f4c
tree348d3b427e274b815b5ba2e07968646b22fe9889
parent7a69b22ccd965f9b84b94c1af1d9a6539160ce77
scripts/checkpatch.pl: some improvements to reduce false positives

- camelcase is OK for printk inttypes.h;
- strncpy is OK;
- accept up to 120 chars on lines without warnings;
- stop complaining about "BACKTRACE=" strings split on multiple lines;
- remove PREFER_DEFINED_ATTRIBUTE_MACRO, as this is kernel-specific;
- remove MACRO_ARG_REUSE, as this applies mostly to multithreading;
- don't warn on using do{} while(0) with single line statements;

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
scripts/checkpatch.pl