Re: [PATCH v4] riscv: Add runtime constant support
From: kernel test robot
Date: Mon Feb 03 2025 - 12:09:29 EST
Hi Charlie,
kernel test robot noticed the following build errors:
[auto build test ERROR on ffd294d346d185b70e28b1a28abe367bbfe53c04]
url: https://github.com/intel-lab-lkp/linux/commits/Charlie-Jenkins/riscv-Add-runtime-constant-support/20250131-092950
base: ffd294d346d185b70e28b1a28abe367bbfe53c04
patch link: https://lore.kernel.org/r/20250130-runtime_const_riscv-v4-1-2d36c41b7b9c%40rivosinc.com
patch subject: [PATCH v4] riscv: Add runtime constant support
config: riscv-randconfig-002-20250203 (https://download.01.org/0day-ci/archive/20250204/202502040018.8DyjnzNe-lkp@xxxxxxxxx/config)
compiler: riscv32-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250204/202502040018.8DyjnzNe-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/202502040018.8DyjnzNe-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from fs/dcache.c:38:
arch/riscv/include/asm/runtime-const.h: In function '__runtime_fixup_ptr':
arch/riscv/include/asm/runtime-const.h:167:63: warning: right shift count >= width of type [-Wshift-count-overflow]
167 | __runtime_fixup_32(where + 4, where + 12, val >> 32);
| ^~
fs/dcache.c: In function 'd_hash':
arch/riscv/include/asm/runtime-const.h:13:28: warning: unused variable '__tmp' [-Wunused-variable]
13 | typeof(sym) __ret, __tmp; \
| ^~~~~
fs/dcache.c:112:16: note: in expansion of macro 'runtime_const_ptr'
112 | return runtime_const_ptr(dentry_hashtable) +
| ^~~~~~~~~~~~~~~~~
fs/dcache.c: Assembler messages:
>> fs/dcache.c:116: Error: illegal operands `addi a0,-0x211'
vim +116 fs/dcache.c
ceb5bdc2d246f6 Nicholas Piggin 2011-01-07 115
94bdd655caba20 Al Viro 2016-04-15 @116 #define IN_LOOKUP_SHIFT 10
94bdd655caba20 Al Viro 2016-04-15 117 static struct hlist_bl_head in_lookup_hashtable[1 << IN_LOOKUP_SHIFT];
94bdd655caba20 Al Viro 2016-04-15 118
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki