Re: [PATCH] arm64: scripts/sorttable: Implement sorting mcount_loc at boot for arm64
From: Steven Rostedt
Date: Tue Feb 11 2025 - 10:46:47 EST
On Tue, 11 Feb 2025 17:07:13 +0800
kernel test robot <lkp@xxxxxxxxx> wrote:
> All warnings (new ones prefixed by >>):
>
> >> 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)
> | ^~~~~~~~~~~~~~~~~
> >> 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