summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2025-01-13 18:00:46 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2025-01-18 03:11:46 +0300
commitaa710cee0d677043f49a447c4665df51a553a2ba (patch)
tree7fc392abc768492cec41f2fd920131edc49d7259 /scripts/gdb/linux/utils.py
parentc2f1846ba87ead7ac544be624c13249d6b90eca0 (diff)
downloadlinux-aa710cee0d677043f49a447c4665df51a553a2ba.tar.xz
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions