linux/scripts/genksyms
Masahiro Yamada aa710cee0d genksyms: restrict direct-declarator to take one parameter-type-list
Similar to the previous commit, this change makes the parser logic a
little more accurate.

Currently, genksyms accepts the following invalid code:

    struct foo {
            int (*callback)(int)(int)(int);
    };

A direct-declarator should not recursively absorb multiple
( parameter-type-list ) constructs.

In the example above, (*callback) should be followed by at most one
(int).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Nicolas Schier <n.schier@avm.de>
2025-01-18 09:11:46 +09:00
..
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
genksyms.c genksyms: use uint32_t instead of unsigned long for calculating CRC 2025-01-10 23:01:22 +09:00
genksyms.h genksyms: fix 6 shift/reduce conflicts and 5 reduce/reduce conflicts 2025-01-18 09:11:38 +09:00
keywords.c genksyms: Ignore module scoped _Static_assert() 2020-12-21 13:57:08 +09:00
lex.l genksyms: fix 6 shift/reduce conflicts and 5 reduce/reduce conflicts 2025-01-18 09:11:38 +09:00
Makefile genksyms: remove Makefile hack 2025-01-18 09:11:46 +09:00
parse.y genksyms: restrict direct-declarator to take one parameter-type-list 2025-01-18 09:11:46 +09:00