Re: [PATCH] genksyms: Handle typeof_unqual keyword and __seg_{fs,gs} qualifiers

Uros Bizjak
2025-04-14T07:53:05Z

On Mon, Apr 14, 2025 at 9:20 AM Ingo Molnar <mingo@kernel.org> wrote:
>
>
> * Uros Bizjak <ubizjak@gmail.com> wrote:
>
> > 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.
> >
> > Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
> > Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
> > Closes: https://lore.kernel.org/lkml/81a25a60-de78-43fb-b56a-131151e1c035@molgen.mpg.de/
> > Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Cc: Ingo Molnar <mingo@kernel.org>
> > Cc: Borislav Petkov <bp@alien8.de>
> > ---
> > scripts/genksyms/keywords.c | 7 +++++++
> > scripts/genksyms/parse.y | 5 ++++-
> > 2 files changed, 11 insertions(+), 1 deletion(-)
>
> Thanks, applied to tip:core/urgent.
>
> I've also added this tag for context:
>
> Fixes: ac053946f5c4 ("compiler.h: introduce TYPEOF_UNQUAL() macro")

Heh, I intentionally removed it because the patch now fixes genksyms.

No big deal, though.

Thanks,
Uros.