../kernel/bpf/stackmap.c:490:9: warning: context imbalance in '__bpf_get_stack' - different lock contexts for basic block ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_printk’: ../kernel/trace/bpf_trace.c:377:9: warning: function ‘____bpf_trace_printk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 377 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_vprintk’: ../kernel/trace/bpf_trace.c:433:9: warning: function ‘____bpf_trace_vprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 433 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_seq_printf’: ../kernel/trace/bpf_trace.c:475:9: warning: function ‘____bpf_seq_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 475 | seq_bprintf(m, fmt, data.bin_args); | ^~~~~~~~~~~ ../kernel/trace/bpf_trace.c:189:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:226:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:241:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:276:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:574:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:760:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:771:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:785:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:833:41: warning: incorrect type in assignment (different address spaces) ../kernel/trace/bpf_trace.c:833:41: expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr ../kernel/trace/bpf_trace.c:833:41: got void * ../kernel/trace/bpf_trace.c:883:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:895:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1186:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2537:62: warning: dubious: x | !y ../kernel/trace/bpf_trace.c:3059:62: warning: dubious: x | !y ../kernel/trace/bpf_trace.c:3311:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3319:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3500:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3512:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3509:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3516:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3526:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3523:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3530:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3540:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3537:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3547:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3544:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3555:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3551:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3563:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3559:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2328:21: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c:2332:66: warning: dereference of noderef expression ../kernel/trace/bpf_trace.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/slab.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'uprobe_prog_run' - unexpected unlock ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_printk’: ../kernel/trace/bpf_trace.c:377:9: warning: function ‘____bpf_trace_printk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 377 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_vprintk’: ../kernel/trace/bpf_trace.c:433:9: warning: function ‘____bpf_trace_vprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 433 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_seq_printf’: ../kernel/trace/bpf_trace.c:475:9: warning: function ‘____bpf_seq_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 475 | seq_bprintf(m, fmt, data.bin_args); | ^~~~~~~~~~~ ../kernel/trace/bpf_trace.c:189:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:226:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:241:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:276:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:574:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:760:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:771:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:785:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:833:41: warning: incorrect type in assignment (different address spaces) ../kernel/trace/bpf_trace.c:833:41: expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr ../kernel/trace/bpf_trace.c:833:41: got void * ../kernel/trace/bpf_trace.c:883:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:895:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1186:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3314:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3322:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3503:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3515:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3512:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3519:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3529:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3526:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3533:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3543:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3540:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3550:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3547:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3558:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3554:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3566:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3562:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2329:21: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c:2333:66: warning: dereference of noderef expression ../kernel/trace/bpf_trace.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/slab.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'uprobe_prog_run' - unexpected unlock ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_printk’: ../kernel/trace/bpf_trace.c:377:9: warning: function ‘____bpf_trace_printk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 377 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_trace_vprintk’: ../kernel/trace/bpf_trace.c:433:9: warning: function ‘____bpf_trace_vprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 433 | ret = bstr_printf(data.buf, MAX_BPRINTF_BUF, fmt, data.bin_args); | ^~~ ../kernel/trace/bpf_trace.c: In function ‘____bpf_seq_printf’: ../kernel/trace/bpf_trace.c:475:9: warning: function ‘____bpf_seq_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 475 | seq_bprintf(m, fmt, data.bin_args); | ^~~~~~~~~~~ ../kernel/trace/bpf_trace.c:189:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:226:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:241:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:276:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:574:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:760:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:771:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:785:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:833:41: warning: incorrect type in assignment (different address spaces) ../kernel/trace/bpf_trace.c:833:41: expected void [noderef] __user *[addressable] [assigned] [usertype] sival_ptr ../kernel/trace/bpf_trace.c:833:41: got void * ../kernel/trace/bpf_trace.c:883:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:895:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:1186:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2537:62: warning: dubious: x | !y ../kernel/trace/bpf_trace.c:3059:62: warning: dubious: x | !y ../kernel/trace/bpf_trace.c:3311:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3319:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3500:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3512:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3509:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3516:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3526:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3523:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3530:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3540:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3537:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3547:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3544:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3555:52: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3551:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:3563:56: warning: cast removes address space '__user' of expression ../kernel/trace/bpf_trace.c:3559:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? ../kernel/trace/bpf_trace.c:2328:21: warning: dereference of noderef expression ../kernel/trace/bpf_trace.c:2332:66: warning: dereference of noderef expression ../kernel/trace/bpf_trace.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/slab.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'uprobe_prog_run' - unexpected unlock ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? New errors added --- /tmp/tmp.obvL28tCnp 2025-09-22 03:17:58.901877925 -0700 +++ /tmp/tmp.wFqbmtkEwn 2025-09-22 03:20:12.651857848 -0700 @@ -27,19 +27,21 @@ -../kernel/trace/bpf_trace.c:3314:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3322:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3503:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3515:52: warning: cast removes address space '__user' of expression -../kernel/trace/bpf_trace.c:3512:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3519:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3529:56: warning: cast removes address space '__user' of expression -../kernel/trace/bpf_trace.c:3526:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3533:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3543:52: warning: cast removes address space '__user' of expression -../kernel/trace/bpf_trace.c:3540:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3550:56: warning: cast removes address space '__user' of expression -../kernel/trace/bpf_trace.c:3547:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3558:52: warning: cast removes address space '__user' of expression -../kernel/trace/bpf_trace.c:3554:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:3566:56: warning: cast removes address space '__user' of expression -../kernel/trace/bpf_trace.c:3562:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? -../kernel/trace/bpf_trace.c:2329:21: warning: dereference of noderef expression -../kernel/trace/bpf_trace.c:2333:66: warning: dereference of noderef expression +../kernel/trace/bpf_trace.c:2537:62: warning: dubious: x | !y +../kernel/trace/bpf_trace.c:3059:62: warning: dubious: x | !y +../kernel/trace/bpf_trace.c:3311:18: warning: symbol 'bpf_session_is_return' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3319:19: warning: symbol 'bpf_session_cookie' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3500:17: warning: symbol 'bpf_send_signal_task' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3512:52: warning: cast removes address space '__user' of expression +../kernel/trace/bpf_trace.c:3509:17: warning: symbol 'bpf_probe_read_user_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3516:17: warning: symbol 'bpf_probe_read_kernel_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3526:56: warning: cast removes address space '__user' of expression +../kernel/trace/bpf_trace.c:3523:17: warning: symbol 'bpf_probe_read_user_str_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3530:17: warning: symbol 'bpf_probe_read_kernel_str_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3540:52: warning: cast removes address space '__user' of expression +../kernel/trace/bpf_trace.c:3537:17: warning: symbol 'bpf_copy_from_user_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3547:56: warning: cast removes address space '__user' of expression +../kernel/trace/bpf_trace.c:3544:17: warning: symbol 'bpf_copy_from_user_str_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3555:52: warning: cast removes address space '__user' of expression +../kernel/trace/bpf_trace.c:3551:17: warning: symbol 'bpf_copy_from_user_task_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:3563:56: warning: cast removes address space '__user' of expression +../kernel/trace/bpf_trace.c:3559:17: warning: symbol 'bpf_copy_from_user_task_str_dynptr' was not declared. Should it be static? +../kernel/trace/bpf_trace.c:2328:21: warning: dereference of noderef expression +../kernel/trace/bpf_trace.c:2332:66: warning: dereference of noderef expression Per-file breakdown --- /tmp/tmp.LGB95U4vpc 2025-09-22 03:20:12.658996203 -0700 +++ /tmp/tmp.AiiQvsmSUd 2025-09-22 03:20:12.660996190 -0700 @@ -2 +2 @@ - 34 ../kernel/trace/bpf_trace.c + 36 ../kernel/trace/bpf_trace.c