]> git.ipfire.org Git - thirdparty/linux.git/commit
checkpatch: don't complain on _Generic() use
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Mon, 16 Dec 2024 14:15:30 +0000 (15:15 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 17 Dec 2024 17:32:08 +0000 (09:32 -0800)
commit20d00cfae627f048560c46ba5849011a34515103
treeddf56864e4b239a8af2809409baef3a4dad6b4fd
parentd22f955cc2cb9684dd45396f974101f288869485
checkpatch: don't complain on _Generic() use

Improve CamelCase recognition logic to avoid reporting on
 _Generic() use.

Other C keywords, such as _Bool, are intentionally omitted, as those
should be rather avoided in new source code.

Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
scripts/checkpatch.pl