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

Change-Id: 8503b19b17e629cd29c74b96b4016388af66e392
Co-authored-by: GhostMaster69-dev <rathore6375@gmail.com>
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
Signed-off-by: TogoFire <italomellopereira@gmail.com>
(cherry picked from commit 99cc51b70fb4c8be3b6f15aaee4f18fa39087f09)
  • Loading branch information
engstk authored and LucasBlackLu committed Dec 1, 2024
1 parent be048bb commit 628121a
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 @@ -204,20 +204,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 628121a

Please sign in to comment.