Re: [PATCH] kbuild: detect missing "WITH Linux-syscall-note" for uapi headers

From: Greg KH
Date: Thu Jul 25 2019 - 14:05:35 EST


On Thu, Jul 25, 2019 at 05:05:13PM +0900, Masahiro Yamada wrote:
> UAPI headers licensed under GPL are supposed to have exception
> "WITH Linux-syscall-note" so that they can be included into non-GPL
> user space application code.
>
> Unfortunately, people often miss to add it. Break 'make headers'
> when any of exported headers lacks the exception note so that the
> 0-day bot can easily catch it.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
> ---
>
> This patch depends on the following:
>
> https://lore.kernel.org/patchwork/patch/1105289/
>
> I will turn on the error after all headers are fixed.

I've taken the dependancy here in the spdx tree and will send it to
Linus for 5.3-rc2. I can also take this now through that tree, or you
can add it to yours afterward, which ever is easier for you.

thanks,

greg k-h