linux/tools/net/ynl
Jakub Kicinski 0c3d6fd4b8 tools: ynl: improve the direct-include header guard logic
Przemek suggests that I shouldn't accuse GCC of witchcraft,
there is a simpler explanation for why we need manual define.

scripts/headers_install.sh modifies the guard, removing _UAPI.
That's why including a kernel header from the tree and from
/usr leads to duplicate definitions.

This also solves the mystery of why I needed to include
the header conditionally. I had the wrong guards for most
cases but ethtool.

Suggested-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/20230621231719.2728928-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-06-22 19:47:02 -07:00
..
generated tools: ynl: work around stale system headers 2023-06-15 11:44:37 +01:00
lib tools: ynl-gen: support excluding tricky ops 2023-06-12 11:01:02 +01:00
samples tools: ynl: work around stale system headers 2023-06-15 11:44:37 +01:00
cli.py ynl: re-license uniformly under GPL-2.0 OR BSD-3-Clause 2023-03-07 13:44:30 -08:00
ethtool.py tools: ynl: Rename ethtool to ethtool.py 2023-04-13 22:18:29 -07:00
Makefile tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
Makefile.deps tools: ynl: improve the direct-include header guard logic 2023-06-22 19:47:02 -07:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-gen-c.py tools: ynl-gen: inherit policy in multi-attr 2023-06-13 11:46:46 -07:00
ynl-regen.sh tools: ynl-gen: record extra args for regen 2023-06-12 11:01:02 +01:00