Skip to content

Commit

Permalink
scripts: Makefile.build: silent nm error message
Browse files Browse the repository at this point in the history
fixes ClangBuiltLinux/linux#1651

Signed-off-by: engstk <eng.stk@sapo.pt>
  • Loading branch information
engstk authored and Thereache committed Feb 17, 2025
1 parent ee4e5ee commit d24fdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ifdef CONFIG_LTO_CLANG
# Generate .o.symversions files for each .o with exported symbols, and link these
# to the kernel and/or modules at the end.
cmd_modversions_c = \
if $(LLVM_NM) $@ | grep -q __ksymtab; then \
if $(LLVM_NM) $@ 2>/dev/null | grep -q __ksymtab; then \
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
> $@.symversions; \
fi;
Expand Down

0 comments on commit d24fdf2

Please sign in to comment.