Re: [PATCH] checkpatch.pl: Add SPDX license tag check for dts files and headers

From: Rob Herring
Date: Fri Jun 09 2017 - 09:57:06 EST


On Wed, Jun 07, 2017 at 05:45:03PM +0900, Masahiro Yamada wrote:
> Hi Rob,
>
> 2017-02-24 0:56 GMT+09:00 Rob Herring <robh@xxxxxxxxxx>:
> > Add a check for using SPDX-License-Identifier tags to define the license of
> > .dts{i} and DT header files rather than using free form license text. This
> > check looks for GPL, BSD, or X11(really incorrectly labeled MIT license)
> > license text which are the commonly used DT licenses.
> >
> > Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> > Cc: Andy Whitcroft <apw@xxxxxxxxxxxxx>
> > Cc: Joe Perches <joe@xxxxxxxxxxx>
>
> I have a question.
>
> Is SPDX encouraged only for DT?
>
> What should we do with C source files?

Depends on the maintainer and your lawyer I guess. gregkh is
supportive[1]. I wouldn't recommend changing existing license text
though.

Rob

[1] https://lkml.org/lkml/2017/2/15/968