Skip to content

Commit 1fb71ed

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 b54acf2 commit 1fb71ed

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
@@ -215,20 +215,20 @@ ifdef CONFIG_LTO_CLANG
215215
# to the kernel and/or modules at the end.
216216
cmd_modversions_c = \
217217
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) >/dev/null 2>/dev/null; then \
218-
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
218+
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
219219
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
220220
> $(@D)/$(@F).symversions; \
221221
fi; \
222222
else \
223-
if $(LLVM_DIS) -o=- $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
223+
if $(LLVM_DIS) -o=- $(@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
fi; \
228228
mv -f $(@D)/.tmp_$(@F) $@;
229229
else
230230
cmd_modversions_c = \
231-
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
231+
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) 2>/dev/null | grep -q __ksymtab; then \
232232
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
233233
> $(@D)/.tmp_$(@F:.o=.ver); \
234234
\

0 commit comments

Comments
 (0)