tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git rockchip-canfd-downstream head: 57a1d7b3fcdc3ccf99336327347d54ad630a4485 commit: ffed8877bb0efe42f7a0c9022c414d32f97843b3 [8/32] can: rockchip_can: remove obsolete CAN LED support config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20240905/202409051911.L8wo8jx3-lkp@xxxxxxxxx/config) compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240905/202409051911.L8wo8jx3-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/202409051911.L8wo8jx3-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): | ^~ include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ drivers/net/can/rockchip/rockchip_can.c:737:17: note: in expansion of macro 'dev_err' 737 | dev_err(&pdev->dev, "bus clock not found\n"); | ^~~~~~~ drivers/net/can/rockchip/rockchip_can.c:741:26: error: invalid use of undefined type 'struct platform_device' 741 | rcan->dev = &pdev->dev; | ^~ drivers/net/can/rockchip/rockchip_can.c:751:9: error: implicit declaration of function 'platform_set_drvdata' [-Wimplicit-function-declaration] 751 | platform_set_drvdata(pdev, ndev); | ^~~~~~~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:752:35: error: invalid use of undefined type 'struct platform_device' 752 | SET_NETDEV_DEV(ndev, &pdev->dev); | ^~ include/linux/netdevice.h:2609:63: note: in definition of macro 'SET_NETDEV_DEV' 2609 | #define SET_NETDEV_DEV(net, pdev) ((net)->dev.parent = (pdev)) | ^~~~ drivers/net/can/rockchip/rockchip_can.c:754:32: error: invalid use of undefined type 'struct platform_device' 754 | pm_runtime_enable(&pdev->dev); | ^~ drivers/net/can/rockchip/rockchip_can.c:755:40: error: invalid use of undefined type 'struct platform_device' 755 | err = pm_runtime_get_sync(&pdev->dev); | ^~ drivers/net/can/rockchip/rockchip_can.c:757:30: error: invalid use of undefined type 'struct platform_device' 757 | dev_err(&pdev->dev, "%s: pm_runtime_get failed(%d)\n", | ^~ include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ drivers/net/can/rockchip/rockchip_can.c:757:17: note: in expansion of macro 'dev_err' 757 | dev_err(&pdev->dev, "%s: pm_runtime_get failed(%d)\n", | ^~~~~~~ drivers/net/can/rockchip/rockchip_can.c:764:30: error: invalid use of undefined type 'struct platform_device' 764 | dev_err(&pdev->dev, "registering %s failed (err=%d)\n", | ^~ include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ drivers/net/can/rockchip/rockchip_can.c:764:17: note: in expansion of macro 'dev_err' 764 | dev_err(&pdev->dev, "registering %s failed (err=%d)\n", | ^~~~~~~ drivers/net/can/rockchip/rockchip_can.c:769:29: error: invalid use of undefined type 'struct platform_device' 769 | pm_runtime_put(&pdev->dev); | ^~ drivers/net/can/rockchip/rockchip_can.c:774:29: error: invalid use of undefined type 'struct platform_device' 774 | pm_runtime_put(&pdev->dev); | ^~ drivers/net/can/rockchip/rockchip_can.c:776:33: error: invalid use of undefined type 'struct platform_device' 776 | pm_runtime_disable(&pdev->dev); | ^~ drivers/net/can/rockchip/rockchip_can.c: At top level: drivers/net/can/rockchip/rockchip_can.c:782:39: warning: 'struct platform_device' declared inside parameter list will not be visible outside of this definition or declaration 782 | static int rockchip_can_remove(struct platform_device *pdev) | ^~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c: In function 'rockchip_can_remove': drivers/net/can/rockchip/rockchip_can.c:784:35: error: implicit declaration of function 'platform_get_drvdata' [-Wimplicit-function-declaration] 784 | struct net_device *ndev = platform_get_drvdata(pdev); | ^~~~~~~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:784:35: error: initialization of 'struct net_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion] drivers/net/can/rockchip/rockchip_can.c:787:33: error: invalid use of undefined type 'struct platform_device' 787 | pm_runtime_disable(&pdev->dev); | ^~ drivers/net/can/rockchip/rockchip_can.c: At top level: drivers/net/can/rockchip/rockchip_can.c:793:15: error: variable 'rockchip_can_driver' has initializer but incomplete type 793 | static struct platform_driver rockchip_can_driver = { | ^~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:794:10: error: 'struct platform_driver' has no member named 'driver' 794 | .driver = { | ^~~~~~ drivers/net/can/rockchip/rockchip_can.c:794:19: error: extra brace group at end of initializer 794 | .driver = { | ^ drivers/net/can/rockchip/rockchip_can.c:794:19: note: (near initialization for 'rockchip_can_driver') drivers/net/can/rockchip/rockchip_can.c:794:19: warning: excess elements in struct initializer drivers/net/can/rockchip/rockchip_can.c:794:19: note: (near initialization for 'rockchip_can_driver') drivers/net/can/rockchip/rockchip_can.c:799:10: error: 'struct platform_driver' has no member named 'probe' 799 | .probe = rockchip_can_probe, | ^~~~~ drivers/net/can/rockchip/rockchip_can.c:799:18: warning: excess elements in struct initializer 799 | .probe = rockchip_can_probe, | ^~~~~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:799:18: note: (near initialization for 'rockchip_can_driver') drivers/net/can/rockchip/rockchip_can.c:800:10: error: 'struct platform_driver' has no member named 'remove' 800 | .remove = rockchip_can_remove, | ^~~~~~ drivers/net/can/rockchip/rockchip_can.c:800:19: warning: excess elements in struct initializer 800 | .remove = rockchip_can_remove, | ^~~~~~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:800:19: note: (near initialization for 'rockchip_can_driver') drivers/net/can/rockchip/rockchip_can.c:802:1: warning: data definition has no type or storage class 802 | module_platform_driver(rockchip_can_driver); | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:802:1: error: type defaults to 'int' in declaration of 'module_platform_driver' [-Wimplicit-int] drivers/net/can/rockchip/rockchip_can.c:802:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type] drivers/net/can/rockchip/rockchip_can.c:793:31: error: storage size of 'rockchip_can_driver' isn't known 793 | static struct platform_driver rockchip_can_driver = { | ^~~~~~~~~~~~~~~~~~~ drivers/net/can/rockchip/rockchip_can.c:793:31: warning: 'rockchip_can_driver' defined but not used [-Wunused-variable] >> drivers/net/can/rockchip/rockchip_can.c:683:34: warning: 'rockchip_can_of_match' defined but not used [-Wunused-variable] 683 | static const struct of_device_id rockchip_can_of_match[] = { | ^~~~~~~~~~~~~~~~~~~~~ vim +/rockchip_can_of_match +683 drivers/net/can/rockchip/rockchip_can.c 31119b56075179 Andy Yan 2019-03-25 682 31119b56075179 Andy Yan 2019-03-25 @683 static const struct of_device_id rockchip_can_of_match[] = { 31119b56075179 Andy Yan 2019-03-25 684 {.compatible = "rockchip,can-1.0"}, 31119b56075179 Andy Yan 2019-03-25 685 {}, 31119b56075179 Andy Yan 2019-03-25 686 }; 31119b56075179 Andy Yan 2019-03-25 687 MODULE_DEVICE_TABLE(of, rockchip_can_of_match); 31119b56075179 Andy Yan 2019-03-25 688 :::::: The code at line 683 was first introduced by commit :::::: 31119b560751797c63452b1badad825d6830ac28 can: rockchip_can: add rockchip CAN driver :::::: TO: Andy Yan <andy.yan@xxxxxxxxxxxxxx> :::::: CC: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki