diff mbox series

[RESEND,v2,2/7] nfc: nci: replace GPLv2 boilerplate with SPDX

Message ID 20211007133021.32704-3-krzysztof.kozlowski@canonical.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series nfc: minor printk cleanup | expand

Checks

Context Check Description
netdev/cover_letter success Series has a cover letter
netdev/fixes_present success Fixes tag not required for -next series
netdev/patch_count success Link
netdev/tree_selection success Guessed tree name to be net-next
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cc_maintainers warning 3 maintainers not CCed: gregkh@linuxfoundation.org zhengyongjun3@huawei.com jirislaby@kernel.org
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/module_param success Was 0 now: 0
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success No Fixes tag
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 22 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/header_inline success No static functions without inline keyword in header files

Commit Message

Krzysztof Kozlowski Oct. 7, 2021, 1:30 p.m. UTC
Replace standard GPLv2 only license text with SPDX tag.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 net/nfc/nci/uart.c | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

Comments

Joe Perches Oct. 8, 2021, 10:33 a.m. UTC | #1
On Thu, 2021-10-07 at 15:30 +0200, Krzysztof Kozlowski wrote:
> Replace standard GPLv2 only license text with SPDX tag.

Nak

This is actually licenced with GPL-2.0-or-later

> diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c
[]
> @@ -1,20 +1,8 @@
> +// SPDX-License-Identifier: GPL-2.0
[]
You may use, redistribute and/or modify this File in
> - * accordance with the terms and conditions of the License, a copy of which
> - * is available on the worldwide web at
> - * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

See the actual text at the old link which includes:

    This program 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 of the License, or
    (at your option) any later version.
Krzysztof Kozlowski Oct. 8, 2021, 10:46 a.m. UTC | #2
On 08/10/2021 12:33, Joe Perches wrote:
> On Thu, 2021-10-07 at 15:30 +0200, Krzysztof Kozlowski wrote:
>> Replace standard GPLv2 only license text with SPDX tag.
> 
> Nak
> 
> This is actually licenced with GPL-2.0-or-later
> 
>> diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c
> []
>> @@ -1,20 +1,8 @@
>> +// SPDX-License-Identifier: GPL-2.0
> []
> You may use, redistribute and/or modify this File in
>> - * accordance with the terms and conditions of the License, a copy of which
>> - * is available on the worldwide web at
>> - * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
> 
> See the actual text at the old link which includes:
> 
>     This program 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 of the License, or
>     (at your option) any later version.


Thanks Joe for checking this. Isn't this conflicting with first
paragraph in the source file:

  This software file (the "File") is distributed by Marvell
InternationalLtd. under the terms of the GNU General Public License
Version 2, June 1991(the "License").

This part does not specify "or later".

Best regards,
Krzysztof
Joe Perches Oct. 8, 2021, 10:54 a.m. UTC | #3
On Fri, 2021-10-08 at 12:46 +0200, Krzysztof Kozlowski wrote:
> On 08/10/2021 12:33, Joe Perches wrote:
> > On Thu, 2021-10-07 at 15:30 +0200, Krzysztof Kozlowski wrote:
> > > Replace standard GPLv2 only license text with SPDX tag.
> > 
> > Nak
> > 
> > This is actually licenced with GPL-2.0-or-later
> > 
> > > diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c
> > []
> > > @@ -1,20 +1,8 @@
> > > +// SPDX-License-Identifier: GPL-2.0
> > []
> > You may use, redistribute and/or modify this File in
> > > - * accordance with the terms and conditions of the License, a copy of which
> > > - * is available on the worldwide web at
> > > - * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
> > 
> > See the actual text at the old link which includes:
> > 
> >     This program 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 of the License, or
> >     (at your option) any later version.
> 
> 
> Thanks Joe for checking this. Isn't this conflicting with first
> paragraph in the source file:
> 
>   This software file (the "File") is distributed by Marvell
> InternationalLtd. under the terms of the GNU General Public License
> Version 2, June 1991(the "License").
> 
> This part does not specify "or later".

It doesn't need to as it calls out the exact license which by
specific reference includes the "or later".

And this is a nominal 'weakness' in the spdx license referencing
system which relies on contents of files in the LICENSE directory.
diff mbox series

Patch

diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c
index 9bdd9a7d187e..9f7bae51404e 100644
--- a/net/nfc/nci/uart.c
+++ b/net/nfc/nci/uart.c
@@ -1,20 +1,8 @@ 
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2015, Marvell International Ltd.
  *
- * This software file (the "File") is distributed by Marvell International
- * Ltd. under the terms of the GNU General Public License Version 2, June 1991
- * (the "License").  You may use, redistribute and/or modify this File in
- * accordance with the terms and conditions of the License, a copy of which
- * is available on the worldwide web at
- * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
- *
- * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
- * ARE EXPRESSLY DISCLAIMED.  The License provides additional details about
- * this warranty disclaimer.
- */
-
-/* Inspired (hugely) by HCI LDISC implementation in Bluetooth.
+ * Inspired (hugely) by HCI LDISC implementation in Bluetooth.
  *
  *  Copyright (C) 2000-2001  Qualcomm Incorporated
  *  Copyright (C) 2002-2003  Maxim Krasnyansky <maxk@qualcomm.com>