Subject: Re: [PATCH] tools: ynl-gen: include auto-generated uAPI header only once

From: Jakub Kicinski <[email-masked]>
Date: Wed, 9 Oct 2024 19:19:06 -0700

On Wed,  9 Oct 2024 14:12:35 +0200 Antonio Quartulli wrote:
> The auto-generated uAPI file is currently included in both the
> .h and .c netlink stub files.
> However, the .c file already includes its .h counterpart, thus
> leading to a double inclusion of the uAPI header.
> 
> Prevent the double inclusion by including the uAPI header in the
> .h stub file only.

FWIW I don't have a strong opinion either way.
Since both files are auto-generated there is no risk of getting it
wrong. Then again the win is fairly minor if any.
But if we want to do this why only remove the uapi header?
Netlink headers are also included twice.