]> www.infradead.org Git - nvme.git/commit
genksyms: Handle typeof_unqual keyword and __seg_{fs,gs} qualifiers
authorUros Bizjak <ubizjak@gmail.com>
Sun, 13 Apr 2025 22:07:34 +0000 (00:07 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 Apr 2025 07:19:04 +0000 (09:19 +0200)
commit1013f5636fd808569c1f4c40a58a4efc70713a28
tree9dfe7d2784b33fd893e471b1581664780a011c44
parentd833dc597fdc79b3f5b1ca5817aa7a64897e13d3
genksyms: Handle typeof_unqual keyword and __seg_{fs,gs} qualifiers

Handle typeof_unqual, __typeof_unqual and __typeof_unqual__ keywords
using TYPEOF_KEYW token in the same way as typeof keyword.

Also ignore x86 __seg_fs and __seg_gs named address space qualifiers
using X86_SEG_KEYW token in the same way as const, volatile or
restrict qualifiers.

Fixes: ac053946f5c4 ("compiler.h: introduce TYPEOF_UNQUAL() macro")
Closes: https://lore.kernel.org/lkml/81a25a60-de78-43fb-b56a-131151e1c035@molgen.mpg.de/
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Link: https://lore.kernel.org/r/20250413220749.270704-1-ubizjak@gmail.com
scripts/genksyms/keywords.c
scripts/genksyms/parse.y