Message ID | 20241211223231.397203-2-anthony.l.nguyen@intel.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | ice: add support for devlink health events | expand |
On Wed, 11 Dec 2024 14:32:09 -0800 Tony Nguyen wrote: > 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. You're probably better off separating this out, we can't apply without Joe's Ack. I'm not sure what the latency for that will be.
On Thu, 2024-12-12 at 19:01 -0800, Jakub Kicinski wrote: > On Wed, 11 Dec 2024 14:32:09 -0800 Tony Nguyen wrote: > > 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. > > You're probably better off separating this out, we can't apply without > Joe's Ack. I'm not sure what the latency for that will be. It's fine to apply. I believe I acked earlier versions.
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9eed3683ad76..a2066a6c9dd8 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5843,6 +5843,8 @@ sub process { #CamelCase if ($var !~ /^$Constant$/ && $var =~ /[A-Z][a-z]|[a-z][A-Z]/ && +#Ignore C keywords + $var !~ /^_Generic$/ && #Ignore some autogenerated defines and enum values $var !~ /^(?:[A-Z]+_){1,5}[A-Z]{1,3}[a-z]/ && #Ignore Page<foo> variants