Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

genksyms: remove Makefile hack

This workaround was introduced for suppressing the reduce/reduce conflict
warnings because the %expect-rr directive, which is applicable only to GLR
parsers, cannot be used for genksyms.

Since there are no longer any conflicts, this Makefile hack is now
unnecessary.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Nicolas Schier <n.schier@avm.de>

-18
-18
scripts/genksyms/Makefile
··· 4 4 5 5 genksyms-objs := genksyms.o parse.tab.o lex.lex.o 6 6 7 - # FIXME: fix the ambiguous grammar in parse.y and delete this hack 8 - # 9 - # Suppress shift/reduce, reduce/reduce conflicts warnings 10 - # unless W=1 is specified. 11 - # 12 - # Just in case, run "$(YACC) --version" without suppressing stderr 13 - # so that 'bison: not found' will be displayed if it is missing. 14 - ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),) 15 - 16 - quiet_cmd_bison_no_warn = $(quiet_cmd_bison) 17 - cmd_bison_no_warn = $(YACC) --version >/dev/null; \ 18 - $(cmd_bison) 2>/dev/null 19 - 20 - $(obj)/pars%.tab.c $(obj)/pars%.tab.h: $(src)/pars%.y FORCE 21 - $(call if_changed,bison_no_warn) 22 - 23 - endif 24 - 25 7 # -I needed for generated C source to include headers in source tree 26 8 HOSTCFLAGS_parse.tab.o := -I $(src) 27 9 HOSTCFLAGS_lex.lex.o := -I $(src)