Thread (6 messages) flat view 6 messages, 3 authors, 2025-02-13

Re: [PATCH] arm64: scripts/sorttable: Implement sorting mcount_loc at boot for arm64

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-02-11 15:46:35
Also in: linux-arm-kernel, linux-s390, lkml, oe-kbuild-all

On Tue, 11 Feb 2025 17:07:13 +0800
kernel test robot [off-list ref] wrote:
All warnings (new ones prefixed by >>):
quoted
quoted
scripts/sorttable.c:306:13: warning: 'rela_write_addend' defined but not used [-Wunused-function]  
     306 | static void rela_write_addend(Elf_Rela *rela, uint64_t val)
         |             ^~~~~~~~~~~~~~~~~
quoted
quoted
scripts/sorttable.c:287:17: warning: 'rela_addend' defined but not used [-Wunused-function]  
     287 | static uint64_t rela_##fn_name(Elf_Rela *rela)          \
         |                 ^~~~~
   scripts/sorttable.c:294:1: note: in expansion of macro 'RELA_ADDR'
     294 | RELA_ADDR(addend)
         | ^~~~~~~~~
The above isn't used if sorting isn't enabled.

Looks like I'll have to add some "__maybe_unused" attributes.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help