../drivers/net/ethernet/amazon/ena/ena_netdev.c: In function ‘ena_init_rx_cpu_rmap’: ../drivers/net/ethernet/amazon/ena/ena_netdev.c:165:16: error: too few arguments to function ‘netif_enable_cpu_rmap’ 165 | return netif_enable_cpu_rmap(adapter->netdev); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ../include/net/inet_sock.h:19, from ../include/net/ip.h:29, from ../drivers/net/ethernet/amazon/ena/ena_netdev.c:16: ../include/linux/netdevice.h:2780:5: note: declared here 2780 | int netif_enable_cpu_rmap(struct net_device *dev, unsigned int num_irqs); | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/amazon/ena/ena_netdev.c:169:1: error: control reaches end of non-void function [-Werror=return-type] 169 | } | ^ cc1: some warnings being treated as errors make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/amazon/ena/ena_netdev.o] Error 1 make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/amazon/ena] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/amazon] Error 2 make[6]: *** Waiting for unfinished jobs.... ../drivers/net/ethernet/micrel/ks8851_par.c:62:13: warning: context imbalance in 'ks8851_lock_par' - wrong count at exit ../drivers/net/ethernet/micrel/ks8851_par.c:76:13: warning: context imbalance in 'ks8851_unlock_par' - unexpected unlock ../drivers/net/ethernet/natsemi/ns83820.c:900:39: warning: cast to restricted __be16 ../drivers/net/ethernet/natsemi/ns83820.c:1115:42: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/natsemi/ns83820.c:1983:9: warning: cast to restricted __le32 ../drivers/net/ethernet/marvell/mv643xx_eth.c:1952:35: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/mv643xx_eth.c:1952:35: expected struct rx_desc *rx_desc_area ../drivers/net/ethernet/marvell/mv643xx_eth.c:1952:35: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/mv643xx_eth.c:1991:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/mv643xx_eth.c:1991:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/mv643xx_eth.c:1991:28: got struct rx_desc *rx_desc_area ../drivers/net/ethernet/marvell/mv643xx_eth.c:2022:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/mv643xx_eth.c:2022:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/mv643xx_eth.c:2022:28: got struct rx_desc *rx_desc_area ../drivers/net/ethernet/marvell/mv643xx_eth.c:2056:35: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/mv643xx_eth.c:2056:35: expected struct tx_desc *tx_desc_area ../drivers/net/ethernet/marvell/mv643xx_eth.c:2056:35: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/mv643xx_eth.c:2111:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/mv643xx_eth.c:2111:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/mv643xx_eth.c:2111:28: got struct tx_desc *tx_desc_area ../drivers/net/ethernet/marvell/mv643xx_eth.c:2129:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/mv643xx_eth.c:2129:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/mv643xx_eth.c:2129:28: got struct tx_desc *tx_desc_area ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c: In function ‘myri10ge_request_irq’: ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:2185:44: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 10 and 25 [-Wformat-truncation=] 2185 | "%s:slice-%d", netdev->name, i); | ^~ ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:2185:34: note: directive argument in the range [-2147483643, 2147483646] 2185 | "%s:slice-%d", netdev->name, i); | ^~~~~~~~~~~~~ ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:2184:25: note: ‘snprintf’ output between 9 and 34 bytes into a destination of size 32 2184 | snprintf(ss->irq_desc, sizeof(ss->irq_desc), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2185 | "%s:slice-%d", netdev->name, i); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/skge.c:3115:29: warning: cast to restricted __le16 ../drivers/net/ethernet/marvell/skge.c:3115:27: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/marvell/skge.c:3115:27: expected restricted __wsum [usertype] csum ../drivers/net/ethernet/marvell/skge.c:3115:27: got unsigned short [usertype] ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:598:48: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:648:35: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:648:35: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:648:35: got void *hwbase ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1312:21: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1312:21: expected unsigned long long [usertype] *ptr ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1312:21: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1351:21: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1351:21: expected unsigned long long [usertype] *ptr ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1351:21: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:32:16: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:35:16: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:45:16: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:48:16: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:856:16: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/sky2.c:1890:28: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/marvell/sky2.c:1890:28: expected restricted __le16 [usertype] length ../drivers/net/ethernet/marvell/sky2.c:1890:28: got restricted __be16 [usertype] ../drivers/net/ethernet/marvell/sky2.c:2670:29: warning: cast to restricted __le16 ../drivers/net/ethernet/marvell/sky2.c:2670:27: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/marvell/sky2.c:2670:27: expected restricted __wsum [usertype] csum ../drivers/net/ethernet/marvell/sky2.c:2670:27: got unsigned short [usertype] ../drivers/net/ethernet/marvell/sky2.c:2691:57: warning: cast to restricted __be16 ../drivers/net/ethernet/marvell/sky2.c:2699:27: warning: cast to restricted __le32 ../drivers/net/ethernet/marvell/sky2.c:4445:53: warning: cast to restricted __be16 ../drivers/net/ethernet/marvell/sky2.c:4445:53: warning: cast from restricted __le16 ../drivers/net/ethernet/nvidia/forcedeth.c:4790:9: warning: context imbalance in 'nv_set_ringparam' - different lock contexts for basic block ../drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c:162:46: warning: cast to restricted __be16 ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c: In function ‘cgx_lmac_init’: ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1701:49: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 4 and 6 [-Wformat-overflow=] 1701 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~ ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1701:37: note: directive argument in the range [-2147483641, 254] 1701 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1701:17: note: ‘sprintf’ output between 12 and 24 bytes into a destination of size 16 1701 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:1637:45: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:1637:45: expected restricted __sum16 [usertype] check ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:1637:45: got restricted __be16 [usertype] ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2890:22: warning: incorrect type in argument 2 (different base types) ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2890:22: expected unsigned int [usertype] val ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2890:22: got restricted __be32 [usertype] ip ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2935:40: warning: cast from restricted __be32 ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2995:38: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2995:38: expected restricted __be32 [usertype] ip4dst ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2995:38: got unsigned int [usertype] ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2999:38: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2999:38: expected restricted __be32 [usertype] ip4src ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2999:38: got unsigned int ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3001:36: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3001:36: expected restricted __be16 [usertype] psrc ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3001:36: got int ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3003:36: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3003:36: expected restricted __be16 [usertype] pdst ../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3003:36: got int ../drivers/net/ethernet/neterion/s2io.c: In function ‘s2io_add_isr’: ../drivers/net/ethernet/neterion/s2io.c:6947:59: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 3 and 18 [-Wformat-truncation=] 6947 | "%s:MSI-X-%d-TX", | ^~ ../drivers/net/ethernet/neterion/s2io.c:6947:49: note: directive argument in the range [-2147483641, 2147483646] 6947 | "%s:MSI-X-%d-TX", | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/neterion/s2io.c:6945:41: note: ‘snprintf’ output between 12 and 37 bytes into a destination of size 25 6945 | snprintf(sp->desc[i], | ^~~~~~~~~~~~~~~~~~~~~ 6946 | sizeof(sp->desc[i]), | ~~~~~~~~~~~~~~~~~~~~ 6947 | "%s:MSI-X-%d-TX", | ~~~~~~~~~~~~~~~~~ 6948 | dev->name, i); | ~~~~~~~~~~~~~ ../drivers/net/ethernet/neterion/s2io.c:6936:59: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 3 and 18 [-Wformat-truncation=] 6936 | "%s:MSI-X-%d-RX", | ^~ ../drivers/net/ethernet/neterion/s2io.c:6936:49: note: directive argument in the range [-2147483641, 2147483646] 6936 | "%s:MSI-X-%d-RX", | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/neterion/s2io.c:6934:41: note: ‘snprintf’ output between 12 and 37 bytes into a destination of size 25 6934 | snprintf(sp->desc[i], | ^~~~~~~~~~~~~~~~~~~~~ 6935 | sizeof(sp->desc[i]), | ~~~~~~~~~~~~~~~~~~~~ 6936 | "%s:MSI-X-%d-RX", | ~~~~~~~~~~~~~~~~~ 6937 | dev->name, i); | ~~~~~~~~~~~~~ ../drivers/net/ethernet/neterion/s2io.c: In function ‘s2io_init_nic’: ../drivers/net/ethernet/neterion/s2io.c:8097:59: warning: ‘%s’ directive output may be truncated writing up to 79 bytes into a region of size between 35 and 50 [-Wformat-truncation=] 8097 | snprintf(sp->name, sizeof(sp->name), "%s Neterion %s", dev->name, | ^~ ../drivers/net/ethernet/neterion/s2io.c:8097:9: note: ‘snprintf’ output between 11 and 105 bytes into a destination of size 60 8097 | snprintf(sp->name, sizeof(sp->name), "%s Neterion %s", dev->name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8098 | sp->product_name); | ~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/neterion/s2io.c:6959:41: warning: cast to restricted __be32 ../drivers/net/ethernet/mediatek/mtk_ppe_offload.c:124:19: warning: cast to restricted __be32 ../drivers/net/ethernet/mediatek/mtk_ppe_offload.c:128:41: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/marvell/prestera/prestera_devlink.c: In function ‘prestera_dl_info_get’: ../drivers/net/ethernet/marvell/prestera/prestera_devlink.c:359:43: warning: ‘%d’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 4 and 12 [-Wformat-truncation=] 359 | snprintf(buf, sizeof(buf), "%d.%d.%d", | ^~ ../drivers/net/ethernet/marvell/prestera/prestera_devlink.c:359:36: note: directive argument in the range [0, 65535] 359 | snprintf(buf, sizeof(buf), "%d.%d.%d", | ^~~~~~~~~~ ../drivers/net/ethernet/marvell/prestera/prestera_devlink.c:359:9: note: ‘snprintf’ output between 6 and 18 bytes into a destination of size 16 359 | snprintf(buf, sizeof(buf), "%d.%d.%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 360 | sw->dev->fw_rev.maj, | ~~~~~~~~~~~~~~~~~~~~ 361 | sw->dev->fw_rev.min, | ~~~~~~~~~~~~~~~~~~~~ 362 | sw->dev->fw_rev.sub); | ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/micrel/ksz884x.c:3146:50: warning: restricted pci_power_t degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:3467:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:3467:37: expected unsigned int [usertype] next ../drivers/net/ethernet/micrel/ksz884x.c:3467:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:3469:29: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:3469:29: expected unsigned int [usertype] next ../drivers/net/ethernet/micrel/ksz884x.c:3469:29: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:3471:33: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:3471:33: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:3471:33: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:4377:31: warning: cast to restricted __le32 ../drivers/net/ethernet/micrel/ksz884x.c:4670:31: warning: cast to restricted __le32 ../drivers/net/ethernet/micrel/ksz884x.c:4706:31: warning: cast to restricted __le32 ../drivers/net/ethernet/micrel/ksz884x.c:4751:31: warning: cast to restricted __le32 ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1542:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1542:25: expected unsigned int [usertype] addr ../drivers/net/ethernet/micrel/ksz884x.c:1542:25: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: expected unsigned int [usertype] addr ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: expected unsigned int [usertype] addr ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: expected unsigned int [usertype] addr ../drivers/net/ethernet/micrel/ksz884x.c:1562:25: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1518:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1518:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1518:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: expected unsigned short protocol ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: got restricted __be16 [usertype] protocol ../drivers/net/ethernet/micrel/ksz884x.c:4596:25: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: expected unsigned short protocol ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: got restricted __be16 [usertype] tot_len ../drivers/net/ethernet/micrel/ksz884x.c:4601:25: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: expected unsigned short protocol ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: got restricted __be16 [usertype] protocol ../drivers/net/ethernet/micrel/ksz884x.c:4596:25: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: expected unsigned short protocol ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: got restricted __be16 [usertype] tot_len ../drivers/net/ethernet/micrel/ksz884x.c:4601:25: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: expected unsigned short protocol ../drivers/net/ethernet/micrel/ksz884x.c:4593:18: got restricted __be16 [usertype] protocol ../drivers/net/ethernet/micrel/ksz884x.c:4596:25: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: expected unsigned short protocol ../drivers/net/ethernet/micrel/ksz884x.c:4597:26: got restricted __be16 [usertype] tot_len ../drivers/net/ethernet/micrel/ksz884x.c:4601:25: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data ../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: expected struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: got void [noderef] __iomem * ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: got struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: expected void volatile [noderef] __iomem *addr ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: got struct rvu_fwdata *fwdata ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:2387:46: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:2410:38: warning: cast removes address space '__iomem' of expression ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c: In function ‘rvu_dbg_mcs_init’: ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:506:36: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 7 [-Wformat-overflow=] 506 | sprintf(dname, "mcs%d", i); | ^~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:506:32: note: directive argument in the range [-2147483641, 2147483646] 506 | sprintf(dname, "mcs%d", i); | ^~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:506:17: note: ‘sprintf’ output between 5 and 15 bytes into a destination of size 10 506 | sprintf(dname, "mcs%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_bm_bufs_add' - different lock contexts for basic block ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_rxq_drop_pkts' - different lock contexts for basic block ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_rx_refill' - different lock contexts for basic block ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_buff_hdr_pool_put' - different lock contexts for basic block ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_rx' - different lock contexts for basic block ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:4474:9: warning: context imbalance in 'mvpp2_tx' - different lock contexts for basic block ../drivers/net/ethernet/intel/ice/ice_ptp.c:331:9: warning: context imbalance in 'ice_ptp_read_src_clk_reg' - wrong count at exit ../drivers/net/ethernet/intel/ice/ice_ptp_hw.c:889:13: warning: context imbalance in 'ice_ptp_exec_tmr_cmd' - wrong count at exit ../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: warning: incorrect type in initializer (different address spaces) ../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: expected struct Qdisc *qdisc ../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: got struct Qdisc [noderef] __rcu *qdisc_sleeping ../drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c:1803:14: warning: restricted __be64 degrades to integer make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../drivers/net/ethernet/amazon/ena/ena_netdev.c: In function ‘ena_init_rx_cpu_rmap’: ../drivers/net/ethernet/amazon/ena/ena_netdev.c:165:16: error: too few arguments to function ‘netif_enable_cpu_rmap’ 165 | return netif_enable_cpu_rmap(adapter->netdev); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ../include/net/inet_sock.h:19, from ../include/net/ip.h:29, from ../drivers/net/ethernet/amazon/ena/ena_netdev.c:16: ../include/linux/netdevice.h:2780:5: note: declared here 2780 | int netif_enable_cpu_rmap(struct net_device *dev, unsigned int num_irqs); | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/amazon/ena/ena_netdev.c:169:1: error: control reaches end of non-void function [-Werror=return-type] 169 | } | ^ cc1: some warnings being treated as errors make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/amazon/ena/ena_netdev.o] Error 1 make[7]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/amazon/ena] Error 2 make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/amazon] Error 2 make[6]: *** Waiting for unfinished jobs.... ../drivers/net/ethernet/qualcomm/qca_7k_common.c:31:18: warning: restricted __le16 degrades to integer ../drivers/net/ethernet/qualcomm/qca_7k_common.c:32:19: warning: restricted __le16 degrades to integer ../drivers/net/ethernet/packetengines/hamachi.c:1568:61: warning: cast to restricted __be16 ../drivers/net/ethernet/packetengines/hamachi.c:1568:59: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/packetengines/hamachi.c:1568:59: expected restricted __wsum [usertype] csum ../drivers/net/ethernet/packetengines/hamachi.c:1568:59: got unsigned short [usertype] ../drivers/net/ethernet/packetengines/hamachi.c:1569:56: warning: restricted __wsum degrades to integer ../drivers/net/ethernet/packetengines/hamachi.c:1570:67: warning: bad assignment (-=) to restricted __wsum ../drivers/net/ethernet/packetengines/hamachi.c:1572:67: warning: bad assignment (+=) to restricted __wsum ../drivers/net/ethernet/realtek/8139too.c:2247:9: warning: incorrect type in argument 1 (different base types) ../drivers/net/ethernet/realtek/8139too.c:2247:9: expected unsigned int [usertype] ../drivers/net/ethernet/realtek/8139too.c:2247:9: got restricted __le32 [usertype] ../drivers/net/ethernet/realtek/8139too.c:2248:9: warning: incorrect type in argument 1 (different base types) ../drivers/net/ethernet/realtek/8139too.c:2248:9: expected unsigned int [usertype] ../drivers/net/ethernet/realtek/8139too.c:2248:9: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:998:14: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1008:13: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1011:28: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1058:27: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1061:25: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1112:21: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1114:33: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1143:30: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1147:42: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1152:50: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1153:40: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1296:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1296:25: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1296:25: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1344:13: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1359:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1359:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1359:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1380:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1380:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1380:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1400:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1400:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1400:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: warning: cast to restricted __le32 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: expected unsigned int ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: got restricted __le32 [usertype] ../drivers/net/ethernet/qualcomm/emac/emac-mac.c:951:21: warning: cast truncates bits from constant value (ffffffff7fffffff becomes 7fffffff) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:571:25: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:574:38: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:31: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:62: warning: incorrect type in initializer (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:62: expected restricted __le32 [usertype] offs ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:62: got unsigned int ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:575:35: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:577:21: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:578:66: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:601:54: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:601:64: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:601:20: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:615:22: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:627:63: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:627:26: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:626:20: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:633:18: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:633:55: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:632:16: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:636:21: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:636:50: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:650:22: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:662:63: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:662:26: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:661:20: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:668:18: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:668:55: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:667:16: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:670:21: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:670:50: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:697:55: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:697:65: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:697:20: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:703:25: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:710:38: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:24: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:22: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:22: expected restricted __le32 [usertype] offs ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:22: got unsigned int ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:711:25: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:712:32: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:717:33: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:718:62: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: warning: incorrect type in initializer (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: expected int idx ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: got restricted __le32 [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:777:26: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:16: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:14: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:14: expected restricted __le32 [usertype] offs ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:14: got unsigned int ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:779:48: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:788:22: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:788:22: expected unsigned int [usertype] offs ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:788:22: got restricted __le32 [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:801:22: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:801:22: expected unsigned int [usertype] offs ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:801:22: got restricted __le32 [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:833:38: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:834:33: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:33: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:24: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:48: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:45: warning: incorrect type in return expression (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:45: expected restricted __le32 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:45: got unsigned int ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:860:28: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:25: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:45: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:863:58: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:70: warning: incorrect type in return expression (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:70: expected restricted __le32 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:70: got unsigned int ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:911:21: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:911:21: expected unsigned int [usertype] val ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:911:21: got restricted __le32 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:999:72: warning: incorrect type in argument 3 (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:999:72: expected unsigned long long [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:999:72: got restricted __le64 [assigned] [usertype] data ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1014:60: warning: incorrect type in argument 3 (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1014:60: expected unsigned long long [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1014:60: got restricted __le64 [assigned] [usertype] data ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1025:60: warning: incorrect type in argument 3 (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1025:60: expected unsigned long long [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1025:60: got restricted __le64 [assigned] [usertype] data ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1099:23: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1099:23: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1099:23: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:24: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:24: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:24: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:22: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:22: expected restricted __le32 [addressable] [usertype] flash_fw_ver ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:22: got unsigned int ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1127:46: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1139:21: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:1035:24: warning: cast to restricted __le64 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:1037:24: warning: cast to restricted __le64 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:2133:17: warning: cast truncates bits from constant value (42110030 becomes 30) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:2133:17: warning: cast truncates bits from constant value (42110030 becomes 30) ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function ‘qede_get_drvinfo’: ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:621:34: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 25 [-Wformat-truncation=] 621 | "[storm %s]", storm); | ^~ ~~~~~ ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:620:17: note: ‘snprintf’ output between 9 and 40 bytes into a destination of size 32 620 | snprintf(info->version, sizeof(info->version), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 621 | "[storm %s]", storm); | ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:638:31: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 28 [-Wformat-truncation=] 638 | "mfw %s", mfw); | ^~ ~~~ ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:637:17: note: ‘snprintf’ output between 5 and 36 bytes into a destination of size 32 637 | snprintf(info->fw_version, sizeof(info->fw_version), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 638 | "mfw %s", mfw); | ~~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:635:31: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 28 [-Wformat-truncation=] 635 | "mbi %s [mfw %s]", mbi, mfw); | ^~ ~~~ ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:634:17: note: ‘snprintf’ output between 12 and 74 bytes into a destination of size 32 634 | snprintf(info->fw_version, sizeof(info->fw_version), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 635 | "mbi %s [mfw %s]", mbi, mfw); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c: In function ‘netxen_nic_attach’: ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1052:45: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 4 and 19 [-Wformat-overflow=] 1052 | sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); | ^~ In function ‘netxen_nic_request_irq’, inlined from ‘netxen_nic_attach’ at ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1251:8: ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1052:41: note: directive argument in the range [-2147483641, 254] 1052 | sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); | ^~~~~~~~ ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1052:17: note: ‘sprintf’ output between 4 and 29 bytes into a destination of size 20 1052 | sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/renesas/sh_eth.c:897:37: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:897:37: expected void const [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:897:37: got void * ../drivers/net/ethernet/renesas/sh_eth.c:898:37: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:898:37: expected void const [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:898:37: got void * ../drivers/net/ethernet/renesas/sh_eth.c:905:37: warning: incorrect type in argument 2 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:905:37: expected void [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:905:37: got void * ../drivers/net/ethernet/renesas/sh_eth.c:906:37: warning: incorrect type in argument 2 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:906:37: expected void [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:906:37: got void * ../drivers/net/ethernet/renesas/sh_eth.c:1184:31: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:1184:31: expected void const [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:1184:31: got void *addr ../drivers/net/ethernet/renesas/sh_eth.c:1189:31: warning: incorrect type in argument 2 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:1189:31: expected void [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:1189:31: got void *addr ../drivers/net/ethernet/renesas/sh_eth.c:1212:33: warning: incorrect type in argument 1 (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:1212:33: expected void const [noderef] __iomem * ../drivers/net/ethernet/renesas/sh_eth.c:1212:33: got void *addr ../drivers/net/ethernet/renesas/sh_eth.c:1242:43: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/renesas/sh_eth.c:1247:17: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1252:25: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1252:25: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1260:32: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1260:32: expected unsigned int [usertype] status ../drivers/net/ethernet/renesas/sh_eth.c:1260:32: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1262:40: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:1262:40: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:1262:40: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1266:49: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1283:33: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1359:29: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1359:29: expected unsigned int [usertype] len ../drivers/net/ethernet/renesas/sh_eth.c:1359:29: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1360:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1360:30: expected unsigned int [usertype] addr ../drivers/net/ethernet/renesas/sh_eth.c:1360:30: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1361:32: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1361:32: expected unsigned int [usertype] status ../drivers/net/ethernet/renesas/sh_eth.c:1361:32: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1375:32: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:1375:32: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:1375:32: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1383:32: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1383:32: expected unsigned int [usertype] status ../drivers/net/ethernet/renesas/sh_eth.c:1383:32: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1384:29: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1384:29: expected unsigned int [usertype] len ../drivers/net/ethernet/renesas/sh_eth.c:1384:29: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1393:24: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:1393:24: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:1393:24: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1545:40: warning: invalid assignment: &= ../drivers/net/ethernet/renesas/sh_eth.c:1545:40: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:1545:40: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1602:35: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/renesas/sh_eth.c:1605:31: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1606:27: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1644:36: warning: cast to restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1675:29: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1675:29: expected unsigned int [usertype] len ../drivers/net/ethernet/renesas/sh_eth.c:1675:29: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1691:38: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:1691:38: expected unsigned int [usertype] addr ../drivers/net/ethernet/renesas/sh_eth.c:1691:38: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:1695:40: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:1695:40: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:1695:40: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:1698:40: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:1698:40: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:1698:40: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:2473:32: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:2473:32: expected unsigned int [usertype] status ../drivers/net/ethernet/renesas/sh_eth.c:2473:32: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:2474:30: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:2474:30: expected unsigned int [usertype] addr ../drivers/net/ethernet/renesas/sh_eth.c:2474:30: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:2525:22: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:2525:22: expected unsigned int [usertype] addr ../drivers/net/ethernet/renesas/sh_eth.c:2525:22: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:2526:22: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/renesas/sh_eth.c:2526:22: expected unsigned int [usertype] len ../drivers/net/ethernet/renesas/sh_eth.c:2526:22: got restricted __le32 [usertype] ../drivers/net/ethernet/renesas/sh_eth.c:2530:32: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:2530:32: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:2530:32: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:2532:32: warning: invalid assignment: |= ../drivers/net/ethernet/renesas/sh_eth.c:2532:32: left side has type unsigned int ../drivers/net/ethernet/renesas/sh_eth.c:2532:32: right side has type restricted __le32 ../drivers/net/ethernet/renesas/sh_eth.c:3105:23: warning: incorrect type in assignment (different address spaces) ../drivers/net/ethernet/renesas/sh_eth.c:3105:23: expected void *addr ../drivers/net/ethernet/renesas/sh_eth.c:3105:23: got void [noderef] __iomem * ../drivers/net/ethernet/smsc/smc91x.c:557:9: warning: context imbalance in 'smc_hardware_send_pkt' - different lock contexts for basic block ../drivers/net/ethernet/qlogic/qede/qede_main.c: In function ‘qede_init_fp’: ../drivers/net/ethernet/qlogic/qede/qede_main.c:1903:61: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 5 and 20 [-Wformat-truncation=] 1903 | snprintf(fp->name, sizeof(fp->name), "%s-fp-%d", | ^~ ../drivers/net/ethernet/qlogic/qede/qede_main.c:1903:54: note: directive argument in the range [-2147483641, 65534] 1903 | snprintf(fp->name, sizeof(fp->name), "%s-fp-%d", | ^~~~~~~~~~ ../drivers/net/ethernet/qlogic/qede/qede_main.c:1903:17: note: ‘snprintf’ output between 6 and 31 bytes into a destination of size 24 1903 | snprintf(fp->name, sizeof(fp->name), "%s-fp-%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1904 | edev->ndev->name, queue_id); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c: In function ‘qlcnic_request_irq’: ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:1771:49: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 9 and 24 [-Wformat-truncation=] 1771 | "%s-tx-%d", netdev->name, ring); | ^~ ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:1771:42: note: directive argument in the range [-2147483643, 254] 1771 | "%s-tx-%d", netdev->name, ring); | ^~~~~~~~~~ ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:1770:33: note: ‘snprintf’ output between 6 and 31 bytes into a destination of size 28 1770 | snprintf(tx_ring->name, sizeof(tx_ring->name), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1771 | "%s-tx-%d", netdev->name, ring); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:902:25: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:902:25: expected unsigned int [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:902:25: got restricted __le32 [usertype] ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c:202:31: warning: cast to restricted __le32 ../drivers/net/ethernet/sfc/tx.c:495:9: warning: context imbalance in 'efx_xdp_tx_buffers' - different lock contexts for basic block In file included from ../include/linux/string.h:389, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:12, from ../arch/x86/include/asm/paravirt.h:21, from ../arch/x86/include/asm/cpuid.h:64, from ../arch/x86/include/asm/processor.h:19, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic.h:10, from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c:8: In function ‘fortify_memcpy_chk’, inlined from ‘qlcnic_83xx_dcb_query_cee_param’ at ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c:614:3: ../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/ethtool_common.c: In function ‘efx_fill_test’: ../drivers/net/ethernet/sfc/ethtool_common.c:277:32: warning: ‘%-24s’ directive output may be truncated writing between 24 and 31 bytes into a region of size between 0 and 25 [-Wformat-truncation=] 277 | "%-6s %-24s", unit_str, test_str); | ^~~~~ ~~~~~~~~ ../drivers/net/ethernet/sfc/ethtool_common.c:275:17: note: ‘snprintf’ output between 32 and 64 bytes into a destination of size 32 275 | snprintf(strings + test_index * ETH_GSTRING_LEN, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 276 | ETH_GSTRING_LEN, | ~~~~~~~~~~~~~~~~ 277 | "%-6s %-24s", unit_str, test_str); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c: In function ‘qed_mfw_get_tlv_time_value’: ../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:44: warning: ‘%d’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 2 and 10 [-Wformat-truncation=] 432 | snprintf(p_buf->data, 14, "%d%d%d%d%d%d", | ^~ ../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:35: note: directive argument in the range [0, 65535] 432 | snprintf(p_buf->data, 14, "%d%d%d%d%d%d", | ^~~~~~~~~~~~~~ ../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:35: note: directive argument in the range [0, 65535] ../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:9: note: ‘snprintf’ output between 7 and 23 bytes into a destination of size 14 432 | snprintf(p_buf->data, 14, "%d%d%d%d%d%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 433 | p_time->month, p_time->day, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 434 | p_time->hour, p_time->min, p_time->msec, p_time->usec); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/mcdi_mon.c: In function ‘efx_mcdi_mon_probe’: ../drivers/net/ethernet/sfc/mcdi_mon.c:458:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 458 | snprintf(name, sizeof(name), "%s%u_input", | ^ ../drivers/net/ethernet/sfc/mcdi_mon.c:458:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 458 | snprintf(name, sizeof(name), "%s%u_input", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 459 | hwmon_prefix, hwmon_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/mcdi_mon.c:489:57: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 489 | snprintf(name, sizeof(name), "%s%u_alarm", | ^ ../drivers/net/ethernet/sfc/mcdi_mon.c:489:17: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 489 | snprintf(name, sizeof(name), "%s%u_alarm", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 490 | hwmon_prefix, hwmon_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/mcdi_mon.c:496:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 496 | snprintf(name, sizeof(name), "%s%u_label", | ^ ../drivers/net/ethernet/sfc/mcdi_mon.c:496:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 496 | snprintf(name, sizeof(name), "%s%u_label", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 497 | hwmon_prefix, hwmon_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/ptp.c:205: warning: Excess struct member 'valid' description in 'efx_ptp_timeset' ../drivers/net/ethernet/qlogic/qed/qed_mcp.c:512:9: warning: context imbalance in '_qed_mcp_cmd_and_union' - unexpected unlock ../drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c:110:23: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c:110:50: warning: restricted __le32 degrades to integer ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:105:14: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:105:14: expected unsigned int [usertype] data ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:105:14: got restricted __be32 [usertype] val ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:106:14: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:106:14: expected unsigned int [usertype] mask ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:106:14: got restricted __be32 [usertype] mask ../drivers/net/ethernet/sfc/siena/tx.c:290:9: warning: context imbalance in 'efx_siena_xdp_tx_buffers' - different lock contexts for basic block ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c: In function ‘stmmac_selftest_get_strings’: ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:2040:52: warning: ‘%s’ directive output may be truncated writing up to 1535 bytes into a region of size 28 [-Wformat-truncation=] 2040 | snprintf(p, ETH_GSTRING_LEN, "%2d. %s", i + 1, | ^~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:2040:17: note: ‘snprintf’ output between 5 and 1540 bytes into a destination of size 32 2040 | snprintf(p, ETH_GSTRING_LEN, "%2d. %s", i + 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2041 | stmmac_selftests[i].name); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/falcon/ethtool.c: In function ‘ef4_fill_test’: ../drivers/net/ethernet/sfc/falcon/ethtool.c:229:32: warning: ‘%-24s’ directive output may be truncated writing between 24 and 31 bytes into a region of size between 0 and 25 [-Wformat-truncation=] 229 | "%-6s %-24s", unit_str, test_str); | ^~~~~ ~~~~~~~~ ../drivers/net/ethernet/sfc/falcon/ethtool.c:227:17: note: ‘snprintf’ output between 32 and 64 bytes into a destination of size 32 227 | snprintf(strings + test_index * ETH_GSTRING_LEN, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 228 | ETH_GSTRING_LEN, | ~~~~~~~~~~~~~~~~ 229 | "%-6s %-24s", unit_str, test_str); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1138:27: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1138:27: expected restricted __be32 [usertype] mask ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1138:27: got int ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1383:18: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1383:18: expected restricted __be32 [addressable] [usertype] src ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1383:18: got unsigned int [usertype] src_mask ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1384:18: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1384:18: expected restricted __be32 [addressable] [usertype] dst ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1384:18: got unsigned int [usertype] dst_mask ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1512:24: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1512:24: expected restricted __be16 [addressable] [usertype] src ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1512:24: got unsigned int [usertype] src_mask ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1513:24: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1513:24: expected restricted __be16 [addressable] [usertype] dst ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1513:24: got unsigned int [usertype] dst_mask ../drivers/net/ethernet/sfc/siena/ethtool_common.c: In function ‘efx_fill_test’: ../drivers/net/ethernet/sfc/siena/ethtool_common.c:229:32: warning: ‘%-24s’ directive output may be truncated writing between 24 and 31 bytes into a region of size between 0 and 25 [-Wformat-truncation=] 229 | "%-6s %-24s", unit_str, test_str); | ^~~~~ ~~~~~~~~ ../drivers/net/ethernet/sfc/siena/ethtool_common.c:227:17: note: ‘snprintf’ output between 32 and 64 bytes into a destination of size 32 227 | snprintf(strings + test_index * ETH_GSTRING_LEN, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 228 | ETH_GSTRING_LEN, | ~~~~~~~~~~~~~~~~ 229 | "%-6s %-24s", unit_str, test_str); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/siena/mcdi_mon.c: In function ‘efx_siena_mcdi_mon_probe’: ../drivers/net/ethernet/sfc/siena/mcdi_mon.c:458:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 458 | snprintf(name, sizeof(name), "%s%u_input", | ^ ../drivers/net/ethernet/sfc/siena/mcdi_mon.c:458:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 458 | snprintf(name, sizeof(name), "%s%u_input", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 459 | hwmon_prefix, hwmon_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/siena/mcdi_mon.c:489:57: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 489 | snprintf(name, sizeof(name), "%s%u_alarm", | ^ ../drivers/net/ethernet/sfc/siena/mcdi_mon.c:489:17: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 489 | snprintf(name, sizeof(name), "%s%u_alarm", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 490 | hwmon_prefix, hwmon_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/siena/mcdi_mon.c:496:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 496 | snprintf(name, sizeof(name), "%s%u_label", | ^ ../drivers/net/ethernet/sfc/siena/mcdi_mon.c:496:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 496 | snprintf(name, sizeof(name), "%s%u_label", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 497 | hwmon_prefix, hwmon_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/sfc/siena/ptp.c:208: warning: Excess struct member 'valid' description in 'efx_ptp_timeset' ../drivers/net/ethernet/intel/ice/ice_ptp.c:331:9: warning: context imbalance in 'ice_ptp_read_src_clk_reg' - wrong count at exit ../drivers/net/ethernet/intel/ice/ice_ptp_hw.c:889:13: warning: context imbalance in 'ice_ptp_exec_tmr_cmd' - wrong count at exit make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1993: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.qUsyJwteXF 2025-01-03 17:42:48.649632533 -0800 +++ /tmp/tmp.hqcoapgel0 2025-01-03 17:43:16.455342032 -0800 @@ -19,76 +19,243 @@ -../drivers/net/ethernet/micrel/ks8851_par.c:62:13: warning: context imbalance in 'ks8851_lock_par' - wrong count at exit -../drivers/net/ethernet/micrel/ks8851_par.c:76:13: warning: context imbalance in 'ks8851_unlock_par' - unexpected unlock -../drivers/net/ethernet/natsemi/ns83820.c:900:39: warning: cast to restricted __be16 -../drivers/net/ethernet/natsemi/ns83820.c:1115:42: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/natsemi/ns83820.c:1983:9: warning: cast to restricted __le32 -../drivers/net/ethernet/marvell/mv643xx_eth.c:1952:35: warning: incorrect type in assignment (different address spaces) -../drivers/net/ethernet/marvell/mv643xx_eth.c:1952:35: expected struct rx_desc *rx_desc_area -../drivers/net/ethernet/marvell/mv643xx_eth.c:1952:35: got void [noderef] __iomem * -../drivers/net/ethernet/marvell/mv643xx_eth.c:1991:28: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/mv643xx_eth.c:1991:28: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/mv643xx_eth.c:1991:28: got struct rx_desc *rx_desc_area -../drivers/net/ethernet/marvell/mv643xx_eth.c:2022:28: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/mv643xx_eth.c:2022:28: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/mv643xx_eth.c:2022:28: got struct rx_desc *rx_desc_area -../drivers/net/ethernet/marvell/mv643xx_eth.c:2056:35: warning: incorrect type in assignment (different address spaces) -../drivers/net/ethernet/marvell/mv643xx_eth.c:2056:35: expected struct tx_desc *tx_desc_area -../drivers/net/ethernet/marvell/mv643xx_eth.c:2056:35: got void [noderef] __iomem * -../drivers/net/ethernet/marvell/mv643xx_eth.c:2111:28: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/mv643xx_eth.c:2111:28: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/mv643xx_eth.c:2111:28: got struct tx_desc *tx_desc_area -../drivers/net/ethernet/marvell/mv643xx_eth.c:2129:28: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/mv643xx_eth.c:2129:28: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/mv643xx_eth.c:2129:28: got struct tx_desc *tx_desc_area -../drivers/net/ethernet/myricom/myri10ge/myri10ge.c: In function ‘myri10ge_request_irq’: -../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:2185:44: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 10 and 25 [-Wformat-truncation=] - 2185 | "%s:slice-%d", netdev->name, i); - | ^~ -../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:2185:34: note: directive argument in the range [-2147483643, 2147483646] - 2185 | "%s:slice-%d", netdev->name, i); - | ^~~~~~~~~~~~~ -../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:2184:25: note: ‘snprintf’ output between 9 and 34 bytes into a destination of size 32 - 2184 | snprintf(ss->irq_desc, sizeof(ss->irq_desc), - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 2185 | "%s:slice-%d", netdev->name, i); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../drivers/net/ethernet/marvell/skge.c:3115:29: warning: cast to restricted __le16 -../drivers/net/ethernet/marvell/skge.c:3115:27: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/marvell/skge.c:3115:27: expected restricted __wsum [usertype] csum -../drivers/net/ethernet/marvell/skge.c:3115:27: got unsigned short [usertype] -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:598:48: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:648:35: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:648:35: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:648:35: got void *hwbase -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1312:21: warning: incorrect type in assignment (different address spaces) -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1312:21: expected unsigned long long [usertype] *ptr -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1312:21: got void [noderef] __iomem * -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1351:21: warning: incorrect type in assignment (different address spaces) -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1351:21: expected unsigned long long [usertype] *ptr -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1351:21: got void [noderef] __iomem * -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:32:16: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:35:16: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:45:16: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:48:16: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:856:16: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/sky2.c:1890:28: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/marvell/sky2.c:1890:28: expected restricted __le16 [usertype] length -../drivers/net/ethernet/marvell/sky2.c:1890:28: got restricted __be16 [usertype] -../drivers/net/ethernet/marvell/sky2.c:2670:29: warning: cast to restricted __le16 -../drivers/net/ethernet/marvell/sky2.c:2670:27: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/marvell/sky2.c:2670:27: expected restricted __wsum [usertype] csum -../drivers/net/ethernet/marvell/sky2.c:2670:27: got unsigned short [usertype] -../drivers/net/ethernet/marvell/sky2.c:2691:57: warning: cast to restricted __be16 -../drivers/net/ethernet/marvell/sky2.c:2699:27: warning: cast to restricted __le32 -../drivers/net/ethernet/marvell/sky2.c:4445:53: warning: cast to restricted __be16 -../drivers/net/ethernet/marvell/sky2.c:4445:53: warning: cast from restricted __le16 -../drivers/net/ethernet/nvidia/forcedeth.c:4790:9: warning: context imbalance in 'nv_set_ringparam' - different lock contexts for basic block -../drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c:162:46: warning: cast to restricted __be16 -../drivers/net/ethernet/marvell/octeontx2/af/cgx.c: In function ‘cgx_lmac_init’: -../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1701:49: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 4 and 6 [-Wformat-overflow=] - 1701 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); - | ^~ -../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1701:37: note: directive argument in the range [-2147483641, 254] - 1701 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); - | ^~~~~~~~~~~~~~~ -../drivers/net/ethernet/marvell/octeontx2/af/cgx.c:1701:17: note: ‘sprintf’ output between 12 and 24 bytes into a destination of size 16 - 1701 | sprintf(lmac->name, "cgx_fwi_%d_%d", cgx->cgx_id, i); +../drivers/net/ethernet/qualcomm/qca_7k_common.c:31:18: warning: restricted __le16 degrades to integer +../drivers/net/ethernet/qualcomm/qca_7k_common.c:32:19: warning: restricted __le16 degrades to integer +../drivers/net/ethernet/packetengines/hamachi.c:1568:61: warning: cast to restricted __be16 +../drivers/net/ethernet/packetengines/hamachi.c:1568:59: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/packetengines/hamachi.c:1568:59: expected restricted __wsum [usertype] csum +../drivers/net/ethernet/packetengines/hamachi.c:1568:59: got unsigned short [usertype] +../drivers/net/ethernet/packetengines/hamachi.c:1569:56: warning: restricted __wsum degrades to integer +../drivers/net/ethernet/packetengines/hamachi.c:1570:67: warning: bad assignment (-=) to restricted __wsum +../drivers/net/ethernet/packetengines/hamachi.c:1572:67: warning: bad assignment (+=) to restricted __wsum +../drivers/net/ethernet/realtek/8139too.c:2247:9: warning: incorrect type in argument 1 (different base types) +../drivers/net/ethernet/realtek/8139too.c:2247:9: expected unsigned int [usertype] +../drivers/net/ethernet/realtek/8139too.c:2247:9: got restricted __le32 [usertype] +../drivers/net/ethernet/realtek/8139too.c:2248:9: warning: incorrect type in argument 1 (different base types) +../drivers/net/ethernet/realtek/8139too.c:2248:9: expected unsigned int [usertype] +../drivers/net/ethernet/realtek/8139too.c:2248:9: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:998:14: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1008:13: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1011:28: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1015:9: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1058:27: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1061:25: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1112:21: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1114:33: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1143:30: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1147:42: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1152:50: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1153:40: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1284:25: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1296:25: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1296:25: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1296:25: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1297:25: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1298:25: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1300:25: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1303:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1304:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1305:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1321:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1322:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1323:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1344:13: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1359:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1359:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1359:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1360:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1361:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1380:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1380:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1380:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1381:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1382:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1400:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1400:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1400:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1401:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1402:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1456:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1457:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: warning: cast to restricted __le32 +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: expected unsigned int +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:1461:17: got restricted __le32 [usertype] +../drivers/net/ethernet/qualcomm/emac/emac-mac.c:951:21: warning: cast truncates bits from constant value (ffffffff7fffffff becomes 7fffffff) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:571:25: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:574:38: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:31: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:62: warning: incorrect type in initializer (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:62: expected restricted __le32 [usertype] offs +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:573:62: got unsigned int +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:575:35: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:577:21: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:578:66: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:601:54: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:601:64: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:601:20: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:615:22: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:627:63: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:627:26: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:626:20: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:633:18: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:633:55: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:632:16: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:636:21: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:636:50: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:650:22: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:662:63: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:662:26: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:661:20: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:668:18: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:668:55: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:667:16: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:670:21: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:670:50: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:697:55: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:697:65: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:697:20: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:703:25: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:710:38: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:24: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:22: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:22: expected restricted __le32 [usertype] offs +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:709:22: got unsigned int +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:711:25: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:712:32: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:717:33: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:718:62: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: warning: incorrect type in initializer (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: expected int idx +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:766:19: got restricted __le32 [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:777:26: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:16: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:14: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:14: expected restricted __le32 [usertype] offs +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:776:14: got unsigned int +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:779:48: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:788:22: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:788:22: expected unsigned int [usertype] offs +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:788:22: got restricted __le32 [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:801:22: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:801:22: expected unsigned int [usertype] offs +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:801:22: got restricted __le32 [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:833:38: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:834:33: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:33: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:24: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:48: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:45: warning: incorrect type in return expression (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:45: expected restricted __le32 +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:847:45: got unsigned int +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:860:28: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:25: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:45: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:863:58: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:70: warning: incorrect type in return expression (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:70: expected restricted __le32 +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:862:70: got unsigned int +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:911:21: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:911:21: expected unsigned int [usertype] val +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:911:21: got restricted __le32 +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:999:72: warning: incorrect type in argument 3 (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:999:72: expected unsigned long long [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:999:72: got restricted __le64 [assigned] [usertype] data +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1014:60: warning: incorrect type in argument 3 (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1014:60: expected unsigned long long [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1014:60: got restricted __le64 [assigned] [usertype] data +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1025:60: warning: incorrect type in argument 3 (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1025:60: expected unsigned long long [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1025:60: got restricted __le64 [assigned] [usertype] data +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1099:23: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1099:23: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1099:23: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:24: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:24: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:24: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:22: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:22: expected restricted __le32 [addressable] [usertype] flash_fw_ver +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1123:22: got unsigned int +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1127:46: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c:1139:21: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:1035:24: warning: cast to restricted __le64 +../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:1037:24: warning: cast to restricted __le64 +../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:2133:17: warning: cast truncates bits from constant value (42110030 becomes 30) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:2133:17: warning: cast truncates bits from constant value (42110030 becomes 30) +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function ‘qede_get_drvinfo’: +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:621:34: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 25 [-Wformat-truncation=] + 621 | "[storm %s]", storm); + | ^~ ~~~~~ +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:620:17: note: ‘snprintf’ output between 9 and 40 bytes into a destination of size 32 + 620 | snprintf(info->version, sizeof(info->version), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 621 | "[storm %s]", storm); + | ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:638:31: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 28 [-Wformat-truncation=] + 638 | "mfw %s", mfw); + | ^~ ~~~ +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:637:17: note: ‘snprintf’ output between 5 and 36 bytes into a destination of size 32 + 637 | snprintf(info->fw_version, sizeof(info->fw_version), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 638 | "mfw %s", mfw); + | ~~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:635:31: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 28 [-Wformat-truncation=] + 635 | "mbi %s [mfw %s]", mbi, mfw); + | ^~ ~~~ +../drivers/net/ethernet/qlogic/qede/qede_ethtool.c:634:17: note: ‘snprintf’ output between 12 and 74 bytes into a destination of size 32 + 634 | snprintf(info->fw_version, sizeof(info->fw_version), @@ -96,200 +263,291 @@ -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:1637:45: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:1637:45: expected restricted __sum16 [usertype] check -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:1637:45: got restricted __be16 [usertype] -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2890:22: warning: incorrect type in argument 2 (different base types) -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2890:22: expected unsigned int [usertype] val -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2890:22: got restricted __be32 [usertype] ip -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2935:40: warning: cast from restricted __be32 -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2995:38: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2995:38: expected restricted __be32 [usertype] ip4dst -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2995:38: got unsigned int [usertype] -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2999:38: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2999:38: expected restricted __be32 [usertype] ip4src -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:2999:38: got unsigned int -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3001:36: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3001:36: expected restricted __be16 [usertype] psrc -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3001:36: got int -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3003:36: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3003:36: expected restricted __be16 [usertype] pdst -../drivers/net/ethernet/mediatek/mtk_eth_soc.c:3003:36: got int -../drivers/net/ethernet/neterion/s2io.c: In function ‘s2io_add_isr’: -../drivers/net/ethernet/neterion/s2io.c:6947:59: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 3 and 18 [-Wformat-truncation=] - 6947 | "%s:MSI-X-%d-TX", - | ^~ -../drivers/net/ethernet/neterion/s2io.c:6947:49: note: directive argument in the range [-2147483641, 2147483646] - 6947 | "%s:MSI-X-%d-TX", - | ^~~~~~~~~~~~~~~~ -../drivers/net/ethernet/neterion/s2io.c:6945:41: note: ‘snprintf’ output between 12 and 37 bytes into a destination of size 25 - 6945 | snprintf(sp->desc[i], - | ^~~~~~~~~~~~~~~~~~~~~ - 6946 | sizeof(sp->desc[i]), - | ~~~~~~~~~~~~~~~~~~~~ - 6947 | "%s:MSI-X-%d-TX", - | ~~~~~~~~~~~~~~~~~ - 6948 | dev->name, i); - | ~~~~~~~~~~~~~ -../drivers/net/ethernet/neterion/s2io.c:6936:59: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 3 and 18 [-Wformat-truncation=] - 6936 | "%s:MSI-X-%d-RX", - | ^~ -../drivers/net/ethernet/neterion/s2io.c:6936:49: note: directive argument in the range [-2147483641, 2147483646] - 6936 | "%s:MSI-X-%d-RX", - | ^~~~~~~~~~~~~~~~ -../drivers/net/ethernet/neterion/s2io.c:6934:41: note: ‘snprintf’ output between 12 and 37 bytes into a destination of size 25 - 6934 | snprintf(sp->desc[i], - | ^~~~~~~~~~~~~~~~~~~~~ - 6935 | sizeof(sp->desc[i]), - | ~~~~~~~~~~~~~~~~~~~~ - 6936 | "%s:MSI-X-%d-RX", - | ~~~~~~~~~~~~~~~~~ - 6937 | dev->name, i); - | ~~~~~~~~~~~~~ -../drivers/net/ethernet/neterion/s2io.c: In function ‘s2io_init_nic’: -../drivers/net/ethernet/neterion/s2io.c:8097:59: warning: ‘%s’ directive output may be truncated writing up to 79 bytes into a region of size between 35 and 50 [-Wformat-truncation=] - 8097 | snprintf(sp->name, sizeof(sp->name), "%s Neterion %s", dev->name, - | ^~ -../drivers/net/ethernet/neterion/s2io.c:8097:9: note: ‘snprintf’ output between 11 and 105 bytes into a destination of size 60 - 8097 | snprintf(sp->name, sizeof(sp->name), "%s Neterion %s", dev->name, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 8098 | sp->product_name); - | ~~~~~~~~~~~~~~~~~ -../drivers/net/ethernet/neterion/s2io.c:6959:41: warning: cast to restricted __be32 -../drivers/net/ethernet/mediatek/mtk_ppe_offload.c:124:19: warning: cast to restricted __be32 -../drivers/net/ethernet/mediatek/mtk_ppe_offload.c:128:41: warning: restricted __be32 degrades to integer -../drivers/net/ethernet/marvell/prestera/prestera_devlink.c: In function ‘prestera_dl_info_get’: -../drivers/net/ethernet/marvell/prestera/prestera_devlink.c:359:43: warning: ‘%d’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 4 and 12 [-Wformat-truncation=] - 359 | snprintf(buf, sizeof(buf), "%d.%d.%d", - | ^~ -../drivers/net/ethernet/marvell/prestera/prestera_devlink.c:359:36: note: directive argument in the range [0, 65535] - 359 | snprintf(buf, sizeof(buf), "%d.%d.%d", - | ^~~~~~~~~~ -../drivers/net/ethernet/marvell/prestera/prestera_devlink.c:359:9: note: ‘snprintf’ output between 6 and 18 bytes into a destination of size 16 - 359 | snprintf(buf, sizeof(buf), "%d.%d.%d", - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 360 | sw->dev->fw_rev.maj, - | ~~~~~~~~~~~~~~~~~~~~ - 361 | sw->dev->fw_rev.min, - | ~~~~~~~~~~~~~~~~~~~~ - 362 | sw->dev->fw_rev.sub); - | ~~~~~~~~~~~~~~~~~~~~ -../drivers/net/ethernet/micrel/ksz884x.c:3146:50: warning: restricted pci_power_t degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:3467:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:3467:37: expected unsigned int [usertype] next -../drivers/net/ethernet/micrel/ksz884x.c:3467:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:3469:29: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:3469:29: expected unsigned int [usertype] next -../drivers/net/ethernet/micrel/ksz884x.c:3469:29: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:3471:33: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:3471:33: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:3471:33: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:4377:31: warning: cast to restricted __le32 -../drivers/net/ethernet/micrel/ksz884x.c:4670:31: warning: cast to restricted __le32 -../drivers/net/ethernet/micrel/ksz884x.c:4706:31: warning: cast to restricted __le32 -../drivers/net/ethernet/micrel/ksz884x.c:4751:31: warning: cast to restricted __le32 -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1542:25: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1542:25: expected unsigned int [usertype] addr -../drivers/net/ethernet/micrel/ksz884x.c:1542:25: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: expected unsigned int [usertype] addr -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: expected unsigned int [usertype] addr -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: expected unsigned int [usertype] addr -../drivers/net/ethernet/micrel/ksz884x.c:1562:25: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1518:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1518:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1518:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: expected unsigned short protocol -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: got restricted __be16 [usertype] protocol -../drivers/net/ethernet/micrel/ksz884x.c:4596:25: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: expected unsigned short protocol -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: got restricted __be16 [usertype] tot_len -../drivers/net/ethernet/micrel/ksz884x.c:4601:25: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: expected unsigned short protocol -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: got restricted __be16 [usertype] protocol -../drivers/net/ethernet/micrel/ksz884x.c:4596:25: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: expected unsigned short protocol -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: got restricted __be16 [usertype] tot_len -../drivers/net/ethernet/micrel/ksz884x.c:4601:25: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: expected unsigned short protocol -../drivers/net/ethernet/micrel/ksz884x.c:4593:18: got restricted __be16 [usertype] protocol -../drivers/net/ethernet/micrel/ksz884x.c:4596:25: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: expected unsigned short protocol -../drivers/net/ethernet/micrel/ksz884x.c:4597:26: got restricted __be16 [usertype] tot_len -../drivers/net/ethernet/micrel/ksz884x.c:4601:25: warning: restricted __be16 degrades to integer -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1526:37: got restricted __le32 [usertype] -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: warning: incorrect type in assignment (different base types) -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: expected unsigned int [usertype] data -../drivers/net/ethernet/micrel/ksz884x.c:1528:30: got restricted __le32 [usertype] -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: warning: incorrect type in assignment (different address spaces) -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: expected struct rvu_fwdata *fwdata -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:822:21: got void [noderef] __iomem * -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:828:28: got struct rvu_fwdata *fwdata -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: warning: incorrect type in argument 1 (different address spaces) -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: expected void volatile [noderef] __iomem *addr -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:841:28: got struct rvu_fwdata *fwdata -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:2387:46: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/af/rvu.c:2410:38: warning: cast removes address space '__iomem' of expression -../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c: In function ‘rvu_dbg_mcs_init’: -../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:506:36: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 7 [-Wformat-overflow=] - 506 | sprintf(dname, "mcs%d", i); - | ^~ -../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:506:32: note: directive argument in the range [-2147483641, 2147483646] - 506 | sprintf(dname, "mcs%d", i); - | ^~~~~~~ -../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:506:17: note: ‘sprintf’ output between 5 and 15 bytes into a destination of size 10 - 506 | sprintf(dname, "mcs%d", i); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_bm_bufs_add' - different lock contexts for basic block -../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_rxq_drop_pkts' - different lock contexts for basic block -../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_rx_refill' - different lock contexts for basic block -../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_buff_hdr_pool_put' - different lock contexts for basic block -../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:1039:9: warning: context imbalance in 'mvpp2_rx' - different lock contexts for basic block -../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:4474:9: warning: context imbalance in 'mvpp2_tx' - different lock contexts for basic block + 635 | "mbi %s [mfw %s]", mbi, mfw); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c: In function ‘netxen_nic_attach’: +../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1052:45: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 4 and 19 [-Wformat-overflow=] + 1052 | sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); + | ^~ +In function ‘netxen_nic_request_irq’, + inlined from ‘netxen_nic_attach’ at ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1251:8: +../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1052:41: note: directive argument in the range [-2147483641, 254] + 1052 | sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); + | ^~~~~~~~ +../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c:1052:17: note: ‘sprintf’ output between 4 and 29 bytes into a destination of size 20 + 1052 | sprintf(sds_ring->name, "%s[%d]", netdev->name, ring); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/renesas/sh_eth.c:897:37: warning: incorrect type in argument 1 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:897:37: expected void const [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:897:37: got void * +../drivers/net/ethernet/renesas/sh_eth.c:898:37: warning: incorrect type in argument 1 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:898:37: expected void const [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:898:37: got void * +../drivers/net/ethernet/renesas/sh_eth.c:905:37: warning: incorrect type in argument 2 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:905:37: expected void [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:905:37: got void * +../drivers/net/ethernet/renesas/sh_eth.c:906:37: warning: incorrect type in argument 2 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:906:37: expected void [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:906:37: got void * +../drivers/net/ethernet/renesas/sh_eth.c:1184:31: warning: incorrect type in argument 1 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:1184:31: expected void const [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:1184:31: got void *addr +../drivers/net/ethernet/renesas/sh_eth.c:1189:31: warning: incorrect type in argument 2 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:1189:31: expected void [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:1189:31: got void *addr +../drivers/net/ethernet/renesas/sh_eth.c:1212:33: warning: incorrect type in argument 1 (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:1212:33: expected void const [noderef] __iomem * +../drivers/net/ethernet/renesas/sh_eth.c:1212:33: got void *addr +../drivers/net/ethernet/renesas/sh_eth.c:1242:43: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/renesas/sh_eth.c:1247:17: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1252:25: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1252:25: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1260:32: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1260:32: expected unsigned int [usertype] status +../drivers/net/ethernet/renesas/sh_eth.c:1260:32: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1262:40: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:1262:40: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:1262:40: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1266:49: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1283:33: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1359:29: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1359:29: expected unsigned int [usertype] len +../drivers/net/ethernet/renesas/sh_eth.c:1359:29: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1360:30: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1360:30: expected unsigned int [usertype] addr +../drivers/net/ethernet/renesas/sh_eth.c:1360:30: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1361:32: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1361:32: expected unsigned int [usertype] status +../drivers/net/ethernet/renesas/sh_eth.c:1361:32: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1375:32: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:1375:32: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:1375:32: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1383:32: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1383:32: expected unsigned int [usertype] status +../drivers/net/ethernet/renesas/sh_eth.c:1383:32: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1384:29: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1384:29: expected unsigned int [usertype] len +../drivers/net/ethernet/renesas/sh_eth.c:1384:29: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1393:24: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:1393:24: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:1393:24: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1545:40: warning: invalid assignment: &= +../drivers/net/ethernet/renesas/sh_eth.c:1545:40: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:1545:40: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1602:35: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/renesas/sh_eth.c:1605:31: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1606:27: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1644:36: warning: cast to restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1675:29: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1675:29: expected unsigned int [usertype] len +../drivers/net/ethernet/renesas/sh_eth.c:1675:29: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1691:38: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:1691:38: expected unsigned int [usertype] addr +../drivers/net/ethernet/renesas/sh_eth.c:1691:38: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:1695:40: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:1695:40: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:1695:40: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:1698:40: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:1698:40: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:1698:40: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:2473:32: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:2473:32: expected unsigned int [usertype] status +../drivers/net/ethernet/renesas/sh_eth.c:2473:32: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:2474:30: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:2474:30: expected unsigned int [usertype] addr +../drivers/net/ethernet/renesas/sh_eth.c:2474:30: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:2525:22: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:2525:22: expected unsigned int [usertype] addr +../drivers/net/ethernet/renesas/sh_eth.c:2525:22: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:2526:22: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/renesas/sh_eth.c:2526:22: expected unsigned int [usertype] len +../drivers/net/ethernet/renesas/sh_eth.c:2526:22: got restricted __le32 [usertype] +../drivers/net/ethernet/renesas/sh_eth.c:2530:32: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:2530:32: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:2530:32: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:2532:32: warning: invalid assignment: |= +../drivers/net/ethernet/renesas/sh_eth.c:2532:32: left side has type unsigned int +../drivers/net/ethernet/renesas/sh_eth.c:2532:32: right side has type restricted __le32 +../drivers/net/ethernet/renesas/sh_eth.c:3105:23: warning: incorrect type in assignment (different address spaces) +../drivers/net/ethernet/renesas/sh_eth.c:3105:23: expected void *addr +../drivers/net/ethernet/renesas/sh_eth.c:3105:23: got void [noderef] __iomem * +../drivers/net/ethernet/smsc/smc91x.c:557:9: warning: context imbalance in 'smc_hardware_send_pkt' - different lock contexts for basic block +../drivers/net/ethernet/qlogic/qede/qede_main.c: In function ‘qede_init_fp’: +../drivers/net/ethernet/qlogic/qede/qede_main.c:1903:61: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 5 and 20 [-Wformat-truncation=] + 1903 | snprintf(fp->name, sizeof(fp->name), "%s-fp-%d", + | ^~ +../drivers/net/ethernet/qlogic/qede/qede_main.c:1903:54: note: directive argument in the range [-2147483641, 65534] + 1903 | snprintf(fp->name, sizeof(fp->name), "%s-fp-%d", + | ^~~~~~~~~~ +../drivers/net/ethernet/qlogic/qede/qede_main.c:1903:17: note: ‘snprintf’ output between 6 and 31 bytes into a destination of size 24 + 1903 | snprintf(fp->name, sizeof(fp->name), "%s-fp-%d", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1904 | edev->ndev->name, queue_id); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c: In function ‘qlcnic_request_irq’: +../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:1771:49: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 9 and 24 [-Wformat-truncation=] + 1771 | "%s-tx-%d", netdev->name, ring); + | ^~ +../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:1771:42: note: directive argument in the range [-2147483643, 254] + 1771 | "%s-tx-%d", netdev->name, ring); + | ^~~~~~~~~~ +../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:1770:33: note: ‘snprintf’ output between 6 and 31 bytes into a destination of size 28 + 1770 | snprintf(tx_ring->name, sizeof(tx_ring->name), + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 1771 | "%s-tx-%d", netdev->name, ring); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:902:25: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:902:25: expected unsigned int [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:902:25: got restricted __le32 [usertype] +../drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c:202:31: warning: cast to restricted __le32 +../drivers/net/ethernet/sfc/tx.c:495:9: warning: context imbalance in 'efx_xdp_tx_buffers' - different lock contexts for basic block +In file included from ../include/linux/string.h:389, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:12, + from ../arch/x86/include/asm/paravirt.h:21, + from ../arch/x86/include/asm/cpuid.h:64, + from ../arch/x86/include/asm/processor.h:19, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic.h:10, + from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c:8: +In function ‘fortify_memcpy_chk’, + inlined from ‘qlcnic_83xx_dcb_query_cee_param’ at ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c:614:3: +../include/linux/fortify-string.h:580:25: warning: call to ‘__read_overflow2_field’ declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] + 580 | __read_overflow2_field(q_size_field, size); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/ethtool_common.c: In function ‘efx_fill_test’: +../drivers/net/ethernet/sfc/ethtool_common.c:277:32: warning: ‘%-24s’ directive output may be truncated writing between 24 and 31 bytes into a region of size between 0 and 25 [-Wformat-truncation=] + 277 | "%-6s %-24s", unit_str, test_str); + | ^~~~~ ~~~~~~~~ +../drivers/net/ethernet/sfc/ethtool_common.c:275:17: note: ‘snprintf’ output between 32 and 64 bytes into a destination of size 32 + 275 | snprintf(strings + test_index * ETH_GSTRING_LEN, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 276 | ETH_GSTRING_LEN, + | ~~~~~~~~~~~~~~~~ + 277 | "%-6s %-24s", unit_str, test_str); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c: In function ‘qed_mfw_get_tlv_time_value’: +../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:44: warning: ‘%d’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 2 and 10 [-Wformat-truncation=] + 432 | snprintf(p_buf->data, 14, "%d%d%d%d%d%d", + | ^~ +../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:35: note: directive argument in the range [0, 65535] + 432 | snprintf(p_buf->data, 14, "%d%d%d%d%d%d", + | ^~~~~~~~~~~~~~ +../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:35: note: directive argument in the range [0, 65535] +../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c:432:9: note: ‘snprintf’ output between 7 and 23 bytes into a destination of size 14 + 432 | snprintf(p_buf->data, 14, "%d%d%d%d%d%d", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 433 | p_time->month, p_time->day, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 434 | p_time->hour, p_time->min, p_time->msec, p_time->usec); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/mcdi_mon.c: In function ‘efx_mcdi_mon_probe’: +../drivers/net/ethernet/sfc/mcdi_mon.c:458:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] + 458 | snprintf(name, sizeof(name), "%s%u_input", + | ^ +../drivers/net/ethernet/sfc/mcdi_mon.c:458:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 + 458 | snprintf(name, sizeof(name), "%s%u_input", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 459 | hwmon_prefix, hwmon_index); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/mcdi_mon.c:489:57: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] + 489 | snprintf(name, sizeof(name), "%s%u_alarm", + | ^ +../drivers/net/ethernet/sfc/mcdi_mon.c:489:17: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 + 489 | snprintf(name, sizeof(name), "%s%u_alarm", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 490 | hwmon_prefix, hwmon_index); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/mcdi_mon.c:496:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] + 496 | snprintf(name, sizeof(name), "%s%u_label", + | ^ +../drivers/net/ethernet/sfc/mcdi_mon.c:496:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 + 496 | snprintf(name, sizeof(name), "%s%u_label", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 497 | hwmon_prefix, hwmon_index); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/ptp.c:205: warning: Excess struct member 'valid' description in 'efx_ptp_timeset' +../drivers/net/ethernet/qlogic/qed/qed_mcp.c:512:9: warning: context imbalance in '_qed_mcp_cmd_and_union' - unexpected unlock +../drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c:110:23: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c:110:50: warning: restricted __le32 degrades to integer +../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:105:14: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:105:14: expected unsigned int [usertype] data +../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:105:14: got restricted __be32 [usertype] val +../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:106:14: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:106:14: expected unsigned int [usertype] mask +../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:106:14: got restricted __be32 [usertype] mask +../drivers/net/ethernet/sfc/siena/tx.c:290:9: warning: context imbalance in 'efx_siena_xdp_tx_buffers' - different lock contexts for basic block +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c: In function ‘stmmac_selftest_get_strings’: +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:2040:52: warning: ‘%s’ directive output may be truncated writing up to 1535 bytes into a region of size 28 [-Wformat-truncation=] + 2040 | snprintf(p, ETH_GSTRING_LEN, "%2d. %s", i + 1, + | ^~ +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:2040:17: note: ‘snprintf’ output between 5 and 1540 bytes into a destination of size 32 + 2040 | snprintf(p, ETH_GSTRING_LEN, "%2d. %s", i + 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 2041 | stmmac_selftests[i].name); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/falcon/ethtool.c: In function ‘ef4_fill_test’: +../drivers/net/ethernet/sfc/falcon/ethtool.c:229:32: warning: ‘%-24s’ directive output may be truncated writing between 24 and 31 bytes into a region of size between 0 and 25 [-Wformat-truncation=] + 229 | "%-6s %-24s", unit_str, test_str); + | ^~~~~ ~~~~~~~~ +../drivers/net/ethernet/sfc/falcon/ethtool.c:227:17: note: ‘snprintf’ output between 32 and 64 bytes into a destination of size 32 + 227 | snprintf(strings + test_index * ETH_GSTRING_LEN, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 228 | ETH_GSTRING_LEN, + | ~~~~~~~~~~~~~~~~ + 229 | "%-6s %-24s", unit_str, test_str); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1138:27: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1138:27: expected restricted __be32 [usertype] mask +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1138:27: got int +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1383:18: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1383:18: expected restricted __be32 [addressable] [usertype] src +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1383:18: got unsigned int [usertype] src_mask +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1384:18: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1384:18: expected restricted __be32 [addressable] [usertype] dst +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1384:18: got unsigned int [usertype] dst_mask +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1512:24: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1512:24: expected restricted __be16 [addressable] [usertype] src +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1512:24: got unsigned int [usertype] src_mask +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1513:24: warning: incorrect type in assignment (different base types) +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1513:24: expected restricted __be16 [addressable] [usertype] dst +../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:1513:24: got unsigned int [usertype] dst_mask +../drivers/net/ethernet/sfc/siena/ethtool_common.c: In function ‘efx_fill_test’: +../drivers/net/ethernet/sfc/siena/ethtool_common.c:229:32: warning: ‘%-24s’ directive output may be truncated writing between 24 and 31 bytes into a region of size between 0 and 25 [-Wformat-truncation=] + 229 | "%-6s %-24s", unit_str, test_str); + | ^~~~~ ~~~~~~~~ +../drivers/net/ethernet/sfc/siena/ethtool_common.c:227:17: note: ‘snprintf’ output between 32 and 64 bytes into a destination of size 32 + 227 | snprintf(strings + test_index * ETH_GSTRING_LEN, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 228 | ETH_GSTRING_LEN, + | ~~~~~~~~~~~~~~~~ + 229 | "%-6s %-24s", unit_str, test_str); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/siena/mcdi_mon.c: In function ‘efx_siena_mcdi_mon_probe’: +../drivers/net/ethernet/sfc/siena/mcdi_mon.c:458:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] + 458 | snprintf(name, sizeof(name), "%s%u_input", + | ^ +../drivers/net/ethernet/sfc/siena/mcdi_mon.c:458:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 + 458 | snprintf(name, sizeof(name), "%s%u_input", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 459 | hwmon_prefix, hwmon_index); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/siena/mcdi_mon.c:489:57: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] + 489 | snprintf(name, sizeof(name), "%s%u_alarm", + | ^ +../drivers/net/ethernet/sfc/siena/mcdi_mon.c:489:17: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 + 489 | snprintf(name, sizeof(name), "%s%u_alarm", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 490 | hwmon_prefix, hwmon_index); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/siena/mcdi_mon.c:496:65: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] + 496 | snprintf(name, sizeof(name), "%s%u_label", + | ^ +../drivers/net/ethernet/sfc/siena/mcdi_mon.c:496:25: note: ‘snprintf’ output between 10 and 22 bytes into a destination of size 12 + 496 | snprintf(name, sizeof(name), "%s%u_label", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 497 | hwmon_prefix, hwmon_index); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/sfc/siena/ptp.c:208: warning: Excess struct member 'valid' description in 'efx_ptp_timeset' @@ -298,4 +555,0 @@ -../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: warning: incorrect type in initializer (different address spaces) -../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: expected struct Qdisc *qdisc -../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c:377:40: got struct Qdisc [noderef] __rcu *qdisc_sleeping -../drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c:1803:14: warning: restricted __be64 degrades to integer Per-file breakdown --- /tmp/tmp.jpvXbsMwzl 2025-01-03 17:43:16.467341907 -0800 +++ /tmp/tmp.biik2mwx5k 2025-01-03 17:43:16.473341844 -0800 @@ -4,21 +4,29 @@ - 6 ../drivers/net/ethernet/marvell/mv643xx_eth.c - 6 ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c - 1 ../drivers/net/ethernet/marvell/octeontx2/af/cgx.c - 5 ../drivers/net/ethernet/marvell/octeontx2/af/rvu.c - 1 ../drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c - 5 ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c - 4 ../drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c - 1 ../drivers/net/ethernet/marvell/prestera/prestera_devlink.c - 2 ../drivers/net/ethernet/marvell/skge.c - 7 ../drivers/net/ethernet/marvell/sky2.c - 7 ../drivers/net/ethernet/mediatek/mtk_eth_soc.c - 1 ../drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c - 2 ../drivers/net/ethernet/mediatek/mtk_ppe_offload.c - 1 ../drivers/net/ethernet/mellanox/mlx5/core/en/qos.c - 1 ../drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c - 2 ../drivers/net/ethernet/micrel/ks8851_par.c - 39 ../drivers/net/ethernet/micrel/ksz884x.c - 1 ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c - 3 ../drivers/net/ethernet/natsemi/ns83820.c - 4 ../drivers/net/ethernet/neterion/s2io.c - 1 ../drivers/net/ethernet/nvidia/forcedeth.c + 5 ../drivers/net/ethernet/packetengines/hamachi.c + 1 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c + 1 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c + 4 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c + 71 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c + 1 ../drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c + 3 ../drivers/net/ethernet/qlogic/qede/qede_ethtool.c + 1 ../drivers/net/ethernet/qlogic/qede/qede_main.c + 1 ../drivers/net/ethernet/qlogic/qed/qed_mcp.c + 1 ../drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c + 1 ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c + 57 ../drivers/net/ethernet/qualcomm/emac/emac-mac.c + 2 ../drivers/net/ethernet/qualcomm/qca_7k_common.c + 2 ../drivers/net/ethernet/realtek/8139too.c + 38 ../drivers/net/ethernet/renesas/sh_eth.c + 1 ../drivers/net/ethernet/sfc/ethtool_common.c + 1 ../drivers/net/ethernet/sfc/falcon/ethtool.c + 3 ../drivers/net/ethernet/sfc/mcdi_mon.c + 1 ../drivers/net/ethernet/sfc/ptp.c + 1 ../drivers/net/ethernet/sfc/siena/ethtool_common.c + 3 ../drivers/net/ethernet/sfc/siena/mcdi_mon.c + 1 ../drivers/net/ethernet/sfc/siena/ptp.c + 1 ../drivers/net/ethernet/sfc/siena/tx.c + 1 ../drivers/net/ethernet/sfc/tx.c + 1 ../drivers/net/ethernet/smsc/smc91x.c + 2 ../drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c + 6 ../drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c + 2 ../drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c + 1 ../include/linux/fortify-string.h