Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: ignore __counted_by attribute in structure definitions

kernel-doc appeared to ignore __counted_by, but appearances can be
deceiving; it caused member names to not be recognized, which manifested as
a number of spurious "Excess struct member" warnings. Filter that
attribute out and reduce the warning onslaught slightly.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>

+1
+1
scripts/kernel-doc
··· 1143 1143 # strip attributes 1144 1144 $members =~ s/\s*$attribute/ /gi; 1145 1145 $members =~ s/\s*__aligned\s*\([^;]*\)/ /gos; 1146 + $members =~ s/\s*__counted_by\s*\([^;]*\)/ /gos; 1146 1147 $members =~ s/\s*__packed\s*/ /gos; 1147 1148 $members =~ s/\s*CRYPTO_MINALIGN_ATTR/ /gos; 1148 1149 $members =~ s/\s*____cacheline_aligned_in_smp/ /gos;