tools: ynl: make sure we use local headers for page-pool
authorJakub Kicinski <kuba@kernel.org>
Wed, 29 Nov 2023 19:36:20 +0000 (11:36 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Nov 2023 00:07:00 +0000 (16:07 -0800)
commit929003723f6d1998155bf0472f97d6c75c3db93f
tree9bf5486f56f1e78137887457fddcc028b700d741
parentee1eb9de81dbdbf078df659062e4df256a009627
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: 637567e4a3ef ("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>
tools/net/ynl/samples/Makefile