Skip to content

Commit

Permalink
kbuild: Send various piping stderr stream output to /dev/null
Browse files Browse the repository at this point in the history
- This suppresses following errors for us:

  error: write on a pipe with no reader

- Fix references are from issue ClangBuiltLinux/linux#1651

Co-authored-by: GhostMaster69-dev <rathore6375@gmail.com>
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri0927936@gmail.com>
Signed-off-by: rezaadi0105 <rezaadipangestu5@gmail.com>
  • Loading branch information
2 people authored and rezaadi0105 committed Feb 9, 2025
1 parent 027f99f commit cf94553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -220,20 +220,20 @@ ifdef CONFIG_LTO_CLANG
# to the kernel and/or modules at the end.
cmd_modversions_c = \
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) >/dev/null 2>/dev/null; then \
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
> $(@D)/$(@F).symversions; \
fi; \
else \
if $(LLVM_NM) $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
if $(LLVM_NM) $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
> $(@D)/$(@F).symversions; \
fi; \
fi; \
mv -f $(@D)/.tmp_$(@F) $@;
else
cmd_modversions_c = \
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
> $(@D)/.tmp_$(@F:.o=.ver); \
\
Expand Down

0 comments on commit cf94553

Please sign in to comment.