2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 08:44:14 +08:00
linux-next/scripts/genksyms
Jan Beulich dc53324060 genksyms: fix typeof() handling
Recent increased use of typeof() throughout the tree resulted in a
number of symbols (25 in a typical distro config of ours) not getting a
proper CRC calculated for them anymore, due to the parser in genksyms
not coping with several of these uses (interestingly in the majority of
[if not all] cases the problem is due to the use of typeof() in code
preceding a certain export, not in the declaration/definition of the
exported function/object itself; I wasn't able to find a way to address
this more general parser shortcoming).

The use of parameter_declaration is a little more relaxed than would be
ideal (permitting not just a bare type specification, but also one with
identifier), but since the same code is being passed through an actual
compiler, there's no apparent risk of allowing through any broken code.

Otoh using parameter_declaration instead of the ad hoc
"decl_specifier_seq '*'" / "decl_specifier_seq" pair allows all types to
be handled rather than just plain ones and pointers to plain ones.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-03 16:20:52 -07:00
..
.gitignore genksyms: migrate parser to implicit rules 2011-06-09 14:04:41 -04:00
genksyms.c genksyms: pass symbol-prefix instead of arch 2013-03-20 11:27:27 +10:30
genksyms.h genksyms: Do not expand internal types 2011-10-11 12:00:39 +02:00
keywords.gperf genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00
keywords.hash.c_shipped genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00
lex.l genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00
lex.lex.c_shipped genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00
Makefile scripts/genksyms: clean lex/yacc generated files 2012-01-08 14:48:15 +01:00
parse.tab.c_shipped genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00
parse.tab.h_shipped genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00
parse.y genksyms: fix typeof() handling 2014-04-03 16:20:52 -07:00