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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steven,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.14-rc2 next-20250210]
[cannot apply to arm64/for-next/core arm-perf/for-next/perf kvmarm/next soc/for-next arm/for-next arm/fixes]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Steven-Rostedt/arm64-scripts-sorttable-Implement-sorting-mcount_loc-at-boot-for-arm64/20250211-032956
base:   linus/master
patch link:    https://lore.kernel.org/r/20250210142647.083ff456%40gandalf.local.home
patch subject: [PATCH] arm64: scripts/sorttable: Implement sorting mcount_loc at boot for arm64
config: riscv-randconfig-001-20250211 (https://download.01.org/0day-ci/archive/20250211/202502111626.K7CTghCR-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250211/202502111626.K7CTghCR-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502111626.K7CTghCR-lkp@xxxxxxxxx/

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)
         | ^~~~~~~~~
>> scripts/sorttable.c:287:17: warning: 'rela_info' defined but not used [-Wunused-function]
     287 | static uint64_t rela_##fn_name(Elf_Rela *rela)          \
         |                 ^~~~~
   scripts/sorttable.c:293:1: note: in expansion of macro 'RELA_ADDR'
     293 | RELA_ADDR(info)
         | ^~~~~~~~~
>> scripts/sorttable.c:287:17: warning: 'rela_offset' defined but not used [-Wunused-function]
     287 | static uint64_t rela_##fn_name(Elf_Rela *rela)          \
         |                 ^~~~~
   scripts/sorttable.c:292:1: note: in expansion of macro 'RELA_ADDR'
     292 | RELA_ADDR(offset)
         | ^~~~~~~~~
   In file included from arch/riscv/kernel/asm-offsets.c:10:
   include/linux/ftrace.h: In function 'ftrace_get_regs':
   include/linux/ftrace.h:190:16: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'arch_ftrace_regs'? [-Wimplicit-function-declaration]
     190 |         return arch_ftrace_get_regs(fregs);
         |                ^~~~~~~~~~~~~~~~~~~~
         |                arch_ftrace_regs
   include/linux/ftrace.h:190:16: error: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion]
     190 |         return arch_ftrace_get_regs(fregs);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   make[3]: *** [scripts/Makefile.build:102: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=1925395641
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1264: prepare0] Error 2 shuffle=1925395641
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=1925395641
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:251: __sub-make] Error 2 shuffle=1925395641
   make: Target 'prepare' not remade because of errors.


vim +/rela_write_addend +306 scripts/sorttable.c

   275	
   276	#define RELA_ADDR(fn_name)				\
   277	static uint64_t rela64_##fn_name(Elf_Rela *rela)	\
   278	{							\
   279		return r8((uint64_t *)&rela->e64.r_##fn_name);	\
   280	}							\
   281								\
   282	static uint64_t rela32_##fn_name(Elf_Rela *rela)	\
   283	{							\
   284		return r((uint32_t *)&rela->e32.r_##fn_name);	\
   285	}							\
   286								\
 > 287	static uint64_t rela_##fn_name(Elf_Rela *rela)		\
   288	{							\
   289		return e.rela_##fn_name(rela);			\
   290	}
   291	
   292	RELA_ADDR(offset)
   293	RELA_ADDR(info)
   294	RELA_ADDR(addend)
   295	
   296	static void rela64_write_addend(Elf_Rela *rela, uint64_t val)
   297	{
   298		w8(val, (uint64_t *)&rela->e64.r_addend);
   299	}
   300	
   301	static void rela32_write_addend(Elf_Rela *rela, uint64_t val)
   302	{
   303		w(val, (uint32_t *)&rela->e32.r_addend);
   304	}
   305	
 > 306	static void rela_write_addend(Elf_Rela *rela, uint64_t val)
   307	{
   308		e.rela_write_addend(rela, val);
   309	}
   310	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux