
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: Chen Zhongjin <chenzhongjin@huawei.com> --- scripts/Makefile.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 17e8b20659001..585d4e98211c0 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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); \ \ -- 2.25.1