.pylintrc: warning: ignored by one of the .gitignore files .pylintrc: warning: ignored by one of the .gitignore files In file included from ../arch/x86/include/asm/bug.h:103, from ../arch/x86/include/asm/alternative.h:9, from ../arch/x86/include/asm/barrier.h:5, from ../include/linux/list.h:11, from ../include/linux/timer.h:5, from ../include/linux/netdevice.h:24, from ../include/trace/events/xdp.h:8, from ../include/linux/bpf_trace.h:5, from ../include/net/libeth/xdp.h:7, from ../drivers/net/ethernet/intel/libeth/tx.c:6: ../include/net/libeth/xdp.h: In function ‘libeth_xdp_prepare_buff’: ../include/net/libeth/xdp.h:1295:44: warning: passing argument 1 of ‘page_pool_page_is_pp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); | ^~~~ ../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ 111 | int __ret_warn_on = !!(condition); \ | ^~~~~~~~~ ../include/net/netmem.h:301:9: note: in expansion of macro ‘DEBUG_NET_WARN_ON_ONCE’ 301 | DEBUG_NET_WARN_ON_ONCE(!page_pool_page_is_pp(p)); \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/net/libeth/xdp.h:1295:26: note: in expansion of macro ‘pp_page_to_nmdesc’ 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); | ^~~~~~~~~~~~~~~~~ In file included from ../arch/x86/include/asm/cacheflush.h:5, from ../include/linux/cacheflush.h:5, from ../include/linux/highmem.h:8, from ../include/linux/bvec.h:10, from ../include/linux/skbuff.h:17, from ../include/net/net_namespace.h:43, from ../include/linux/netdevice.h:38: ../include/linux/mm.h:4176:54: note: expected ‘struct page *’ but argument is of type ‘const struct page *’ 4176 | static inline bool page_pool_page_is_pp(struct page *page) | ~~~~~~~~~~~~~^~~~ In file included from ../arch/x86/include/asm/bug.h:103, from ../arch/x86/include/asm/alternative.h:9, from ../arch/x86/include/asm/barrier.h:5, from ../include/linux/list.h:11, from ../include/linux/timer.h:5, from ../include/linux/netdevice.h:24, from ../include/trace/events/xdp.h:8, from ../include/linux/bpf_trace.h:5, from ../include/net/libeth/xdp.h:7, from ../include/net/libeth/xsk.h:7, from ../drivers/net/ethernet/intel/libeth/xsk.c:8: ../include/net/libeth/xdp.h: In function ‘libeth_xdp_prepare_buff’: ../include/net/libeth/xdp.h:1295:44: warning: passing argument 1 of ‘page_pool_page_is_pp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); | ^~~~ ../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ 111 | int __ret_warn_on = !!(condition); \ | ^~~~~~~~~ ../include/net/netmem.h:301:9: note: in expansion of macro ‘DEBUG_NET_WARN_ON_ONCE’ 301 | DEBUG_NET_WARN_ON_ONCE(!page_pool_page_is_pp(p)); \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/net/libeth/xdp.h:1295:26: note: in expansion of macro ‘pp_page_to_nmdesc’ 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); | ^~~~~~~~~~~~~~~~~ In file included from ../arch/x86/include/asm/cacheflush.h:5, from ../include/linux/cacheflush.h:5, from ../include/linux/highmem.h:8, from ../include/linux/bvec.h:10, from ../include/linux/skbuff.h:17, from ../include/net/net_namespace.h:43, from ../include/linux/netdevice.h:38: ../include/linux/mm.h:4176:54: note: expected ‘struct page *’ but argument is of type ‘const struct page *’ 4176 | static inline bool page_pool_page_is_pp(struct page *page) | ~~~~~~~~~~~~~^~~~ In file included from ../arch/x86/include/asm/bug.h:103, from ../arch/x86/include/asm/alternative.h:9, from ../arch/x86/include/asm/barrier.h:5, from ../include/linux/list.h:11, from ../include/linux/timer.h:5, from ../include/linux/netdevice.h:24, from ../include/trace/events/xdp.h:8, from ../include/linux/bpf_trace.h:5, from ../include/net/libeth/xdp.h:7, from ../drivers/net/ethernet/intel/libeth/xdp.c:8: ../include/net/libeth/xdp.h: In function ‘libeth_xdp_prepare_buff’: ../include/net/libeth/xdp.h:1295:44: warning: passing argument 1 of ‘page_pool_page_is_pp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); | ^~~~ ../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ 111 | int __ret_warn_on = !!(condition); \ | ^~~~~~~~~ ../include/net/netmem.h:301:9: note: in expansion of macro ‘DEBUG_NET_WARN_ON_ONCE’ 301 | DEBUG_NET_WARN_ON_ONCE(!page_pool_page_is_pp(p)); \ | ^~~~~~~~~~~~~~~~~~~~~~ ../include/net/libeth/xdp.h:1295:26: note: in expansion of macro ‘pp_page_to_nmdesc’ 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); | ^~~~~~~~~~~~~~~~~ In file included from ../arch/x86/include/asm/cacheflush.h:5, from ../include/linux/cacheflush.h:5, from ../include/linux/highmem.h:8, from ../include/linux/bvec.h:10, from ../include/linux/skbuff.h:17, from ../include/net/net_namespace.h:43, from ../include/linux/netdevice.h:38: ../include/linux/mm.h:4176:54: note: expected ‘struct page *’ but argument is of type ‘const struct page *’ 4176 | static inline bool page_pool_page_is_pp(struct page *page) | ~~~~~~~~~~~~~^~~~ New errors added --- /tmp/tmp.iMlNCC7Dv2 2025-07-17 00:48:09.682950657 -0700 +++ /tmp/tmp.zIzlFRisFf 2025-07-17 00:49:10.988001957 -0700 @@ -1,0 +2,100 @@ +In file included from ../arch/x86/include/asm/bug.h:103, + from ../arch/x86/include/asm/alternative.h:9, + from ../arch/x86/include/asm/barrier.h:5, + from ../include/linux/list.h:11, + from ../include/linux/timer.h:5, + from ../include/linux/netdevice.h:24, + from ../include/trace/events/xdp.h:8, + from ../include/linux/bpf_trace.h:5, + from ../include/net/libeth/xdp.h:7, + from ../drivers/net/ethernet/intel/libeth/tx.c:6: +../include/net/libeth/xdp.h: In function ‘libeth_xdp_prepare_buff’: +../include/net/libeth/xdp.h:1295:44: warning: passing argument 1 of ‘page_pool_page_is_pp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] + 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); + | ^~~~ +../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ + 111 | int __ret_warn_on = !!(condition); \ + | ^~~~~~~~~ +../include/net/netmem.h:301:9: note: in expansion of macro ‘DEBUG_NET_WARN_ON_ONCE’ + 301 | DEBUG_NET_WARN_ON_ONCE(!page_pool_page_is_pp(p)); \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/net/libeth/xdp.h:1295:26: note: in expansion of macro ‘pp_page_to_nmdesc’ + 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); + | ^~~~~~~~~~~~~~~~~ +In file included from ../arch/x86/include/asm/cacheflush.h:5, + from ../include/linux/cacheflush.h:5, + from ../include/linux/highmem.h:8, + from ../include/linux/bvec.h:10, + from ../include/linux/skbuff.h:17, + from ../include/net/net_namespace.h:43, + from ../include/linux/netdevice.h:38: +../include/linux/mm.h:4176:54: note: expected ‘struct page *’ but argument is of type ‘const struct page *’ + 4176 | static inline bool page_pool_page_is_pp(struct page *page) + | ~~~~~~~~~~~~~^~~~ +In file included from ../arch/x86/include/asm/bug.h:103, + from ../arch/x86/include/asm/alternative.h:9, + from ../arch/x86/include/asm/barrier.h:5, + from ../include/linux/list.h:11, + from ../include/linux/timer.h:5, + from ../include/linux/netdevice.h:24, + from ../include/trace/events/xdp.h:8, + from ../include/linux/bpf_trace.h:5, + from ../include/net/libeth/xdp.h:7, + from ../include/net/libeth/xsk.h:7, + from ../drivers/net/ethernet/intel/libeth/xsk.c:8: +../include/net/libeth/xdp.h: In function ‘libeth_xdp_prepare_buff’: +../include/net/libeth/xdp.h:1295:44: warning: passing argument 1 of ‘page_pool_page_is_pp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] + 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); + | ^~~~ +../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ + 111 | int __ret_warn_on = !!(condition); \ + | ^~~~~~~~~ +../include/net/netmem.h:301:9: note: in expansion of macro ‘DEBUG_NET_WARN_ON_ONCE’ + 301 | DEBUG_NET_WARN_ON_ONCE(!page_pool_page_is_pp(p)); \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/net/libeth/xdp.h:1295:26: note: in expansion of macro ‘pp_page_to_nmdesc’ + 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); + | ^~~~~~~~~~~~~~~~~ +In file included from ../arch/x86/include/asm/cacheflush.h:5, + from ../include/linux/cacheflush.h:5, + from ../include/linux/highmem.h:8, + from ../include/linux/bvec.h:10, + from ../include/linux/skbuff.h:17, + from ../include/net/net_namespace.h:43, + from ../include/linux/netdevice.h:38: +../include/linux/mm.h:4176:54: note: expected ‘struct page *’ but argument is of type ‘const struct page *’ + 4176 | static inline bool page_pool_page_is_pp(struct page *page) + | ~~~~~~~~~~~~~^~~~ +In file included from ../arch/x86/include/asm/bug.h:103, + from ../arch/x86/include/asm/alternative.h:9, + from ../arch/x86/include/asm/barrier.h:5, + from ../include/linux/list.h:11, + from ../include/linux/timer.h:5, + from ../include/linux/netdevice.h:24, + from ../include/trace/events/xdp.h:8, + from ../include/linux/bpf_trace.h:5, + from ../include/net/libeth/xdp.h:7, + from ../drivers/net/ethernet/intel/libeth/xdp.c:8: +../include/net/libeth/xdp.h: In function ‘libeth_xdp_prepare_buff’: +../include/net/libeth/xdp.h:1295:44: warning: passing argument 1 of ‘page_pool_page_is_pp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] + 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); + | ^~~~ +../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ + 111 | int __ret_warn_on = !!(condition); \ + | ^~~~~~~~~ +../include/net/netmem.h:301:9: note: in expansion of macro ‘DEBUG_NET_WARN_ON_ONCE’ + 301 | DEBUG_NET_WARN_ON_ONCE(!page_pool_page_is_pp(p)); \ + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/net/libeth/xdp.h:1295:26: note: in expansion of macro ‘pp_page_to_nmdesc’ + 1295 | pp_page_to_nmdesc(page)->pp->p.offset, len, true); + | ^~~~~~~~~~~~~~~~~ +In file included from ../arch/x86/include/asm/cacheflush.h:5, + from ../include/linux/cacheflush.h:5, + from ../include/linux/highmem.h:8, + from ../include/linux/bvec.h:10, + from ../include/linux/skbuff.h:17, + from ../include/net/net_namespace.h:43, + from ../include/linux/netdevice.h:38: +../include/linux/mm.h:4176:54: note: expected ‘struct page *’ but argument is of type ‘const struct page *’ + 4176 | static inline bool page_pool_page_is_pp(struct page *page) + | ~~~~~~~~~~~~~^~~~ Per-file breakdown --- /tmp/tmp.Jatfr5He3F 2025-07-17 00:49:10.993347755 -0700 +++ /tmp/tmp.e790Rw8WC8 2025-07-17 00:49:10.996347738 -0700 @@ -0,0 +1,3 @@ + 3 ../include/asm-generic/bug.h + 3 ../include/net/libeth/xdp.h + 3 ../include/net/netmem.h