Skip to content

Commit 9290037

Browse files
committed
tools: ynl: make sure we use local headers for page-pool
Building samples generates the following warning: In file included from page-pool.c:11: generated/netdev-user.h:21:45: warning: ‘enum netdev_xdp_rx_metadata’ declared inside parameter list will not be visible outside of this definition or declaration 21 | const char *netdev_xdp_rx_metadata_str(enum netdev_xdp_rx_metadata value); | ^~~~~~~~~~~~~~~~~~~~~~ Our magic way of including uAPI headers assumes the sample name matches the family name. We need to copy the flags over. Fixes: 637567e ("tools: ynl: add sample for getting page-pool information") Link: https://lore.kernel.org/r/20231129193622.2912353-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent ee1eb9d commit 9290037

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/net/ynl/samples/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ include $(wildcard *.d)
1818

1919
all: $(BINS)
2020

21+
CFLAGS_page-pool=$(CFLAGS_netdev)
22+
2123
$(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS)
2224
@echo -e '\tCC sample $@'
2325
@$(COMPILE.c) $(CFLAGS_$@) $@.c -o $@.o

0 commit comments

Comments
 (0)