Re: [PATCH] MIPS: SiByte: Fix missing function prototypes

From: kernel test robot

Date: Fri Nov 13 2026 - 14:18:57 EST


Hi Florian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v7.4-rc2 next-20261112]
[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/Florian-Fainelli/MIPS-SiByte-Fix-missing-function-prototypes/20261112-115739
base: linus/master
patch link: https://lore.kernel.org/r/20261112195824.298915-1-f.fainelli%40gmail.com
patch subject: [PATCH] MIPS: SiByte: Fix missing function prototypes
config: mips-bcm63xx_defconfig (https://download.01.org/0day-ci/archive/20261114/202611140242.xhMf9lU3-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 1b1fed44d3dcca649a9877915d57c3357a98124e)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261114/202611140242.xhMf9lU3-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/202611140242.xhMf9lU3-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from arch/mips/mm/tlbex.c:40:
In file included from arch/mips/include/asm/sibyte/sb1250.h:28:
>> arch/mips/include/asm/sibyte/bcm1480_scd.h:261:9: warning: 'M_SPC_CFG_CLEAR' macro redefined [-Wmacro-redefined]
261 | #define M_SPC_CFG_CLEAR M_BCM1480_SPC_CFG_CLEAR
| ^
arch/mips/include/asm/sibyte/sb1250_scd.h:392:9: note: previous definition is here
392 | #define M_SPC_CFG_CLEAR _SB_MAKEMASK1(32)
| ^
In file included from arch/mips/mm/tlbex.c:40:
In file included from arch/mips/include/asm/sibyte/sb1250.h:28:
>> arch/mips/include/asm/sibyte/bcm1480_scd.h:262:9: warning: 'M_SPC_CFG_ENABLE' macro redefined [-Wmacro-redefined]
262 | #define M_SPC_CFG_ENABLE M_BCM1480_SPC_CFG_ENABLE
| ^
arch/mips/include/asm/sibyte/sb1250_scd.h:393:9: note: previous definition is here
393 | #define M_SPC_CFG_ENABLE _SB_MAKEMASK1(33)
| ^
2 warnings generated.


vim +/M_SPC_CFG_CLEAR +261 arch/mips/include/asm/sibyte/bcm1480_scd.h

4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 252
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 253 /*
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 254 * System Performance Counter Control Register (Table 32)
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 255 * Register: PERF_CNT_CFG_1
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 256 * BCM1480 specific
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 257 */
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 258 #define M_BCM1480_SPC_CFG_CLEAR _SB_MAKEMASK1(0)
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 259 #define M_BCM1480_SPC_CFG_ENABLE _SB_MAKEMASK1(1)
8deab1144b5535 include/asm-mips/sibyte/bcm1480_scd.h Mark Mason 2007-03-28 260 #if SIBYTE_HDR_FEATURE_CHIP(1480)
8deab1144b5535 include/asm-mips/sibyte/bcm1480_scd.h Mark Mason 2007-03-28 @261 #define M_SPC_CFG_CLEAR M_BCM1480_SPC_CFG_CLEAR
8deab1144b5535 include/asm-mips/sibyte/bcm1480_scd.h Mark Mason 2007-03-28 @262 #define M_SPC_CFG_ENABLE M_BCM1480_SPC_CFG_ENABLE
8deab1144b5535 include/asm-mips/sibyte/bcm1480_scd.h Mark Mason 2007-03-28 263 #endif
4cbf2beac2265b include/asm-mips/sibyte/bcm1480_scd.h Andrew Isaacson 2005-10-19 264

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