Re: [PATCH v2] staging: octeon: remove SPI, POW, PKO, and Helper typedef enums
From: kernel test robot
Date: Fri Apr 17 2026 - 17:17:27 EST
Hi Maxwell,
kernel test robot noticed the following build errors:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Maxwell-Doose/staging-octeon-remove-SPI-POW-PKO-and-Helper-typedef-enums/20260417-103458
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20260415122939.77847-1-m32285159%40gmail.com
patch subject: [PATCH v2] staging: octeon: remove SPI, POW, PKO, and Helper typedef enums
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20260418/202604180530.yvwobb0w-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260418/202604180530.yvwobb0w-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/202604180530.yvwobb0w-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from drivers/staging/octeon/ethernet.c:23:
In file included from drivers/staging/octeon/octeon-ethernet.h:41:
>> drivers/staging/octeon/octeon-stubs.h:1270:49: error: incomplete result type 'struct cvmx_helper_interface_mode' in function definition
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^
drivers/staging/octeon/octeon-stubs.h:1270:22: note: forward declaration of 'struct cvmx_helper_interface_mode'
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^
>> drivers/staging/octeon/octeon-stubs.h:1273:9: error: returning 'int' from a function with incompatible result type 'struct cvmx_helper_interface_mode'
1273 | return 0;
| ^
2 errors generated.
vim +1270 drivers/staging/octeon/octeon-stubs.h
1269
> 1270 static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
1271 interface)
1272 {
> 1273 return 0;
1274 }
1275
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki