arch/xtensa/lib/umulsidi3.S:18:7: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0

From: kernel test robot
Date: Thu Sep 14 2023 - 17:14:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9fdfb15a3dbf818e06be514f4abbfc071004cbe7
commit: 8939c58d68f97ce530f02d46c9f2b56c3ec88399 xtensa: add __umulsidi3 helper
date: 9 months ago
config: xtensa-randconfig-001-20230914 (https://download.01.org/0day-ci/archive/20230915/202309150556.t0yCdv3g-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230915/202309150556.t0yCdv3g-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/202309150556.t0yCdv3g-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> arch/xtensa/lib/umulsidi3.S:18:7: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
18 | #elif XCHAL_NO_MUL
| ^~~~~~~~~~~~
arch/xtensa/lib/umulsidi3.S:159:5: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
159 | #if XCHAL_NO_MUL
| ^~~~~~~~~~~~


vim +/XCHAL_NO_MUL +18 arch/xtensa/lib/umulsidi3.S

11
12 #ifdef __XTENSA_CALL0_ABI__
13 abi_entry(32)
14 s32i a12, sp, 16
15 s32i a13, sp, 20
16 s32i a14, sp, 24
17 s32i a15, sp, 28
> 18 #elif XCHAL_NO_MUL
19 /* This is not really a leaf function; allocate enough stack space
20 to allow CALL12s to a helper function. */
21 abi_entry(32)
22 #else
23 abi_entry_default
24 #endif
25

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