Re: [PATCH] staging: octeon: remove SPI, POW, PKO, and Helper typedef enums
From: kernel test robot
Date: Tue Apr 14 2026 - 22:46:47 EST
Hi Maxwell,
kernel test robot noticed the following build warnings:
[auto build test WARNING 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/20260415-004127
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20260412000226.2711800-1-m32285159%40gmail.com
patch subject: [PATCH] staging: octeon: remove SPI, POW, PKO, and Helper typedef enums
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260415/202604151042.H0SJqN2r-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260415/202604151042.H0SJqN2r-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/202604151042.H0SJqN2r-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from drivers/staging/octeon/octeon-ethernet.h:41,
from drivers/staging/octeon/ethernet.c:23:
drivers/staging/octeon/octeon-stubs.h:1270:22: error: 'cvmx_helper_interface_mode' defined as wrong kind of tag
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/octeon-stubs.h:1270:49: error: return type is an incomplete type
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/octeon-stubs.h: In function 'cvmx_helper_interface_get_mode':
>> drivers/staging/octeon/octeon-stubs.h:1273:16: warning: 'return' with a value, in function returning void [-Wreturn-type]
1273 | return 0;
| ^
drivers/staging/octeon/octeon-stubs.h:1270:49: note: declared here
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/ethernet.c: In function 'cvm_oct_common_change_mtu':
drivers/staging/octeon/ethernet.c:252:14: error: void value not ignored as it ought to be
252 | (cvmx_helper_interface_get_mode(interface) !=
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/ethernet.c: In function 'cvm_oct_common_set_multicast_list':
drivers/staging/octeon/ethernet.c:298:14: error: void value not ignored as it ought to be
298 | (cvmx_helper_interface_get_mode(interface) !=
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/ethernet.c: In function 'cvm_oct_set_mac_filter':
drivers/staging/octeon/ethernet.c:350:14: error: void value not ignored as it ought to be
350 | (cvmx_helper_interface_get_mode(interface) !=
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/ethernet.c: In function 'cvm_oct_probe':
drivers/staging/octeon/ethernet.c:801:22: error: 'cvmx_helper_interface_mode' defined as wrong kind of tag
801 | enum cvmx_helper_interface_mode imode =
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/ethernet.c:801:22: error: variable 'imode' has initializer but incomplete type
drivers/staging/octeon/ethernet.c:801:49: error: storage size of 'imode' isn't known
801 | enum cvmx_helper_interface_mode imode =
| ^~~~~
drivers/staging/octeon/ethernet.c:801:49: warning: unused variable 'imode' [-Wunused-variable]
--
In file included from drivers/staging/octeon/octeon-ethernet.h:41,
from drivers/staging/octeon/ethernet-mdio.c:15:
drivers/staging/octeon/octeon-stubs.h:1270:22: error: 'cvmx_helper_interface_mode' defined as wrong kind of tag
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/octeon-stubs.h:1270:49: error: return type is an incomplete type
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/octeon/octeon-stubs.h: In function 'cvmx_helper_interface_get_mode':
>> drivers/staging/octeon/octeon-stubs.h:1273:16: warning: 'return' with a value, in function returning void [-Wreturn-type]
1273 | return 0;
| ^
drivers/staging/octeon/octeon-stubs.h:1270:49: note: declared here
1270 | static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/return +1273 drivers/staging/octeon/octeon-stubs.h
422d97b8b05ed38 Chris Packham 2020-02-05 1269
8912373dc44ef18 Maxwell Doose 2026-04-11 @1270 static inline struct cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
422d97b8b05ed38 Chris Packham 2020-02-05 1271 interface)
422d97b8b05ed38 Chris Packham 2020-02-05 1272 {
422d97b8b05ed38 Chris Packham 2020-02-05 @1273 return 0;
422d97b8b05ed38 Chris Packham 2020-02-05 1274 }
422d97b8b05ed38 Chris Packham 2020-02-05 1275
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki