aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2025-01-13 15:00:53 +0000
committerMasahiro Yamada <[email protected]>2025-01-26 22:43:21 +0000
commit6494bd2d05f927fc0395c2ea11461517a9e0bb80 (patch)
treee6efa921872a3d11560c218147a8a4c6cdbb5730 /net/unix/unix_bpf.c
parentgenksyms: fix syntax error for attribute after 'struct' (diff)
downloadkernel-6494bd2d05f927fc0395c2ea11461517a9e0bb80.tar.gz
kernel-6494bd2d05f927fc0395c2ea11461517a9e0bb80.zip
genksyms: fix syntax error for attribute after 'union'
A longstanding issue with genksyms is that it has hidden syntax errors. When a syntax error occurs, yyerror() is called. However, error_with_pos() is a no-op unless the -w option is provided. You can observe syntax errors by manually passing the -w option. For example, with CONFIG_MODVERSIONS=y on v6.13-rc1: $ make -s KCFLAGS=-D__GENKSYMS__ fs/lockd/svc.i $ cat fs/lockd/svc.i | scripts/genksyms/genksyms -w [ snip ] ./include/net/addrconf.h:35: syntax error The syntax error occurs in the following code in include/net/addrconf.h: union __packed { [ snip ] }; The issue arises from __packed, which is defined as __attribute__((__packed__)), immediately after the 'union' keyword. This commit allows the 'union' keyword to be followed by attributes. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Nicolas Schier <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions