.pylintrc: warning: ignored by one of the .gitignore files ../kernel/bpf/helpers.c: In function ‘____bpf_snprintf’: ../kernel/bpf/helpers.c:1064:9: warning: function ‘____bpf_snprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 1064 | err = bstr_printf(str, str_size, fmt, data.bin_args); | ^~~ ../kernel/bpf/core.c:247:49: error: arithmetics on pointers to functions ../kernel/bpf/core.c:2972:29: warning: symbol 'bpf_seq_printf_btf_proto' was not declared. Should it be static? ../kernel/bpf/core.c: note: in included file (through ../include/trace/trace_events.h, ../include/trace/define_trace.h, ../include/trace/events/xdp.h, ../include/linux/bpf_trace.h): ../include/trace/events/xdp.h:321:1: warning: Using plain integer as NULL pointer ../include/trace/events/xdp.h:348:1: warning: Using plain integer as NULL pointer ../kernel/bpf/core.c: note: in included file (through ../include/linux/rbtree_latch.h, ../include/linux/bpf.h, ../include/linux/filter.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 * ../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 * ../kernel/bpf/helpers.c:1194:21: warning: incorrect type in assignment (different address spaces) ../kernel/bpf/helpers.c:1194:21: expected unsigned long long ( *[usertype] callback_fn )( ... ) ../kernel/bpf/helpers.c:1194:21: got void [noderef] __rcu * ../kernel/bpf/helpers.c:1897:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1898:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1899:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1900:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1901:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1902:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1903:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1904:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1905:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1906:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1909:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:2169:18: warning: symbol 'bpf_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2183:18: warning: symbol 'bpf_percpu_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2214:18: warning: symbol 'bpf_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2222:18: warning: symbol 'bpf_percpu_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2228:18: warning: symbol 'bpf_refcount_acquire_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2273:17: warning: symbol 'bpf_list_push_front_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2283:17: warning: symbol 'bpf_list_push_back_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2316:34: warning: symbol 'bpf_list_pop_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2321:34: warning: symbol 'bpf_list_pop_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2326:34: warning: symbol 'bpf_list_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2336:34: warning: symbol 'bpf_list_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2346:32: warning: symbol 'bpf_rbtree_remove' was not declared. Should it be static? ../kernel/bpf/helpers.c:2402:17: warning: symbol 'bpf_rbtree_add_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2412:32: warning: symbol 'bpf_rbtree_first' was not declared. Should it be static? ../kernel/bpf/helpers.c:2419:32: warning: symbol 'bpf_rbtree_root' was not declared. Should it be static? ../kernel/bpf/helpers.c:2426:32: warning: symbol 'bpf_rbtree_left' was not declared. Should it be static? ../kernel/bpf/helpers.c:2436:32: warning: symbol 'bpf_rbtree_right' was not declared. Should it be static? ../kernel/bpf/helpers.c:2452:32: warning: symbol 'bpf_task_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2463:18: warning: symbol 'bpf_task_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2468:18: warning: symbol 'bpf_task_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2481:27: warning: symbol 'bpf_cgroup_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2493:18: warning: symbol 'bpf_cgroup_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2498:18: warning: symbol 'bpf_cgroup_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2511:27: warning: symbol 'bpf_cgroup_ancestor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2531:27: warning: symbol 'bpf_cgroup_from_id' was not declared. Should it be static? ../kernel/bpf/helpers.c:2551:18: warning: symbol 'bpf_task_under_cgroup' was not declared. Should it be static? ../kernel/bpf/helpers.c:2594:27: warning: symbol 'bpf_task_get_cgroup1' was not declared. Should it be static? ../kernel/bpf/helpers.c:2611:32: warning: symbol 'bpf_task_from_pid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2630:32: warning: symbol 'bpf_task_from_vpid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2671:18: warning: symbol 'bpf_dynptr_slice' was not declared. Should it be static? ../kernel/bpf/helpers.c:2789:17: warning: symbol 'bpf_dynptr_adjust' was not declared. Should it be static? ../kernel/bpf/helpers.c:2808:18: warning: symbol 'bpf_dynptr_is_null' was not declared. Should it be static? ../kernel/bpf/helpers.c:2815:18: warning: symbol 'bpf_dynptr_is_rdonly' was not declared. Should it be static? ../kernel/bpf/helpers.c:2825:19: warning: symbol 'bpf_dynptr_size' was not declared. Should it be static? ../kernel/bpf/helpers.c:2835:17: warning: symbol 'bpf_dynptr_clone' was not declared. Should it be static? ../kernel/bpf/helpers.c:2862:17: warning: symbol 'bpf_dynptr_copy' was not declared. Should it be static? ../kernel/bpf/helpers.c:2906:18: warning: symbol 'bpf_cast_to_kern_ctx' was not declared. Should it be static? ../kernel/bpf/helpers.c:2911:18: warning: symbol 'bpf_rdonly_cast' was not declared. Should it be static? ../kernel/bpf/helpers.c:2916:18: warning: symbol 'bpf_rcu_read_lock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2921:18: warning: symbol 'bpf_rcu_read_unlock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2950:18: warning: symbol 'bpf_throw' was not declared. Should it be static? ../kernel/bpf/helpers.c:2969:17: warning: symbol 'bpf_wq_init' was not declared. Should it be static? ../kernel/bpf/helpers.c:2983:17: warning: symbol 'bpf_wq_start' was not declared. Should it be static? ../kernel/bpf/helpers.c:3000:17: warning: symbol 'bpf_wq_set_callback_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:3014:18: warning: symbol 'bpf_preempt_disable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3019:18: warning: symbol 'bpf_preempt_enable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3078:1: warning: symbol 'bpf_iter_bits_new' was not declared. Should it be static? ../kernel/bpf/helpers.c:3139:17: warning: symbol 'bpf_iter_bits_next' was not declared. Should it be static? ../kernel/bpf/helpers.c:3165:18: warning: symbol 'bpf_iter_bits_destroy' was not declared. Should it be static? ../kernel/bpf/helpers.c:3189:17: warning: symbol 'bpf_copy_from_user_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3234:17: warning: symbol 'bpf_copy_from_user_task_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3264:18: warning: symbol 'bpf_local_irq_save' was not declared. Should it be static? ../kernel/bpf/helpers.c:3269:18: warning: symbol 'bpf_local_irq_restore' was not declared. Should it be static? ../kernel/bpf/helpers.c:3274:18: warning: symbol '__bpf_trap' was not declared. Should it be static? ../kernel/bpf/helpers.c:3299:17: warning: symbol 'bpf_strcmp' was not declared. Should it be static? ../kernel/bpf/helpers.c:3341:17: warning: symbol 'bpf_strnchr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3378:17: warning: symbol 'bpf_strchr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3395:17: warning: symbol 'bpf_strchrnul' was not declared. Should it be static? ../kernel/bpf/helpers.c:3427:17: warning: symbol 'bpf_strrchr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3460:17: warning: symbol 'bpf_strnlen' was not declared. Should it be static? ../kernel/bpf/helpers.c:3490:17: warning: symbol 'bpf_strlen' was not declared. Should it be static? ../kernel/bpf/helpers.c:3508:17: warning: symbol 'bpf_strspn' was not declared. Should it be static? ../kernel/bpf/helpers.c:3552:17: warning: symbol 'bpf_strcspn' was not declared. Should it be static? ../kernel/bpf/helpers.c:3597:17: warning: symbol 'bpf_strnstr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3643:17: warning: symbol 'bpf_strstr' was not declared. Should it be static? ../kernel/bpf/helpers.c:2916:18: warning: context imbalance in 'bpf_rcu_read_lock' - wrong count at exit ../kernel/bpf/helpers.c: note: in included file (through ../include/linux/workqueue.h, ../include/linux/bpf.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'bpf_rcu_read_unlock' - unexpected unlock ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? .pylintrc: warning: ignored by one of the .gitignore files ../kernel/bpf/helpers.c: In function ‘____bpf_snprintf’: ../kernel/bpf/helpers.c:1064:9: warning: function ‘____bpf_snprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 1064 | err = bstr_printf(str, str_size, fmt, data.bin_args); | ^~~ ../kernel/bpf/helpers.c:1194:21: warning: incorrect type in assignment (different address spaces) ../kernel/bpf/helpers.c:1194:21: expected unsigned long long ( *[usertype] callback_fn )( ... ) ../kernel/bpf/helpers.c:1194:21: got void [noderef] __rcu * ../kernel/bpf/helpers.c:1897:29: warning: symbol 'bpf_get_current_task_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1898:29: warning: symbol 'bpf_get_current_task_btf_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1899:29: warning: symbol 'bpf_probe_read_user_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1900:29: warning: symbol 'bpf_probe_read_user_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1901:29: warning: symbol 'bpf_probe_read_kernel_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1902:29: warning: symbol 'bpf_probe_read_kernel_str_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1903:29: warning: symbol 'bpf_task_pt_regs_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1904:29: warning: symbol 'bpf_perf_event_read_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1905:29: warning: symbol 'bpf_send_signal_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1906:29: warning: symbol 'bpf_send_signal_thread_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:1909:29: warning: symbol 'bpf_get_branch_snapshot_proto' was not declared. Should it be static? ../kernel/bpf/helpers.c:2169:18: warning: symbol 'bpf_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2183:18: warning: symbol 'bpf_percpu_obj_new_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2214:18: warning: symbol 'bpf_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2222:18: warning: symbol 'bpf_percpu_obj_drop_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2228:18: warning: symbol 'bpf_refcount_acquire_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2273:17: warning: symbol 'bpf_list_push_front_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2283:17: warning: symbol 'bpf_list_push_back_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2316:34: warning: symbol 'bpf_list_pop_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2321:34: warning: symbol 'bpf_list_pop_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2326:34: warning: symbol 'bpf_list_front' was not declared. Should it be static? ../kernel/bpf/helpers.c:2336:34: warning: symbol 'bpf_list_back' was not declared. Should it be static? ../kernel/bpf/helpers.c:2346:32: warning: symbol 'bpf_rbtree_remove' was not declared. Should it be static? ../kernel/bpf/helpers.c:2402:17: warning: symbol 'bpf_rbtree_add_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:2412:32: warning: symbol 'bpf_rbtree_first' was not declared. Should it be static? ../kernel/bpf/helpers.c:2419:32: warning: symbol 'bpf_rbtree_root' was not declared. Should it be static? ../kernel/bpf/helpers.c:2426:32: warning: symbol 'bpf_rbtree_left' was not declared. Should it be static? ../kernel/bpf/helpers.c:2436:32: warning: symbol 'bpf_rbtree_right' was not declared. Should it be static? ../kernel/bpf/helpers.c:2452:32: warning: symbol 'bpf_task_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2463:18: warning: symbol 'bpf_task_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2468:18: warning: symbol 'bpf_task_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2481:27: warning: symbol 'bpf_cgroup_acquire' was not declared. Should it be static? ../kernel/bpf/helpers.c:2493:18: warning: symbol 'bpf_cgroup_release' was not declared. Should it be static? ../kernel/bpf/helpers.c:2498:18: warning: symbol 'bpf_cgroup_release_dtor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2511:27: warning: symbol 'bpf_cgroup_ancestor' was not declared. Should it be static? ../kernel/bpf/helpers.c:2531:27: warning: symbol 'bpf_cgroup_from_id' was not declared. Should it be static? ../kernel/bpf/helpers.c:2551:18: warning: symbol 'bpf_task_under_cgroup' was not declared. Should it be static? ../kernel/bpf/helpers.c:2594:27: warning: symbol 'bpf_task_get_cgroup1' was not declared. Should it be static? ../kernel/bpf/helpers.c:2611:32: warning: symbol 'bpf_task_from_pid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2630:32: warning: symbol 'bpf_task_from_vpid' was not declared. Should it be static? ../kernel/bpf/helpers.c:2671:18: warning: symbol 'bpf_dynptr_slice' was not declared. Should it be static? ../kernel/bpf/helpers.c:2789:17: warning: symbol 'bpf_dynptr_adjust' was not declared. Should it be static? ../kernel/bpf/helpers.c:2808:18: warning: symbol 'bpf_dynptr_is_null' was not declared. Should it be static? ../kernel/bpf/helpers.c:2815:18: warning: symbol 'bpf_dynptr_is_rdonly' was not declared. Should it be static? ../kernel/bpf/helpers.c:2825:19: warning: symbol 'bpf_dynptr_size' was not declared. Should it be static? ../kernel/bpf/helpers.c:2835:17: warning: symbol 'bpf_dynptr_clone' was not declared. Should it be static? ../kernel/bpf/helpers.c:2862:17: warning: symbol 'bpf_dynptr_copy' was not declared. Should it be static? ../kernel/bpf/helpers.c:2906:18: warning: symbol 'bpf_cast_to_kern_ctx' was not declared. Should it be static? ../kernel/bpf/helpers.c:2911:18: warning: symbol 'bpf_rdonly_cast' was not declared. Should it be static? ../kernel/bpf/helpers.c:2916:18: warning: symbol 'bpf_rcu_read_lock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2921:18: warning: symbol 'bpf_rcu_read_unlock' was not declared. Should it be static? ../kernel/bpf/helpers.c:2957:18: warning: symbol 'bpf_throw' was not declared. Should it be static? ../kernel/bpf/helpers.c:2976:17: warning: symbol 'bpf_wq_init' was not declared. Should it be static? ../kernel/bpf/helpers.c:2990:17: warning: symbol 'bpf_wq_start' was not declared. Should it be static? ../kernel/bpf/helpers.c:3007:17: warning: symbol 'bpf_wq_set_callback_impl' was not declared. Should it be static? ../kernel/bpf/helpers.c:3021:18: warning: symbol 'bpf_preempt_disable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3026:18: warning: symbol 'bpf_preempt_enable' was not declared. Should it be static? ../kernel/bpf/helpers.c:3085:1: warning: symbol 'bpf_iter_bits_new' was not declared. Should it be static? ../kernel/bpf/helpers.c:3146:17: warning: symbol 'bpf_iter_bits_next' was not declared. Should it be static? ../kernel/bpf/helpers.c:3172:18: warning: symbol 'bpf_iter_bits_destroy' was not declared. Should it be static? ../kernel/bpf/helpers.c:3196:17: warning: symbol 'bpf_copy_from_user_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3241:17: warning: symbol 'bpf_copy_from_user_task_str' was not declared. Should it be static? ../kernel/bpf/helpers.c:3271:18: warning: symbol 'bpf_local_irq_save' was not declared. Should it be static? ../kernel/bpf/helpers.c:3276:18: warning: symbol 'bpf_local_irq_restore' was not declared. Should it be static? ../kernel/bpf/helpers.c:3281:18: warning: symbol '__bpf_trap' was not declared. Should it be static? ../kernel/bpf/helpers.c:3306:17: warning: symbol 'bpf_strcmp' was not declared. Should it be static? ../kernel/bpf/helpers.c:3348:17: warning: symbol 'bpf_strnchr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3385:17: warning: symbol 'bpf_strchr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3402:17: warning: symbol 'bpf_strchrnul' was not declared. Should it be static? ../kernel/bpf/helpers.c:3434:17: warning: symbol 'bpf_strrchr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3467:17: warning: symbol 'bpf_strnlen' was not declared. Should it be static? ../kernel/bpf/helpers.c:3497:17: warning: symbol 'bpf_strlen' was not declared. Should it be static? ../kernel/bpf/helpers.c:3515:17: warning: symbol 'bpf_strspn' was not declared. Should it be static? ../kernel/bpf/helpers.c:3559:17: warning: symbol 'bpf_strcspn' was not declared. Should it be static? ../kernel/bpf/helpers.c:3604:17: warning: symbol 'bpf_strnstr' was not declared. Should it be static? ../kernel/bpf/helpers.c:3650:17: warning: symbol 'bpf_strstr' was not declared. Should it be static? ../kernel/bpf/helpers.c:2916:18: warning: context imbalance in 'bpf_rcu_read_lock' - wrong count at exit ../kernel/bpf/helpers.c: note: in included file (through ../include/linux/workqueue.h, ../include/linux/bpf.h): ../include/linux/rcupdate.h:871:25: warning: context imbalance in 'bpf_rcu_read_unlock' - unexpected unlock ../kernel/bpf/core.c:247:49: error: arithmetics on pointers to functions ../kernel/bpf/core.c:2975:29: warning: symbol 'bpf_seq_printf_btf_proto' was not declared. Should it be static? ../kernel/bpf/core.c: note: in included file (through ../include/trace/trace_events.h, ../include/trace/define_trace.h, ../include/trace/events/xdp.h, ../include/linux/bpf_trace.h): ../include/trace/events/xdp.h:321:1: warning: Using plain integer as NULL pointer ../include/trace/events/xdp.h:348:1: warning: Using plain integer as NULL pointer ../kernel/bpf/core.c: note: in included file (through ../include/linux/rbtree_latch.h, ../include/linux/bpf.h, ../include/linux/filter.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 * ../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 * ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static?