../rust/helpers/helpers.c: note: in included file: ../rust/helpers/blk.c:6:6: warning: symbol 'rust_helper_blk_mq_rq_to_pdu' was not declared. Should it be static? ../rust/helpers/blk.c:11:16: warning: symbol 'rust_helper_blk_mq_rq_from_pdu' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/bug.c:5:17: warning: symbol 'rust_helper_BUG' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/build_bug.c:5:12: warning: symbol 'rust_helper_errname' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/cred.c:5:19: warning: symbol 'rust_helper_get_cred' was not declared. Should it be static? ../rust/helpers/cred.c:10:6: warning: symbol 'rust_helper_put_cred' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/err.c:5:14: warning: symbol 'rust_helper_ERR_PTR' was not declared. Should it be static? ../rust/helpers/err.c:10:6: warning: symbol 'rust_helper_IS_ERR' was not declared. Should it be static? ../rust/helpers/err.c:15:6: warning: symbol 'rust_helper_PTR_ERR' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/fs.c:9:13: warning: symbol 'rust_helper_get_file' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/kunit.c:5:14: warning: symbol 'rust_helper_kunit_get_current_test' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/mutex.c:5:6: warning: symbol 'rust_helper_mutex_lock' was not declared. Should it be static? ../rust/helpers/mutex.c:10:6: warning: symbol 'rust_helper___mutex_init' was not declared. Should it be static? ../rust/helpers/mutex.c:16:6: warning: symbol 'rust_helper_mutex_assert_is_held' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/page.c:6:13: warning: symbol 'rust_helper_alloc_pages' was not declared. Should it be static? ../rust/helpers/page.c:11:6: warning: symbol 'rust_helper_kmap_local_page' was not declared. Should it be static? ../rust/helpers/page.c:16:6: warning: symbol 'rust_helper_kunmap_local' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/pid_namespace.c:6:22: warning: symbol 'rust_helper_get_pid_ns' was not declared. Should it be static? ../rust/helpers/pid_namespace.c:11:6: warning: symbol 'rust_helper_put_pid_ns' was not declared. Should it be static? ../rust/helpers/pid_namespace.c:17:22: warning: symbol 'rust_helper_task_get_pid_ns' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/rbtree.c:5:6: warning: symbol 'rust_helper_rb_link_node' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/refcount.c:5:12: warning: symbol 'rust_helper_REFCOUNT_INIT' was not declared. Should it be static? ../rust/helpers/refcount.c:10:6: warning: symbol 'rust_helper_refcount_inc' was not declared. Should it be static? ../rust/helpers/refcount.c:15:6: warning: symbol 'rust_helper_refcount_dec_and_test' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/signal.c:5:5: warning: symbol 'rust_helper_signal_pending' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/slab.c:5:6: warning: symbol 'rust_helper_krealloc' was not declared. Should it be static? ../rust/helpers/slab.c:11:6: warning: symbol 'rust_helper_kvrealloc' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/spinlock.c:5:6: warning: symbol 'rust_helper___spin_lock_init' was not declared. Should it be static? ../rust/helpers/spinlock.c:19:6: warning: symbol 'rust_helper_spin_lock' was not declared. Should it be static? ../rust/helpers/spinlock.c:24:6: warning: symbol 'rust_helper_spin_unlock' was not declared. Should it be static? ../rust/helpers/spinlock.c:29:5: warning: symbol 'rust_helper_spin_trylock' was not declared. Should it be static? ../rust/helpers/spinlock.c:34:6: warning: symbol 'rust_helper_spin_assert_is_held' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/task.c:5:20: warning: symbol 'rust_helper_get_current' was not declared. Should it be static? ../rust/helpers/task.c:10:6: warning: symbol 'rust_helper_get_task_struct' was not declared. Should it be static? ../rust/helpers/task.c:15:6: warning: symbol 'rust_helper_put_task_struct' was not declared. Should it be static? ../rust/helpers/task.c:20:8: warning: symbol 'rust_helper_task_uid' was not declared. Should it be static? ../rust/helpers/task.c:25:8: warning: symbol 'rust_helper_task_euid' was not declared. Should it be static? ../rust/helpers/task.c:37:6: warning: symbol 'rust_helper_uid_eq' was not declared. Should it be static? ../rust/helpers/task.c:42:8: warning: symbol 'rust_helper_current_euid' was not declared. Should it be static? ../rust/helpers/task.c:47:23: warning: symbol 'rust_helper_current_user_ns' was not declared. Should it be static? ../rust/helpers/task.c:52:7: warning: symbol 'rust_helper_task_tgid_nr_ns' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/time.c:5:6: warning: symbol 'rust_helper_fsleep' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/uaccess.c:5:15: warning: symbol 'rust_helper_copy_from_user' was not declared. Should it be static? ../rust/helpers/uaccess.c:11:15: warning: symbol 'rust_helper_copy_to_user' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/vmalloc.c:5:6: warning: symbol 'rust_helper_vrealloc' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/wait.c:5:6: warning: symbol 'rust_helper_init_wait' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/workqueue.c:5:6: warning: symbol 'rust_helper_init_work_with_key' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/spinlock.c:19:6: warning: context imbalance in 'rust_helper_spin_lock' - wrong count at exit ../rust/helpers/spinlock.c:24:6: warning: context imbalance in 'rust_helper_spin_unlock' - unexpected unlock ../rust/helpers/helpers.c: note: in included file (through ../include/linux/wait.h, ../include/linux/wait_bit.h, ../include/linux/fs.h, ../include/linux/highmem.h, ../include/linux/bvec.h, ../include/linux/blk_types.h, ...): ../include/linux/spinlock.h:361:16: warning: context imbalance in 'rust_helper_spin_trylock' - wrong count at exit ../kernel/sys.c:1111:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1111:32: expected struct task_struct *p1 ../kernel/sys.c:1111:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1858: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" ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/blk.c:6:6: warning: symbol 'rust_helper_blk_mq_rq_to_pdu' was not declared. Should it be static? ../rust/helpers/blk.c:11:16: warning: symbol 'rust_helper_blk_mq_rq_from_pdu' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/bug.c:5:17: warning: symbol 'rust_helper_BUG' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/build_bug.c:5:12: warning: symbol 'rust_helper_errname' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/cred.c:5:19: warning: symbol 'rust_helper_get_cred' was not declared. Should it be static? ../rust/helpers/cred.c:10:6: warning: symbol 'rust_helper_put_cred' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/err.c:5:14: warning: symbol 'rust_helper_ERR_PTR' was not declared. Should it be static? ../rust/helpers/err.c:10:6: warning: symbol 'rust_helper_IS_ERR' was not declared. Should it be static? ../rust/helpers/err.c:15:6: warning: symbol 'rust_helper_PTR_ERR' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/kernel.c:5:6: warning: symbol 'rust_helper_cpu_relax' was not declared. Should it be static? ../rust/helpers/kernel.c:10:6: warning: symbol 'rust_helper___might_sleep_precision' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/fs.c:9:13: warning: symbol 'rust_helper_get_file' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/kunit.c:5:14: warning: symbol 'rust_helper_kunit_get_current_test' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/mutex.c:5:6: warning: symbol 'rust_helper_mutex_lock' was not declared. Should it be static? ../rust/helpers/mutex.c:10:6: warning: symbol 'rust_helper___mutex_init' was not declared. Should it be static? ../rust/helpers/mutex.c:16:6: warning: symbol 'rust_helper_mutex_assert_is_held' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/page.c:6:13: warning: symbol 'rust_helper_alloc_pages' was not declared. Should it be static? ../rust/helpers/page.c:11:6: warning: symbol 'rust_helper_kmap_local_page' was not declared. Should it be static? ../rust/helpers/page.c:16:6: warning: symbol 'rust_helper_kunmap_local' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/pid_namespace.c:6:22: warning: symbol 'rust_helper_get_pid_ns' was not declared. Should it be static? ../rust/helpers/pid_namespace.c:11:6: warning: symbol 'rust_helper_put_pid_ns' was not declared. Should it be static? ../rust/helpers/pid_namespace.c:17:22: warning: symbol 'rust_helper_task_get_pid_ns' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/rbtree.c:5:6: warning: symbol 'rust_helper_rb_link_node' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/refcount.c:5:12: warning: symbol 'rust_helper_REFCOUNT_INIT' was not declared. Should it be static? ../rust/helpers/refcount.c:10:6: warning: symbol 'rust_helper_refcount_inc' was not declared. Should it be static? ../rust/helpers/refcount.c:15:6: warning: symbol 'rust_helper_refcount_dec_and_test' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/signal.c:5:5: warning: symbol 'rust_helper_signal_pending' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/slab.c:5:6: warning: symbol 'rust_helper_krealloc' was not declared. Should it be static? ../rust/helpers/slab.c:11:6: warning: symbol 'rust_helper_kvrealloc' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/spinlock.c:5:6: warning: symbol 'rust_helper___spin_lock_init' was not declared. Should it be static? ../rust/helpers/spinlock.c:19:6: warning: symbol 'rust_helper_spin_lock' was not declared. Should it be static? ../rust/helpers/spinlock.c:24:6: warning: symbol 'rust_helper_spin_unlock' was not declared. Should it be static? ../rust/helpers/spinlock.c:29:5: warning: symbol 'rust_helper_spin_trylock' was not declared. Should it be static? ../rust/helpers/spinlock.c:34:6: warning: symbol 'rust_helper_spin_assert_is_held' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/task.c:5:20: warning: symbol 'rust_helper_get_current' was not declared. Should it be static? ../rust/helpers/task.c:10:6: warning: symbol 'rust_helper_get_task_struct' was not declared. Should it be static? ../rust/helpers/task.c:15:6: warning: symbol 'rust_helper_put_task_struct' was not declared. Should it be static? ../rust/helpers/task.c:20:8: warning: symbol 'rust_helper_task_uid' was not declared. Should it be static? ../rust/helpers/task.c:25:8: warning: symbol 'rust_helper_task_euid' was not declared. Should it be static? ../rust/helpers/task.c:37:6: warning: symbol 'rust_helper_uid_eq' was not declared. Should it be static? ../rust/helpers/task.c:42:8: warning: symbol 'rust_helper_current_euid' was not declared. Should it be static? ../rust/helpers/task.c:47:23: warning: symbol 'rust_helper_current_user_ns' was not declared. Should it be static? ../rust/helpers/task.c:52:7: warning: symbol 'rust_helper_task_tgid_nr_ns' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/time.c:5:6: warning: symbol 'rust_helper_fsleep' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/uaccess.c:5:15: warning: symbol 'rust_helper_copy_from_user' was not declared. Should it be static? ../rust/helpers/uaccess.c:11:15: warning: symbol 'rust_helper_copy_to_user' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/vmalloc.c:5:6: warning: symbol 'rust_helper_vrealloc' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/wait.c:5:6: warning: symbol 'rust_helper_init_wait' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/workqueue.c:5:6: warning: symbol 'rust_helper_init_work_with_key' was not declared. Should it be static? ../rust/helpers/helpers.c: note: in included file: ../rust/helpers/spinlock.c:19:6: warning: context imbalance in 'rust_helper_spin_lock' - wrong count at exit ../rust/helpers/spinlock.c:24:6: warning: context imbalance in 'rust_helper_spin_unlock' - unexpected unlock ../rust/helpers/helpers.c: note: in included file (through ../include/linux/wait.h, ../include/linux/wait_bit.h, ../include/linux/fs.h, ../include/linux/highmem.h, ../include/linux/bvec.h, ../include/linux/blk_types.h, ...): ../include/linux/spinlock.h:361:16: warning: context imbalance in 'rust_helper_spin_trylock' - wrong count at exit ../kernel/sys.c:1111:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1111:32: expected struct task_struct *p1 ../kernel/sys.c:1111:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1858: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" ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? New errors added --- /tmp/tmp.PvEsKILdA7 2025-01-25 06:28:18.327440004 -0800 +++ /tmp/tmp.P2MIKzgriR 2025-01-25 06:34:23.624515838 -0800 @@ -15,0 +16,3 @@ +../rust/helpers/kernel.c:5:6: warning: symbol 'rust_helper_cpu_relax' was not declared. Should it be static? +../rust/helpers/kernel.c:10:6: warning: symbol 'rust_helper___might_sleep_precision' was not declared. Should it be static? +../rust/helpers/helpers.c: note: in included file: Per-file breakdown --- /tmp/tmp.14OHPh98kn 2025-01-25 06:34:23.632515752 -0800 +++ /tmp/tmp.yUxFC9aC7g 2025-01-25 06:34:23.635515720 -0800 @@ -12,0 +13 @@ + 2 ../rust/helpers/kernel.c