tree: https://github.com/microchip-ung/linux-upstream.git v5.10-webstax head: 0c603c93d534e71ceee9485bfe1b0b75561efb0e commit: 2e15507762cfc0c74bc1e597263005f2ad075881 [62/88] net: ethernet: Add MSCC/VTSS drivers config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/microchip-ung/linux-upstream/commit/2e15507762cfc0c74bc1e597263005f2ad075881 git remote add microchip-ung-linux-upstream https://github.com/microchip-ung/linux-upstream.git git fetch --no-tags microchip-ung-linux-upstream v5.10-webstax git checkout 2e15507762cfc0c74bc1e597263005f2ad075881 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/net/ethernet/vitesse/vc3fdma.c: In function 'rx_buffer_add_to_ufdma': drivers/net/ethernet/vitesse/vc3fdma.c:355:11: error: 'struct skb_shared_info' has no member named 'free' 355 | shinfo->free = rx_recycle; | ^~ drivers/net/ethernet/vitesse/vc3fdma.c:367:15: error: 'struct skb_shared_info' has no member named 'free' 367 | shinfo->free = rx_no_recycle; | ^~ drivers/net/ethernet/vitesse/vc3fdma.c: In function 'rx_buffers_add': >> drivers/net/ethernet/vitesse/vc3fdma.c:94:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 94 | #define VC3FDMA_ALIGNED_SIZE(_addr_, _align_) (((u32)(_addr_) + ((u32)(_align_) - 1)) & ~((u32)(_align_) - 1)) | ^ drivers/net/ethernet/vitesse/vc3fdma.c:100:44: note: in expansion of macro 'VC3FDMA_ALIGNED_SIZE' 100 | #define VC3FDMA_CACHE_ALIGNED_SIZE(_size_) VC3FDMA_ALIGNED_SIZE(_size_, DCACHE_LINE_SIZE_BYTES) | ^~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:632:52: note: in expansion of macro 'VC3FDMA_CACHE_ALIGNED_SIZE' 632 | priv->rx_user_frm_list = (struct zc_frm_dscr *)VC3FDMA_CACHE_ALIGNED_SIZE(priv->rx_data + 0 * size_of_one_list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/vitesse/vc3fdma.c:632:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 632 | priv->rx_user_frm_list = (struct zc_frm_dscr *)VC3FDMA_CACHE_ALIGNED_SIZE(priv->rx_data + 0 * size_of_one_list); | ^ >> drivers/net/ethernet/vitesse/vc3fdma.c:94:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 94 | #define VC3FDMA_ALIGNED_SIZE(_addr_, _align_) (((u32)(_addr_) + ((u32)(_align_) - 1)) & ~((u32)(_align_) - 1)) | ^ drivers/net/ethernet/vitesse/vc3fdma.c:100:44: note: in expansion of macro 'VC3FDMA_ALIGNED_SIZE' 100 | #define VC3FDMA_CACHE_ALIGNED_SIZE(_size_) VC3FDMA_ALIGNED_SIZE(_size_, DCACHE_LINE_SIZE_BYTES) | ^~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:633:52: note: in expansion of macro 'VC3FDMA_CACHE_ALIGNED_SIZE' 633 | priv->rx_krnl_frm_list = (struct zc_frm_dscr *)VC3FDMA_CACHE_ALIGNED_SIZE(priv->rx_data + 1 * size_of_one_list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:633:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 633 | priv->rx_krnl_frm_list = (struct zc_frm_dscr *)VC3FDMA_CACHE_ALIGNED_SIZE(priv->rx_data + 1 * size_of_one_list); | ^ In file included from include/linux/printk.h:7, from include/linux/kernel.h:16, from drivers/net/ethernet/vitesse/vc3fdma.c:28: drivers/net/ethernet/vitesse/vc3fdma.c: In function 'rx_throttle_cmd_cfg_set': >> include/linux/kern_levels.h:5:18: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' 11 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:87:39: note: in expansion of macro 'KERN_ERR' 87 | #define T_E(_fmt_, ...) printk(KERN_ERR "%s#%d. " _fmt_ "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__) | ^~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:985:17: note: in expansion of macro 'T_E' 985 | T_E("Got queue number %u, but only %u queues are configurable", qu, ARRAY_SIZE(throttle_cfg.frm_limit_per_tick)); | ^~~ drivers/net/ethernet/vitesse/vc3fdma.c:985:53: note: format string is defined here 985 | T_E("Got queue number %u, but only %u queues are configurable", qu, ARRAY_SIZE(throttle_cfg.frm_limit_per_tick)); | ~^ | | | unsigned int | %lu drivers/net/ethernet/vitesse/vc3fdma.c: In function 'RX_buf_dscr_free': drivers/net/ethernet/vitesse/vc3fdma.c:1272:15: error: 'struct skb_shared_info' has no member named 'free' 1272 | shinfo->free = recycle ? rx_recycle : rx_no_recycle; | ^~ In file included from include/linux/printk.h:7, from include/linux/kernel.h:16, from drivers/net/ethernet/vitesse/vc3fdma.c:28: drivers/net/ethernet/vitesse/vc3fdma.c: In function 'RX_callback': include/linux/kern_levels.h:5:18: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' 11 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:87:39: note: in expansion of macro 'KERN_ERR' 87 | #define T_E(_fmt_, ...) printk(KERN_ERR "%s#%d. " _fmt_ "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__) | ^~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:1376:9: note: in expansion of macro 'T_E' 1376 | T_E("Not enough headroom in SKB (need %u, only have %u)", sizeof(ifh_encap), skb_headroom(skb)); | ^~~ drivers/net/ethernet/vitesse/vc3fdma.c:1376:48: note: format string is defined here 1376 | T_E("Not enough headroom in SKB (need %u, only have %u)", sizeof(ifh_encap), skb_headroom(skb)); | ~^ | | | unsigned int | %lu drivers/net/ethernet/vitesse/vc3fdma.c: In function 'CX_cache_flush': drivers/net/ethernet/vitesse/vc3fdma.c:1446:5: error: implicit declaration of function 'dma_cache_wback' [-Werror=implicit-function-declaration] 1446 | dma_cache_wback((unsigned long)virt_addr, bytes); | ^~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c: In function 'CX_cache_invalidate': drivers/net/ethernet/vitesse/vc3fdma.c:1455:5: error: implicit declaration of function 'dma_cache_inv'; did you mean 'kmem_cache_init'? [-Werror=implicit-function-declaration] 1455 | dma_cache_inv((unsigned long)virt_addr, bytes); | ^~~~~~~~~~~~~ | kmem_cache_init drivers/net/ethernet/vitesse/vc3fdma.c: In function 'CX_trace_printf': >> drivers/net/ethernet/vitesse/vc3fdma.c:1500:5: warning: function 'CX_trace_printf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1500 | vprintk_emit(0, -1, NULL, full_fmt, args); | ^~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c: In function 'vc3fdma_create': drivers/net/ethernet/vitesse/vc3fdma.c:1920:18: error: implicit declaration of function 'device_get_match_data'; did you mean 'device_match_any'? [-Werror=implicit-function-declaration] 1920 | priv->chip = device_get_match_data(&pdev->dev); | ^~~~~~~~~~~~~~~~~~~~~ | device_match_any >> drivers/net/ethernet/vitesse/vc3fdma.c:1920:16: warning: assignment to 'const struct fdma_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1920 | priv->chip = device_get_match_data(&pdev->dev); | ^ In file included from include/linux/printk.h:409, from include/linux/kernel.h:16, from drivers/net/ethernet/vitesse/vc3fdma.c:28: drivers/net/ethernet/vitesse/vc3fdma.c:1950:68: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1950 | dev_dbg(&pdev->dev, "Mapped switch registers 0x%08x 0x%08x\n", (u32)priv->map_origin1, (u32)priv->map_origin2); | ^ include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call' 161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg' 123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:1950:5: note: in expansion of macro 'dev_dbg' 1950 | dev_dbg(&pdev->dev, "Mapped switch registers 0x%08x 0x%08x\n", (u32)priv->map_origin1, (u32)priv->map_origin2); | ^~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:1950:92: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1950 | dev_dbg(&pdev->dev, "Mapped switch registers 0x%08x 0x%08x\n", (u32)priv->map_origin1, (u32)priv->map_origin2); | ^ include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call' 129 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call' 161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg' 123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:1950:5: note: in expansion of macro 'dev_dbg' 1950 | dev_dbg(&pdev->dev, "Mapped switch registers 0x%08x 0x%08x\n", (u32)priv->map_origin1, (u32)priv->map_origin2); | ^~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c: In function 'zc_poll': drivers/net/ethernet/vitesse/vc3fdma.c:2239:27: error: 'struct skb_shared_info' has no member named 'free' 2239 | if (shinfo->free == rx_recycle) { | ^~ drivers/net/ethernet/vitesse/vc3fdma.c: At top level: drivers/net/ethernet/vitesse/vc3fdma.c:2533:34: error: array type has incomplete element type 'struct of_device_id' 2533 | static const struct of_device_id mscc_fdma_id_table[] = { | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/vitesse/vc3fdma.c:2535:9: error: field name not in record or union initializer 2535 | .compatible = "mscc,luton-fdma", | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2535:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2536:9: error: field name not in record or union initializer 2536 | .data = &luton_chip, | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2536:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2539:9: error: field name not in record or union initializer 2539 | .compatible = "mscc,serval-fdma", | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2539:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2540:9: error: field name not in record or union initializer 2540 | .data = &serval_chip, | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2540:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2543:9: error: field name not in record or union initializer 2543 | .compatible = "mscc,ocelot-fdma", | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2543:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2544:9: error: field name not in record or union initializer 2544 | .data = &ocelot_chip, | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2544:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2547:9: error: field name not in record or union initializer 2547 | .compatible = "mscc,servalt-fdma", | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2547:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2548:9: error: field name not in record or union initializer 2548 | .data = &servalt_chip, | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2548:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2551:9: error: field name not in record or union initializer 2551 | .compatible = "mscc,jaguar2-fdma", | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2551:9: note: (near initialization for 'mscc_fdma_id_table') drivers/net/ethernet/vitesse/vc3fdma.c:2552:9: error: field name not in record or union initializer 2552 | .data = &jaguar2_chip, | ^ drivers/net/ethernet/vitesse/vc3fdma.c:2552:9: note: (near initialization for 'mscc_fdma_id_table') cc1: some warnings being treated as errors vim +94 drivers/net/ethernet/vitesse/vc3fdma.c 88 89 /****************************************************************************/ 90 // VC3FDMA_ALIGNED_SIZE() 91 // Use this macro to align a block of memory to a given alignment. 92 // Only use powers of two for _align_. 93 /****************************************************************************/ > 94 #define VC3FDMA_ALIGNED_SIZE(_addr_, _align_) (((u32)(_addr_) + ((u32)(_align_) - 1)) & ~((u32)(_align_) - 1)) 95 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org