]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: lib: Remove '.hidden' for local symbols
authorNathan Chancellor <nathan@kernel.org>
Tue, 9 Jun 2026 03:36:25 +0000 (20:36 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Jun 2026 10:21:31 +0000 (12:21 +0200)
commit5dcd5846f1f9ee637613b285332e9bdb90757eb5
tree90af4412bc09d49d2b2fc9e4a787abddd44a35fe
parent315b21cf81780acf961a5bc9eaf979003c1bf8c4
MIPS: lib: Remove '.hidden' for local symbols

After a recent change in binutils that warns when local symbols have
non-default visibility [1], there are a couple instances when building
arch/mips:

  Assembler messages:
  {standard input}: Warning: local symbol `__memset' has non-default visibility
  Assembler messages:
  {standard input}: Warning: local symbol `__memcpy' has non-default visibility

Remove the '.hidden' directives for these symbols to clear up the
warnings, as they are pointless with a local symbol, which is by
definition hidden. This results in no changes to these symbols in nm's
output when assembled with various copies of binutils.

Closes: https://lore.kernel.org/20260509122517.GA1108596@ax162/
Link: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c4150acbda1b3ce0602f79cbb7700b39e577be7e
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/lib/memcpy.S
arch/mips/lib/memset.S