Re: [PATCH] kbuild: Fix 'no symbols' warning when CONFIG_TRIM_UNUSD_KSYMS=y

From: Masahiro Yamada
Date: Wed Aug 18 2021 - 00:29:51 EST


On Sun, Aug 15, 2021 at 12:18 PM Fāng-ruì Sòng <maskray@xxxxxxxxxx> wrote:
>
> On Sat, Aug 14, 2021 at 6:15 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
> >
> > On 8/14/2021 4:41 PM, Masahiro Yamada wrote:
> > > When CONFIG_TRIM_UNUSED_KSYMS is enabled, I see some warnings like this:
> > >
> > > nm: arch/x86/entry/vdso/vdso32/note.o: no symbols
> > >
> > > $NM (both GNU nm and llvm-nm) warns when no symbol is found in the
> > > object. Suppress the stderr.
> > >
> > > Fixes: bbda5ec671d3 ("kbuild: simplify dependency generation for CONFIG_TRIM_UNUSED_KSYMS")
> > > Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
>
> LGTM.
>
> FWIW binutils>=2.37 `nm -q` can be used to suppress "no symbols"
> https://sourceware.org/bugzilla/show_bug.cgi?id=27408
>
> llvm-nm>=13.0.0 supports -q as well.


Thanks for the info.
Perhaps, I can note the future migration to -q
in a comment.






--
Best Regards
Masahiro Yamada