========== build_allmodconfig_warn - FAILED ../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/nvme/target/core.c:1556:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1556:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1556:30: got restricted __le32 [usertype] ../drivers/nvme/target/core.c:1565:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1565:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1565:30: got restricted __le32 [usertype] ../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" ERROR: modpost: "resilient_queued_spin_lock_slowpath" [kernel/locking/locktorture.ko] undefined! ERROR: modpost: "rqspinlock_held_locks" [kernel/locking/locktorture.ko] undefined! make[3]: *** [../scripts/Makefile.modpost:147: Module.symvers] Error 1 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1944: modpost] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../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/nvme/target/core.c:1556:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1556:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1556:30: got restricted __le32 [usertype] ../drivers/nvme/target/core.c:1565:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1565:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1565:30: got restricted __le32 [usertype] ../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 ../kernel/locking/rqspinlock.c:204:13: warning: ‘rqspinlock_report_violation’ defined but not used [-Wunused-function] 204 | static void rqspinlock_report_violation(const char *s, void *lock) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../kernel/locking/rqspinlock.c:101:39: warning: incorrect type in initializer (different address spaces) ../kernel/locking/rqspinlock.c:101:39: expected void const [noderef] __percpu *__vpp_verify ../kernel/locking/rqspinlock.c:101:39: got struct rqspinlock_held * ../kernel/locking/rqspinlock.c:123:39: warning: incorrect type in initializer (different address spaces) ../kernel/locking/rqspinlock.c:123:39: expected void const [noderef] __percpu *__vpp_verify ../kernel/locking/rqspinlock.c:123:39: got struct rqspinlock_held * ../kernel/locking/rqspinlock.c:136:51: warning: incorrect type in initializer (different address spaces) ../kernel/locking/rqspinlock.c:136:51: expected void const [noderef] __percpu *__vpp_verify ../kernel/locking/rqspinlock.c:136:51: got struct rqspinlock_held * ../kernel/locking/rqspinlock.c:206:39: warning: incorrect type in initializer (different address spaces) ../kernel/locking/rqspinlock.c:206:39: expected void const [noderef] __percpu *__vpp_verify ../kernel/locking/rqspinlock.c:206:39: got struct rqspinlock_held * ../kernel/locking/rqspinlock.c:572:41: warning: incorrect type in argument 2 (different address spaces) ../kernel/locking/rqspinlock.c:572:41: expected struct qnode *qnodes ../kernel/locking/rqspinlock.c:572:41: got struct qnode [noderef] __percpu * ../kernel/locking/rqspinlock.c: note: in included file: ../kernel/locking/qspinlock.h:67:16: warning: incorrect type in initializer (different address spaces) ../kernel/locking/qspinlock.h:67:16: expected void const [noderef] __percpu *__vpp_verify ../kernel/locking/qspinlock.h:67:16: got struct mcs_spinlock * ../kernel/locking/rqspinlock.c:385: warning: Function parameter or struct member 'timeout' not described in 'resilient_queued_spin_lock_slowpath' ../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" ld: kernel/locking/rqspinlock.o: in function `lockevent_read': rqspinlock.c:(.text+0xa40): multiple definition of `lockevent_read'; kernel/locking/qspinlock.o:qspinlock.c:(.text+0x640): first defined here ld: kernel/locking/rqspinlock.o:(.discard+0x0): multiple definition of `__pcpu_unique_qnodes'; kernel/locking/qspinlock.o:(.discard+0x0): first defined here ld: kernel/locking/rqspinlock.o:(.discard+0x7): multiple definition of `__pcpu_unique_pv_kick_time'; kernel/locking/qspinlock.o:(.discard+0x4): first defined here make[3]: *** [../scripts/Makefile.vmlinux_o:65: vmlinux.o] Error 1 make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1207: vmlinux_o] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.QcuxIm3Qel 2025-02-06 07:04:58.416612685 -0800 +++ /tmp/tmp.RIQKzccx8z 2025-02-06 07:05:24.403339130 -0800 @@ -25,0 +26,23 @@ +../kernel/locking/rqspinlock.c:204:13: warning: ‘rqspinlock_report_violation’ defined but not used [-Wunused-function] + 204 | static void rqspinlock_report_violation(const char *s, void *lock) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +../kernel/locking/rqspinlock.c:101:39: warning: incorrect type in initializer (different address spaces) +../kernel/locking/rqspinlock.c:101:39: expected void const [noderef] __percpu *__vpp_verify +../kernel/locking/rqspinlock.c:101:39: got struct rqspinlock_held * +../kernel/locking/rqspinlock.c:123:39: warning: incorrect type in initializer (different address spaces) +../kernel/locking/rqspinlock.c:123:39: expected void const [noderef] __percpu *__vpp_verify +../kernel/locking/rqspinlock.c:123:39: got struct rqspinlock_held * +../kernel/locking/rqspinlock.c:136:51: warning: incorrect type in initializer (different address spaces) +../kernel/locking/rqspinlock.c:136:51: expected void const [noderef] __percpu *__vpp_verify +../kernel/locking/rqspinlock.c:136:51: got struct rqspinlock_held * +../kernel/locking/rqspinlock.c:206:39: warning: incorrect type in initializer (different address spaces) +../kernel/locking/rqspinlock.c:206:39: expected void const [noderef] __percpu *__vpp_verify +../kernel/locking/rqspinlock.c:206:39: got struct rqspinlock_held * +../kernel/locking/rqspinlock.c:572:41: warning: incorrect type in argument 2 (different address spaces) +../kernel/locking/rqspinlock.c:572:41: expected struct qnode *qnodes +../kernel/locking/rqspinlock.c:572:41: got struct qnode [noderef] __percpu * +../kernel/locking/rqspinlock.c: note: in included file: +../kernel/locking/qspinlock.h:67:16: warning: incorrect type in initializer (different address spaces) +../kernel/locking/qspinlock.h:67:16: expected void const [noderef] __percpu *__vpp_verify +../kernel/locking/qspinlock.h:67:16: got struct mcs_spinlock * +../kernel/locking/rqspinlock.c:385: warning: Function parameter or struct member 'timeout' not described in 'resilient_queued_spin_lock_slowpath' @@ -28,4 +51,6 @@ -ERROR: modpost: "resilient_queued_spin_lock_slowpath" [kernel/locking/locktorture.ko] undefined! -ERROR: modpost: "rqspinlock_held_locks" [kernel/locking/locktorture.ko] undefined! -make[3]: *** [../scripts/Makefile.modpost:147: Module.symvers] Error 1 -make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1944: modpost] Error 2 +ld: kernel/locking/rqspinlock.o: in function `lockevent_read': +rqspinlock.c:(.text+0xa40): multiple definition of `lockevent_read'; kernel/locking/qspinlock.o:qspinlock.c:(.text+0x640): first defined here +ld: kernel/locking/rqspinlock.o:(.discard+0x0): multiple definition of `__pcpu_unique_qnodes'; kernel/locking/qspinlock.o:(.discard+0x0): first defined here +ld: kernel/locking/rqspinlock.o:(.discard+0x7): multiple definition of `__pcpu_unique_pv_kick_time'; kernel/locking/qspinlock.o:(.discard+0x4): first defined here +make[3]: *** [../scripts/Makefile.vmlinux_o:65: vmlinux.o] Error 1 +make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1207: vmlinux_o] Error 2 Per-file breakdown --- /tmp/tmp.O8rWryBQ3U 2025-02-06 07:05:24.410339057 -0800 +++ /tmp/tmp.G4bzbZmYmA 2025-02-06 07:05:24.413339025 -0800 @@ -4,0 +5,2 @@ + 1 ../kernel/locking/qspinlock.h + 7 ../kernel/locking/rqspinlock.c