../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: In function ‘setup_sge_queues’: ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:1074:48: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 8 and 23 [-Wformat-truncation=] 1074 | "%s-Rx%d", dev->name, j); | ^~ ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:1074:42: note: directive argument in the range [-2147483641, 254] 1074 | "%s-Rx%d", dev->name, j); | ^~~~~~~~~ ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:1072:33: note: ‘snprintf’ output between 5 and 30 bytes into a destination of size 26 1072 | snprintf(adap->msix_info[msix].desc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1073 | sizeof(adap->msix_info[msix].desc), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1074 | "%s-Rx%d", dev->name, j); | ~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: In function ‘cxgb4_port_mirror_alloc_queues’: ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:1356:47: warning: ‘%d’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 1 and 16 [-Wformat-truncation=] 1356 | "%s-mirrorrxq%d", dev->name, i); | ^~ ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:1356:34: note: directive argument in the range [0, 65534] 1356 | "%s-mirrorrxq%d", dev->name, i); | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:1354:25: note: ‘snprintf’ output between 12 and 31 bytes into a destination of size 26 1354 | snprintf(mirror_rxq->msix->desc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1355 | sizeof(mirror_rxq->msix->desc), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1356 | "%s-mirrorrxq%d", dev->name, i); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/bonding/bond_options.c:1230:24: warning: incorrect type in assignment (different base types) ../drivers/net/bonding/bond_options.c:1230:24: expected restricted __be32 [addressable] [usertype] target ../drivers/net/bonding/bond_options.c:1230:24: got unsigned long long const [usertype] value ../drivers/infiniband/core/roce_gid_mgmt.c:292:23: warning: incorrect type in assignment (different address spaces) ../drivers/infiniband/core/roce_gid_mgmt.c:292:23: expected struct net_device [noderef] __rcu *[addressable] ndev ../drivers/infiniband/core/roce_gid_mgmt.c:292:23: got struct net_device *ndev ../drivers/infiniband/core/roce_gid_mgmt.c:386:48: warning: incorrect type in initializer (different address spaces) ../drivers/infiniband/core/roce_gid_mgmt.c:386:48: expected struct net_device [noderef] __rcu *ndev ../drivers/infiniband/core/roce_gid_mgmt.c:386:48: got struct net_device *ndev ../drivers/infiniband/core/roce_gid_mgmt.c:832:48: warning: incorrect type in argument 2 (different address spaces) ../drivers/infiniband/core/roce_gid_mgmt.c:832:48: expected void *filter_cookie ../drivers/infiniband/core/roce_gid_mgmt.c:832:48: got struct net_device [noderef] __rcu *ndev ../drivers/infiniband/core/roce_gid_mgmt.c:835:31: warning: incorrect type in argument 1 (different address spaces) ../drivers/infiniband/core/roce_gid_mgmt.c:835:31: expected struct net_device *dev ../drivers/infiniband/core/roce_gid_mgmt.c:835:31: got struct net_device [noderef] __rcu *ndev ../drivers/infiniband/core/roce_gid_mgmt.c:872:31: warning: incorrect type in assignment (different address spaces) ../drivers/infiniband/core/roce_gid_mgmt.c:872:31: expected struct net_device [noderef] __rcu *ndev ../drivers/infiniband/core/roce_gid_mgmt.c:872:31: got struct net_device *ndev ../net/netfilter/nfnetlink_hook.c: note: in included file (through ../include/linux/workqueue.h, ../include/linux/bpf.h): ../include/linux/rcupdate.h:880:25: warning: context imbalance in 'nf_netlink_dump_start_rcu' - unexpected unlock ../net/netfilter/nf_conncount.c: note: in included file (through ../include/linux/mm_types.h, ../include/linux/uio.h, ../include/linux/socket.h, ../include/uapi/linux/in.h, ../include/linux/in.h): ../include/linux/rbtree.h:74:9: error: incompatible types in comparison expression (different address spaces): ../include/linux/rbtree.h:74:9: struct rb_node [noderef] __rcu * ../include/linux/rbtree.h:74:9: struct rb_node * ../net/netfilter/nf_tables_offload.c:249:24: warning: incorrect type in initializer (different base types) ../net/netfilter/nf_tables_offload.c:249:24: expected restricted __be16 [usertype] proto ../net/netfilter/nf_tables_offload.c:249:24: got int ../net/netfilter/nft_set_rbtree.c: note: in included file (through ../include/linux/mm_types.h, ../include/linux/mmzone.h, ../include/linux/gfp.h, ../include/linux/umh.h, ../include/linux/kmod.h, ../include/linux/module.h): ../include/linux/rbtree.h:74:9: error: incompatible types in comparison expression (different address spaces): ../include/linux/rbtree.h:74:9: struct rb_node [noderef] __rcu * ../include/linux/rbtree.h:74:9: struct rb_node * ../net/netfilter/nf_flow_table_inet.c: note: in included file (through ../include/linux/if_pppox.h, ../include/net/netfilter/nf_flow_table.h): ../include/uapi/linux/if_pppox.h:153:29: warning: array of flexible structures ../net/netfilter/nft_compat.c: note: in included file (through ../include/linux/rbtree.h, ../include/linux/mm_types.h, ../include/linux/mmzone.h, ../include/linux/gfp.h, ../include/linux/umh.h, ../include/linux/kmod.h, ...): ../include/linux/rcupdate.h:880:25: warning: context imbalance in 'nfnl_compat_get_rcu' - unexpected unlock ../net/netfilter/nf_flow_table_offload.c:45:32: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:45:32: expected restricted __be32 [usertype] keyid ../net/netfilter/nf_flow_table_offload.c:45:32: got unsigned int ../net/netfilter/nf_flow_table_offload.c:55:44: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:55:44: expected restricted __be32 [usertype] src ../net/netfilter/nf_flow_table_offload.c:55:44: got unsigned int ../net/netfilter/nf_flow_table_offload.c:57:44: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:57:44: expected restricted __be32 [usertype] dst ../net/netfilter/nf_flow_table_offload.c:57:44: got unsigned int ../net/netfilter/nf_flow_table_offload.c:87:25: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:87:25: expected restricted __be16 [usertype] vlan_tpid ../net/netfilter/nf_flow_table_offload.c:87:25: got int ../net/netfilter/nf_flow_table_offload.c:150:32: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:150:32: expected restricted __be32 [usertype] src ../net/netfilter/nf_flow_table_offload.c:150:32: got unsigned int ../net/netfilter/nf_flow_table_offload.c:152:32: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:152:32: expected restricted __be32 [usertype] dst ../net/netfilter/nf_flow_table_offload.c:152:32: got unsigned int ../net/netfilter/nf_flow_table_offload.c:167:29: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:167:29: expected restricted __be16 [usertype] n_proto ../net/netfilter/nf_flow_table_offload.c:167:29: got int ../net/netfilter/nf_flow_table_offload.c:193:30: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:193:30: expected restricted __be16 [usertype] src ../net/netfilter/nf_flow_table_offload.c:193:30: got int ../net/netfilter/nf_flow_table_offload.c:195:30: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:195:30: expected restricted __be16 [usertype] dst ../net/netfilter/nf_flow_table_offload.c:195:30: got int ../net/netfilter/nf_flow_table_offload.c:258:30: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:258:30: expected restricted __be32 const [usertype] *value ../net/netfilter/nf_flow_table_offload.c:258:30: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:258:36: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:258:36: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:258:36: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:263:30: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:263:30: expected restricted __be32 const [usertype] *value ../net/netfilter/nf_flow_table_offload.c:263:30: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:263:36: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:263:36: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:263:36: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:316:30: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:316:30: expected restricted __be32 const [usertype] *value ../net/netfilter/nf_flow_table_offload.c:316:30: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:316:36: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:316:36: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:316:36: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:322:30: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:322:30: expected restricted __be32 const [usertype] *value ../net/netfilter/nf_flow_table_offload.c:322:30: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:322:36: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:322:36: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:322:36: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:333:20: warning: incorrect type in initializer (different base types) ../net/netfilter/nf_flow_table_offload.c:333:20: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:333:20: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:351:37: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:351:37: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:351:37: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:360:20: warning: incorrect type in initializer (different base types) ../net/netfilter/nf_flow_table_offload.c:360:20: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:360:20: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:378:37: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:378:37: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:378:37: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:400:20: warning: incorrect type in initializer (different base types) ../net/netfilter/nf_flow_table_offload.c:400:20: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:400:20: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:417:60: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:417:60: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:417:60: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:425:20: warning: incorrect type in initializer (different base types) ../net/netfilter/nf_flow_table_offload.c:425:20: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:425:20: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:442:60: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:442:60: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:442:60: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:477:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:477:22: expected unsigned int [assigned] [usertype] port ../net/netfilter/nf_flow_table_offload.c:477:22: got restricted __be32 [usertype] ../net/netfilter/nf_flow_table_offload.c:478:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:478:22: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:478:22: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:483:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:483:22: expected unsigned int [assigned] [usertype] port ../net/netfilter/nf_flow_table_offload.c:483:22: got restricted __be32 [usertype] ../net/netfilter/nf_flow_table_offload.c:484:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:484:22: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:484:22: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:491:30: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:491:30: expected restricted __be32 const [usertype] *value ../net/netfilter/nf_flow_table_offload.c:491:30: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:491:37: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:491:37: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:491:37: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:507:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:507:22: expected unsigned int [assigned] [usertype] port ../net/netfilter/nf_flow_table_offload.c:507:22: got restricted __be32 [usertype] ../net/netfilter/nf_flow_table_offload.c:508:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:508:22: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:508:22: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:513:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:513:22: expected unsigned int [assigned] [usertype] port ../net/netfilter/nf_flow_table_offload.c:513:22: got restricted __be32 [usertype] ../net/netfilter/nf_flow_table_offload.c:514:22: warning: incorrect type in assignment (different base types) ../net/netfilter/nf_flow_table_offload.c:514:22: expected unsigned int [usertype] mask ../net/netfilter/nf_flow_table_offload.c:514:22: got restricted __be32 ../net/netfilter/nf_flow_table_offload.c:521:30: warning: incorrect type in argument 4 (different base types) ../net/netfilter/nf_flow_table_offload.c:521:30: expected restricted __be32 const [usertype] *value ../net/netfilter/nf_flow_table_offload.c:521:30: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:521:37: warning: incorrect type in argument 5 (different base types) ../net/netfilter/nf_flow_table_offload.c:521:37: expected restricted __be32 const [usertype] *mask ../net/netfilter/nf_flow_table_offload.c:521:37: got unsigned int * ../net/netfilter/nf_flow_table_offload.c:846:24: warning: incorrect type in initializer (different base types) ../net/netfilter/nf_flow_table_offload.c:846:24: expected restricted __be16 [usertype] proto ../net/netfilter/nf_flow_table_offload.c:846:24: got int ../net/netfilter/nf_tables_api.c:2015:25: warning: cast between address spaces (__percpu -> __rcu) ../net/netfilter/nf_tables_api.c:2015:25: error: incompatible types in comparison expression (different address spaces): ../net/netfilter/nf_tables_api.c:2015:25: struct nft_stats [noderef] __rcu * ../net/netfilter/nf_tables_api.c:2015:25: struct nft_stats [noderef] __percpu * ../net/netfilter/nf_tables_api.c:2217:17: warning: cast between address spaces (__percpu -> __rcu) ../net/netfilter/nf_tables_api.c:2217:17: error: incompatible types in comparison expression (different address spaces): ../net/netfilter/nf_tables_api.c:2217:17: struct nft_stats [noderef] __rcu * ../net/netfilter/nf_tables_api.c:2217:17: struct nft_stats [noderef] __percpu * ../net/netfilter/nf_tables_api.c:2217:17: error: incompatible types in comparison expression (different address spaces): ../net/netfilter/nf_tables_api.c:2217:17: struct nft_stats [noderef] __rcu * ../net/netfilter/nf_tables_api.c:2217:17: struct nft_stats [noderef] __percpu * ../net/netfilter/nf_tables_api.c:2260:21: warning: cast between address spaces (__percpu -> __rcu) ../net/netfilter/nf_tables_api.c:2260:21: error: incompatible types in comparison expression (different address spaces): ../net/netfilter/nf_tables_api.c:2260:21: struct nft_stats [noderef] __rcu * ../net/netfilter/nf_tables_api.c:2260:21: struct nft_stats [noderef] __percpu * ../net/netfilter/nf_tables_api.c:2646:25: warning: cast between address spaces (__percpu -> __rcu) ../net/netfilter/nf_tables_api.c:2646:25: error: incompatible types in comparison expression (different address spaces): ../net/netfilter/nf_tables_api.c:2646:25: struct nft_stats [noderef] __rcu * ../net/netfilter/nf_tables_api.c:2646:25: struct nft_stats [noderef] __percpu * ../net/netfilter/nf_tables_api.c: note: in included file (through ../include/linux/rbtree.h, ../include/linux/mm_types.h, ../include/linux/mmzone.h, ../include/linux/gfp.h, ../include/linux/umh.h, ../include/linux/kmod.h, ...): ../include/linux/rcupdate.h:880:25: warning: context imbalance in 'nft_netlink_dump_start_rcu' - unexpected unlock