Re: [PATCHv2 net-next 08/10] net: lantiq_etop: use module_platform_driver_probe

From: kernel test robot
Date: Thu Oct 03 2024 - 19:27:20 EST


Hi Rosen,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/net-lantiq_etop-use-netif_receive_skb_list/20241002-025104
base: net-next/main
patch link: https://lore.kernel.org/r/20241001184607.193461-9-rosenp%40gmail.com
patch subject: [PATCHv2 net-next 08/10] net: lantiq_etop: use module_platform_driver_probe
config: mips-xway_defconfig (https://download.01.org/0day-ci/archive/20241004/202410040710.C5horFtF-lkp@xxxxxxxxx/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project fef3566a25ff0e34fb87339ba5e13eca17cec00f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241004/202410040710.C5horFtF-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/202410040710.C5horFtF-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/net/ethernet/lantiq_etop.c:14:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/mips/include/asm/cacheflush.h:13:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> drivers/net/ethernet/lantiq_etop.c:689:30: error: expected identifier or '('
689 | module_platform_driver_probe(&ltq_mii_driver, ltq_etop_probe);
| ^
>> drivers/net/ethernet/lantiq_etop.c:689:1: error: pasting formed '_&', an invalid preprocessing token
689 | module_platform_driver_probe(&ltq_mii_driver, ltq_etop_probe);
| ^
include/linux/platform_device.h:324:3: note: expanded from macro 'module_platform_driver_probe'
324 | } \
| ^
include/linux/module.h:88:24: note: expanded from macro '\
module_init'
88 | #define module_init(x) __initcall(x);
| ^
include/linux/init.h:316:24: note: expanded from macro '__initcall'
316 | #define __initcall(fn) device_initcall(fn)
| ^
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/init.h:214:2: note: expanded from macro '__initcall_id'
214 | __PASTE(_, fn))))))
| ^
include/linux/compiler_types.h:84:22: note: expanded from macro '__PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^
include/linux/compiler_types.h:83:24: note: expanded from macro '___PASTE'
83 | #define ___PASTE(a,b) a##b
| ^
>> drivers/net/ethernet/lantiq_etop.c:689:30: error: expected ';' after top level declarator
689 | module_platform_driver_probe(&ltq_mii_driver, ltq_etop_probe);
| ^
>> drivers/net/ethernet/lantiq_etop.c:689:30: error: expected identifier or '('
>> drivers/net/ethernet/lantiq_etop.c:689:1: error: pasting formed '__exitcall_&', an invalid preprocessing token
689 | module_platform_driver_probe(&ltq_mii_driver, ltq_etop_probe);
| ^
include/linux/platform_device.h:329:3: note: expanded from macro 'module_platform_driver_probe'
329 | } \
| ^
include/linux/module.h:100:24: note: expanded from macro '\
module_exit'
100 | #define module_exit(x) __exitcall(x);
| ^
include/linux/init.h:319:31: note: expanded from macro '__exitcall'
319 | static exitcall_t __exitcall_##fn __exit_call = fn
| ^
>> drivers/net/ethernet/lantiq_etop.c:689:30: error: expected ';' after top level declarator
689 | module_platform_driver_probe(&ltq_mii_driver, ltq_etop_probe);
| ^
1 warning and 6 errors generated.


vim +689 drivers/net/ethernet/lantiq_etop.c

688
> 689 module_platform_driver_probe(&ltq_mii_driver, ltq_etop_probe);
690

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