[PATCH v3] powerpc: Add missing SPDX license identifiers
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Sat Jan 22 02:19:12 AEDT 2022
On Fri, Jan 21, 2022 at 03:13:50PM +0000, Christophe Leroy wrote:
>
>
> Le 21/01/2022 à 15:35, Greg Kroah-Hartman a écrit :
> > On Fri, Jan 21, 2022 at 11:03:20AM +0000, Christophe Leroy wrote:
> >> Several files are missing SPDX license identifiers.
> >>
> >> Following files are given the following SPDX identifier based on the comments in the top of the file:
> >>
> >> boot/crtsavres.S:/* SPDX-License-Identifier: GPL-2.0+ */
> >
> > Are you sure that this is the correct license for this file?
>
> it says "... GNU General Public License ... either version 2, or (at
> your option) any later version".
>
> Isn't it what GPL-2.0+ means ?
Yes, but look further down, as I point out below...
> >> include/asm/epapr_hcalls.h:/* SPDX-License-Identifier: GPL-2.0+ OR BSD */
> >> include/asm/fsl_hcalls.h:/* SPDX-License-Identifier: GPL-2.0+ OR BSD */
> >> include/asm/ibmebus.h:/* SPDX-License-Identifier: GPL-2.0 OR OpenIB BSD */
> >> include/asm/sfp-machine.h:/* SPDX-License-Identifier: LGPL-2.0+ */
> >> kvm/mpic.c:// SPDX-License-Identifier: GPL-2.0
> >> lib/crtsavres.S:/* SPDX-License-Identifier: GPL-2.0+ */
> >> mm/book3s64/hash_4k.c:// SPDX-License-Identifier: LGPL-2.0
> >> mm/book3s64/hash_64k.c:// SPDX-License-Identifier: LGPL-2.0
> >> mm/book3s64/hash_hugepage.c:// SPDX-License-Identifier: LGPL-2.1
> >> platforms/pseries/ibmebus.c:// SPDX-License-Identifier: GPL-2.0 OR OpenIB BSD
> >> tools/head_check.sh:# SPDX-License-Identifier: GPL-2.0+
> >> xmon/ppc.h:/* SPDX-License-Identifier: GPL-1.0+ */
> >>
> >> Add to other files the default kernel license identifier, in extenso GPL-2.0.
> >>
> >> DTS files are handled in a separate commit.
> >>
> >> Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>
> >> Cc: Thomas Gleixner <tglx at linutronix.de>
> >> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> >> Cc: linux-spdx at vger.kernel.org
> >> ---
> >> v3: Removed license text and license note in the files that have any.
> >>
> >> v2: Changed from GPL-2.0 to a licence consistant with the file's comments for the few files listed in the commit message.
> >> ---
>
> ...
>
> >> 92 files changed, 105 insertions(+), 422 deletions(-)
> >
> > You might want to change less of these at once, as this is hard to
> > review as-is.
>
> Ok
>
> >
> >> diff --git a/arch/powerpc/boot/crtsavres.S b/arch/powerpc/boot/crtsavres.S
> >> index 085fb2b9a8b8..25e924459dcc 100644
> >> --- a/arch/powerpc/boot/crtsavres.S
> >> +++ b/arch/powerpc/boot/crtsavres.S
> >> @@ -1,3 +1,4 @@
> >> +/* SPDX-License-Identifier: GPL-2.0+ */
> >> /*
> >> * Special support for eabi and SVR4
> >> *
> >> @@ -7,11 +8,6 @@
> >> *
> >> * Based on gcc/config/rs6000/crtsavres.asm from gcc
> >> *
> >> - * This file is free software; you can redistribute it and/or modify it
> >> - * under the terms of the GNU General Public License as published by the
> >> - * Free Software Foundation; either version 2, or (at your option) any
> >> - * later version.
> >> - *
> >> * In addition to the permissions in the GNU General Public License, the
> >> * Free Software Foundation gives you unlimited permission to link the
> >> * compiled version of this file with other programs, and to distribute
> >> @@ -20,16 +16,6 @@
> >> * respects; for example, they cover modification of the file, and
> >> * distribution when not linked into another program.)
> >> *
> >> - * This file is distributed in the hope that it will be useful, but
> >> - * WITHOUT ANY WARRANTY; without even the implied warranty of
> >> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> >> - * General Public License for more details.
> >> - *
> >> - * You should have received a copy of the GNU General Public License
> >> - * along with this program; see the file COPYING. If not, write to
> >> - * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
> >> - * Boston, MA 02110-1301, USA.
> >> - *
> >> * As a special exception, if you link this library with files
> >> * compiled with GCC to produce an executable, this does not cause
> >> * the resulting executable to be covered by the GNU General Public License.
> >
> > Look at that "special exception", why are you ignoring it here? You
> > can't do that :(
>
> I'm not ignoring it, that's the reason why I left it.
You ignore that part of the license in the SPDX line, why?
> Isn't it the correct way to do ? How should it be done ?
You need to properly describe this in the SPDX line. You did not do so
here, which means that any tool just looking at the SPDX line would get
this license wrong.
thanks,
greg k-h
More information about the Linuxppc-dev
mailing list