../drivers/net/ethernet/cadence/macb_main.c: In function ‘gem_get_ethtool_strings’: ../drivers/net/ethernet/cadence/macb_main.c:3170:77: warning: ‘%s’ directive output may be truncated writing up to 239 bytes into a region of size between 19 and 29 [-Wformat-truncation=] 3170 | snprintf(stat_string, ETH_GSTRING_LEN, "q%d_%s", | ^~ ../drivers/net/ethernet/cadence/macb_main.c:3170:33: note: ‘snprintf’ output between 4 and 253 bytes into a destination of size 32 3170 | snprintf(stat_string, ETH_GSTRING_LEN, "q%d_%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3171 | q, queue_statistics[i].stat_string); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/cadence/macb_main.c:284:16: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:284:16: expected unsigned int [usertype] bottom ../drivers/net/ethernet/cadence/macb_main.c:284:16: got restricted __le32 [usertype] ../drivers/net/ethernet/cadence/macb_main.c:286:13: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:286:13: expected unsigned short [usertype] top ../drivers/net/ethernet/cadence/macb_main.c:286:13: got restricted __le16 [usertype] ../drivers/net/ethernet/cadence/macb_main.c:3615:39: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3620:39: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3625:40: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3625:69: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3650:20: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3654:20: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:3654:20: expected unsigned int [assigned] [usertype] w0 ../drivers/net/ethernet/cadence/macb_main.c:3654:20: got restricted __be32 [usertype] ip4src ../drivers/net/ethernet/cadence/macb_main.c:3664:20: warning: restricted __be32 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3668:20: warning: incorrect type in assignment (different base types) ../drivers/net/ethernet/cadence/macb_main.c:3668:20: expected unsigned int [assigned] [usertype] w0 ../drivers/net/ethernet/cadence/macb_main.c:3668:20: got restricted __be32 [usertype] ip4dst ../drivers/net/ethernet/cadence/macb_main.c:3678:21: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3678:50: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3684:30: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3685:30: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3692:36: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3693:38: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3696:38: warning: restricted __be16 degrades to integer ../drivers/net/ethernet/cadence/macb_main.c:3732:9: warning: cast from restricted __be32 ../drivers/net/ethernet/cadence/macb_main.c:3732:9: warning: cast from restricted __be32 ../drivers/net/ethernet/cadence/macb_main.c:3786:25: warning: cast from restricted __be32 ../drivers/net/ethernet/cadence/macb_main.c:3786:25: warning: cast from restricted __be32 ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../kernel/sys.c:1113:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1113:32: expected struct task_struct *p1 ../kernel/sys.c:1113:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1860:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/base/firmware_loader/main.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../drivers/target/target_core_configfs.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:414:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/base/firmware_loader/main.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../kernel/sys.c:1113:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1113:32: expected struct task_struct *p1 ../kernel/sys.c:1113:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1860:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/target/target_core_configfs.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:414:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static?