Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 9d468c0

Browse files
engstkGhostMaster69-dev
authored andcommitted
kbuild: Send various piping stderr stream output to /dev/null
- 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 <[email protected]> Signed-off-by: GhostMaster69-dev <[email protected]>
1 parent 7841224 commit 9d468c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/Makefile.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,20 +220,20 @@ ifdef CONFIG_LTO_CLANG
220220
# to the kernel and/or modules at the end.
221221
cmd_modversions_c = \
222222
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) >/dev/null 2>/dev/null; then \
223-
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
223+
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
224224
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
225225
> $(@D)/$(@F).symversions; \
226226
fi; \
227227
else \
228-
if $(LLVM_NM) $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
228+
if $(LLVM_NM) $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
229229
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
230230
> $(@D)/$(@F).symversions; \
231231
fi; \
232232
fi; \
233233
mv -f $(@D)/.tmp_$(@F) $@;
234234
else
235235
cmd_modversions_c = \
236-
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
236+
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
237237
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
238238
> $(@D)/.tmp_$(@F:.o=.ver); \
239239
\

0 commit comments

Comments
 (0)