Commit 15e50d63 authored by Chen Zhongjin's avatar Chen Zhongjin
Browse files

kbuild: Fix grep -q waring

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9SOCR



---------------------------

For some aarch64 environment, grep -q can cause warning:
    error: write on a pipe with no reader

This is caused in compiling when:
    objdump -h kernel/sched/core.o | grep -q __ksymtab

grep -q __ksymtab is equal to grep __ksymtab > /dev/null,
Use the later command to fix above warning.

Signed-off-by: default avatarChen Zhongjin <chenzhongjin@huawei.com>
parent 6162efd8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ ifdef CONFIG_MODVERSIONS
# o remove .tmp_<file>.o to <file>.o

cmd_modversions_c =								\
	if $(OBJDUMP) -h $@ | grep -q __ksymtab; then				\
	if $(OBJDUMP) -h $@ | grep __ksymtab > /dev/null; then			\
		$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes))	\
		    > $(@D)/.tmp_$(@F:.o=.ver);					\
										\
@@ -352,7 +352,7 @@ ifdef CONFIG_ASM_MODVERSIONS
# we parse asm-prototypes.h C header to get function definitions.

cmd_modversions_S =								\
	if $(OBJDUMP) -h $@ | grep -q __ksymtab; then				\
	if $(OBJDUMP) -h $@ | grep __ksymtab > /dev/null; then			\
		$(call cmd_gensymtypes_S,$(KBUILD_SYMTYPES),$(@:.o=.symtypes))	\
		    > $(@D)/.tmp_$(@F:.o=.ver);					\
										\