Re: [PATCH] m68k: implement runtime consts

kernel test robot
2025-11-27T01:59:37Z

Hi Daniel,

kernel test robot noticed the following build warnings:

[auto build test WARNING on geert-m68k/for-next]
[also build test WARNING on geert-m68k/for-linus linus/master v6.18-rc7 next-20251126]
[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/Daniel-Palmer/m68k-implement-runtime-consts/20251127-080652
base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
patch link: https://lore.kernel.org/r/20251127000505.2117956-1-daniel%40thingy.jp
patch subject: [PATCH] m68k: implement runtime consts
config: m68k-allnoconfig (https://download.01.org/0day-ci/archive/20251127/202511270956.hzGiPzdZ-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251127/202511270956.hzGiPzdZ-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511270956.hzGiPzdZ-lkp@intel.com/

All warnings (new ones prefixed by >>):

In file included from fs/dcache.c:38:
arch/m68k/include/asm/runtime-const.h: In function '__runtime_fixup_ptr':
>> arch/m68k/include/asm/runtime-const.h:28:29: warning: unused variable 'end' [-Wunused-variable]
28 | const unsigned long end = start + sizeof(*value);
| ^~~
arch/m68k/include/asm/runtime-const.h: In function '__runtime_fixup_shift':
arch/m68k/include/asm/runtime-const.h:51:29: warning: unused variable 'end' [-Wunused-variable]
51 | const unsigned long end = start + sizeof(*insn);
| ^~~

vim +/end +28 arch/m68k/include/asm/runtime-const.h

13
14 #define runtime_const_ptr(sym) ({ \
15 typeof(sym) __ret; \
16 asm_inline("1:\t" \
17 "mov.l #0xcafef00d,%0\n\t" \
18 ".pushsection runtime_ptr_" #sym ",\"a\"\n\t" \
19 ".long 1b - .\n\t" \
20 ".popsection" \
21 : "=a" (__ret)); \
22 __ret; })
23
24 static inline void __runtime_fixup_ptr(void *where, unsigned long val)
25 {
26 u32 *value = where + 2;
27 const unsigned long start = ((unsigned long) where) + 2;
> 28 const unsigned long end = start + sizeof(*value);
29
30 *value = val;
31
32 flush_icache_range(start, end);
33 }
34

--
0-DAY CI Kernel Test Service