mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
@ 2020-05-19 16:52 Uwe Kleine-König
  2020-05-20 12:09 ` Sascha Hauer
  2020-05-20 12:10 ` Ahmad Fatoum
  0 siblings, 2 replies; 13+ messages in thread
From: Uwe Kleine-König @ 2020-05-19 16:52 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, Roland Hieber

This adapts all files that were identifed by licensecheck
(https://salsa.debian.org/build-common-team/licensecheck.git) as
licensed under the GPL and that have a (IMHO) clear copyright statement.

The advantage is that these specifiers are machine-parseable which helps
license conformance, e.g. for packaging barebox in Debian.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/pwm/core.c    | 15 +++------------
 drivers/pwm/pwm-mxs.c | 12 ++----------
 drivers/pwm/pxa_pwm.c |  6 ++----
 3 files changed, 7 insertions(+), 26 deletions(-)

diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 05dad93e5ce3..878f4d72bbf5 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
+
 /*
  * Generic pwmlib implementation
- *
- * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
- *
- *  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, or (at your option)
- *  any later version.
- *
- *  This program 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.
  */
 #include <common.h>
 #include <errno.h>
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index a06040ac3268..1e2db39def22 100644
--- a/drivers/pwm/pwm-mxs.c
+++ b/drivers/pwm/pwm-mxs.c
@@ -1,13 +1,5 @@
-/*
- * Copyright 2012 Freescale Semiconductor, Inc.
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
- */
+// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
 
 #include <common.h>
 #include <init.h>
diff --git a/drivers/pwm/pxa_pwm.c b/drivers/pwm/pxa_pwm.c
index 78d1489d570f..dc8e41464b01 100644
--- a/drivers/pwm/pxa_pwm.c
+++ b/drivers/pwm/pxa_pwm.c
@@ -1,10 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
 /*
  * simple driver for PWM (Pulse Width Modulator) controller
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * 2008-02-13	initial version eric miao <eric.miao@marvell.com>
  * 2012         Robert Jarzmik <robert.jarzmik@free.fr>
  */
-- 
2.26.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-19 16:52 [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers Uwe Kleine-König
@ 2020-05-20 12:09 ` Sascha Hauer
  2020-05-20 12:10 ` Ahmad Fatoum
  1 sibling, 0 replies; 13+ messages in thread
From: Sascha Hauer @ 2020-05-20 12:09 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, Ahmad Fatoum, Roland Hieber

On Tue, May 19, 2020 at 06:52:07PM +0200, Uwe Kleine-König wrote:
> This adapts all files that were identifed by licensecheck
> (https://salsa.debian.org/build-common-team/licensecheck.git) as
> licensed under the GPL and that have a (IMHO) clear copyright statement.
> 
> The advantage is that these specifiers are machine-parseable which helps
> license conformance, e.g. for packaging barebox in Debian.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/pwm/core.c    | 15 +++------------
>  drivers/pwm/pwm-mxs.c | 12 ++----------
>  drivers/pwm/pxa_pwm.c |  6 ++----
>  3 files changed, 7 insertions(+), 26 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
> index 05dad93e5ce3..878f4d72bbf5 100644
> --- a/drivers/pwm/core.c
> +++ b/drivers/pwm/core.c
> @@ -1,17 +1,8 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
> +
>  /*
>   * Generic pwmlib implementation
> - *
> - * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
> - *
> - *  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, or (at your option)
> - *  any later version.
> - *
> - *  This program 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.
>   */
>  #include <common.h>
>  #include <errno.h>
> diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> index a06040ac3268..1e2db39def22 100644
> --- a/drivers/pwm/pwm-mxs.c
> +++ b/drivers/pwm/pwm-mxs.c
> @@ -1,13 +1,5 @@
> -/*
> - * Copyright 2012 Freescale Semiconductor, Inc.
> - *
> - * The code contained herein is licensed under the GNU General Public
> - * License. You may obtain a copy of the GNU General Public License
> - * Version 2 or later at the following locations:
> - *
> - * http://www.opensource.org/licenses/gpl-license.html
> - * http://www.gnu.org/copyleft/gpl.html
> - */
> +// SPDX-License-Identifier: GPL-2.0-only
> +// SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
>  
>  #include <common.h>
>  #include <init.h>
> diff --git a/drivers/pwm/pxa_pwm.c b/drivers/pwm/pxa_pwm.c
> index 78d1489d570f..dc8e41464b01 100644
> --- a/drivers/pwm/pxa_pwm.c
> +++ b/drivers/pwm/pxa_pwm.c
> @@ -1,10 +1,8 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +
>  /*
>   * simple driver for PWM (Pulse Width Modulator) controller
>   *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
> - *
>   * 2008-02-13	initial version eric miao <eric.miao@marvell.com>
>   * 2012         Robert Jarzmik <robert.jarzmik@free.fr>
>   */
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-19 16:52 [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers Uwe Kleine-König
  2020-05-20 12:09 ` Sascha Hauer
@ 2020-05-20 12:10 ` Ahmad Fatoum
  2020-05-20 13:59   ` Uwe Kleine-König
  2020-05-22 12:55   ` Roland Hieber
  1 sibling, 2 replies; 13+ messages in thread
From: Ahmad Fatoum @ 2020-05-20 12:10 UTC (permalink / raw)
  To: Uwe Kleine-König, barebox; +Cc: Roland Hieber

Hello,

On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> This adapts all files that were identifed by licensecheck
> (https://salsa.debian.org/build-common-team/licensecheck.git) as
> licensed under the GPL and that have a (IMHO) clear copyright statement.
> 
> The advantage is that these specifiers are machine-parseable which helps
> license conformance, e.g. for packaging barebox in Debian.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/pwm/core.c    | 15 +++------------
>  drivers/pwm/pwm-mxs.c | 12 ++----------
>  drivers/pwm/pxa_pwm.c |  6 ++----
>  3 files changed, 7 insertions(+), 26 deletions(-)
> 
> diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
> index 05dad93e5ce3..878f4d72bbf5 100644
> --- a/drivers/pwm/core.c
> +++ b/drivers/pwm/core.c
> @@ -1,17 +1,8 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
> +
>  /*
>   * Generic pwmlib implementation
> - *
> - * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
> - *
> - *  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, or (at your option)
> - *  any later version.
> - *
> - *  This program 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.
>   */
>  #include <common.h>
>  #include <errno.h>
> diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> index a06040ac3268..1e2db39def22 100644
> --- a/drivers/pwm/pwm-mxs.c
> +++ b/drivers/pwm/pwm-mxs.c
> @@ -1,13 +1,5 @@
> -/*
> - * Copyright 2012 Freescale Semiconductor, Inc.
> - *
> - * The code contained herein is licensed under the GNU General Public
> - * License. You may obtain a copy of the GNU General Public License
> - * Version 2 or later at the following locations:
> - *
> - * http://www.opensource.org/licenses/gpl-license.html
> - * http://www.gnu.org/copyleft/gpl.html
> - */
> +// SPDX-License-Identifier: GPL-2.0-only

The deleted text says "or later"

> +// SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
>  
>  #include <common.h>
>  #include <init.h>
> diff --git a/drivers/pwm/pxa_pwm.c b/drivers/pwm/pxa_pwm.c
> index 78d1489d570f..dc8e41464b01 100644
> --- a/drivers/pwm/pxa_pwm.c
> +++ b/drivers/pwm/pxa_pwm.c
> @@ -1,10 +1,8 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +
>  /*
>   * simple driver for PWM (Pulse Width Modulator) controller
>   *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
> - *
>   * 2008-02-13	initial version eric miao <eric.miao@marvell.com>
>   * 2012         Robert Jarzmik <robert.jarzmik@free.fr>
>   */
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-20 12:10 ` Ahmad Fatoum
@ 2020-05-20 13:59   ` Uwe Kleine-König
  2020-05-20 14:59     ` Ahmad Fatoum
  2020-05-22 12:55   ` Roland Hieber
  1 sibling, 1 reply; 13+ messages in thread
From: Uwe Kleine-König @ 2020-05-20 13:59 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, Roland Hieber

Hello,

On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > This adapts all files that were identifed by licensecheck
> > (https://salsa.debian.org/build-common-team/licensecheck.git) as
> > licensed under the GPL and that have a (IMHO) clear copyright statement.
> > 
> > The advantage is that these specifiers are machine-parseable which helps
> > license conformance, e.g. for packaging barebox in Debian.
> > 
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> >  drivers/pwm/core.c    | 15 +++------------
> >  drivers/pwm/pwm-mxs.c | 12 ++----------
> >  drivers/pwm/pxa_pwm.c |  6 ++----
> >  3 files changed, 7 insertions(+), 26 deletions(-)
> > 
> > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
> > index 05dad93e5ce3..878f4d72bbf5 100644
> > --- a/drivers/pwm/core.c
> > +++ b/drivers/pwm/core.c
> > @@ -1,17 +1,8 @@
> > +// SPDX-License-Identifier: GPL-2.0-or-later
> > +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
> > +
> >  /*
> >   * Generic pwmlib implementation
> > - *
> > - * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
> > - *
> > - *  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, or (at your option)
> > - *  any later version.
> > - *
> > - *  This program 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.
> >   */
> >  #include <common.h>
> >  #include <errno.h>
> > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > index a06040ac3268..1e2db39def22 100644
> > --- a/drivers/pwm/pwm-mxs.c
> > +++ b/drivers/pwm/pwm-mxs.c
> > @@ -1,13 +1,5 @@
> > -/*
> > - * Copyright 2012 Freescale Semiconductor, Inc.
> > - *
> > - * The code contained herein is licensed under the GNU General Public
> > - * License. You may obtain a copy of the GNU General Public License
> > - * Version 2 or later at the following locations:
> > - *
> > - * http://www.opensource.org/licenses/gpl-license.html
> > - * http://www.gnu.org/copyleft/gpl.html
> > - */
> > +// SPDX-License-Identifier: GPL-2.0-only
> 
> The deleted text says "or later"

Strange as I didn't do this manually. My scratch-pad has:

	add_license() {
		git grep -L SPDX-License-Identifier | grep -E '\.(c|cpp|h)$' | xargs licensecheck | awk -F: '$2 == " '"$1"'" {print $1}' | xargs sed -i "1i // SPDX-License-Identifier: $2"
	}

	add_license "GPL (v2)" "GPL-2.0-only"
	add_license "GPL (v2 or later)" "GPL-2.0-or-later"

which does the right thing when I rety it.

I just rechecked the other patches I created and this is the only
problematic change.

@Sascha: can you fix up here please?
@Ahmad: Thanks for your attention.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-20 13:59   ` Uwe Kleine-König
@ 2020-05-20 14:59     ` Ahmad Fatoum
  2020-05-20 17:11       ` Uwe Kleine-König
  0 siblings, 1 reply; 13+ messages in thread
From: Ahmad Fatoum @ 2020-05-20 14:59 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, Roland Hieber

Hello Uwe,

On 5/20/20 3:59 PM, Uwe Kleine-König wrote:
> Hello,
> 
> On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
>> On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
>>> This adapts all files that were identifed by licensecheck
>>> (https://salsa.debian.org/build-common-team/licensecheck.git) as
>>> licensed under the GPL and that have a (IMHO) clear copyright statement.
>>>
>>> The advantage is that these specifiers are machine-parseable which helps
>>> license conformance, e.g. for packaging barebox in Debian.
>>>
>>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>>> ---
>>>  drivers/pwm/core.c    | 15 +++------------
>>>  drivers/pwm/pwm-mxs.c | 12 ++----------
>>>  drivers/pwm/pxa_pwm.c |  6 ++----
>>>  3 files changed, 7 insertions(+), 26 deletions(-)
>>>
>>> diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
>>> index 05dad93e5ce3..878f4d72bbf5 100644
>>> --- a/drivers/pwm/core.c
>>> +++ b/drivers/pwm/core.c
>>> @@ -1,17 +1,8 @@
>>> +// SPDX-License-Identifier: GPL-2.0-or-later
>>> +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
>>> +
>>>  /*
>>>   * Generic pwmlib implementation
>>> - *
>>> - * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
>>> - *
>>> - *  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, or (at your option)
>>> - *  any later version.
>>> - *
>>> - *  This program 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.
>>>   */
>>>  #include <common.h>
>>>  #include <errno.h>
>>> diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
>>> index a06040ac3268..1e2db39def22 100644
>>> --- a/drivers/pwm/pwm-mxs.c
>>> +++ b/drivers/pwm/pwm-mxs.c
>>> @@ -1,13 +1,5 @@
>>> -/*
>>> - * Copyright 2012 Freescale Semiconductor, Inc.
>>> - *
>>> - * The code contained herein is licensed under the GNU General Public
>>> - * License. You may obtain a copy of the GNU General Public License
>>> - * Version 2 or later at the following locations:
>>> - *
>>> - * http://www.opensource.org/licenses/gpl-license.html
>>> - * http://www.gnu.org/copyleft/gpl.html
>>> - */
>>> +// SPDX-License-Identifier: GPL-2.0-only
>>
>> The deleted text says "or later"
> 
> Strange as I didn't do this manually. My scratch-pad has:
> 
> 	add_license() {
> 		git grep -L SPDX-License-Identifier | grep -E '\.(c|cpp|h)$' | xargs licensecheck | awk -F: '$2 == " '"$1"'" {print $1}' | xargs sed -i "1i // SPDX-License-Identifier: $2"
> 	}
> 
> 	add_license "GPL (v2)" "GPL-2.0-only"
> 	add_license "GPL (v2 or later)" "GPL-2.0-or-later"
> 
> which does the right thing when I rety it.

You could verify your changes by checking whether /later/ appears
in pairs for each hunk:

perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }' spdx.patch
 
> I just rechecked the other patches I created and this is the only
> problematic change.
> 
> @Sascha: can you fix up here please?
> @Ahmad: Thanks for your attention.
> 
> Best regards
> Uwe
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-20 14:59     ` Ahmad Fatoum
@ 2020-05-20 17:11       ` Uwe Kleine-König
  2020-05-20 17:16         ` Ahmad Fatoum
  0 siblings, 1 reply; 13+ messages in thread
From: Uwe Kleine-König @ 2020-05-20 17:11 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, Roland Hieber

Hallo Ahmad,

On Wed, May 20, 2020 at 04:59:21PM +0200, Ahmad Fatoum wrote:
> On 5/20/20 3:59 PM, Uwe Kleine-König wrote:
> > Hello,
> > 
> > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> >> On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> >>> This adapts all files that were identifed by licensecheck
> >>> (https://salsa.debian.org/build-common-team/licensecheck.git) as
> >>> licensed under the GPL and that have a (IMHO) clear copyright statement.
> >>>
> >>> The advantage is that these specifiers are machine-parseable which helps
> >>> license conformance, e.g. for packaging barebox in Debian.
> >>>
> >>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> >>> ---
> >>>  drivers/pwm/core.c    | 15 +++------------
> >>>  drivers/pwm/pwm-mxs.c | 12 ++----------
> >>>  drivers/pwm/pxa_pwm.c |  6 ++----
> >>>  3 files changed, 7 insertions(+), 26 deletions(-)
> >>>
> >>> diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
> >>> index 05dad93e5ce3..878f4d72bbf5 100644
> >>> --- a/drivers/pwm/core.c
> >>> +++ b/drivers/pwm/core.c
> >>> @@ -1,17 +1,8 @@
> >>> +// SPDX-License-Identifier: GPL-2.0-or-later
> >>> +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
> >>> +
> >>>  /*
> >>>   * Generic pwmlib implementation
> >>> - *
> >>> - * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
> >>> - *
> >>> - *  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, or (at your option)
> >>> - *  any later version.
> >>> - *
> >>> - *  This program 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.
> >>>   */
> >>>  #include <common.h>
> >>>  #include <errno.h>
> >>> diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> >>> index a06040ac3268..1e2db39def22 100644
> >>> --- a/drivers/pwm/pwm-mxs.c
> >>> +++ b/drivers/pwm/pwm-mxs.c
> >>> @@ -1,13 +1,5 @@
> >>> -/*
> >>> - * Copyright 2012 Freescale Semiconductor, Inc.
> >>> - *
> >>> - * The code contained herein is licensed under the GNU General Public
> >>> - * License. You may obtain a copy of the GNU General Public License
> >>> - * Version 2 or later at the following locations:
> >>> - *
> >>> - * http://www.opensource.org/licenses/gpl-license.html
> >>> - * http://www.gnu.org/copyleft/gpl.html
> >>> - */
> >>> +// SPDX-License-Identifier: GPL-2.0-only
> >>
> >> The deleted text says "or later"
> > 
> > Strange as I didn't do this manually. My scratch-pad has:
> > 
> > 	add_license() {
> > 		git grep -L SPDX-License-Identifier | grep -E '\.(c|cpp|h)$' | xargs licensecheck | awk -F: '$2 == " '"$1"'" {print $1}' | xargs sed -i "1i // SPDX-License-Identifier: $2"
> > 	}
> > 
> > 	add_license "GPL (v2)" "GPL-2.0-only"
> > 	add_license "GPL (v2 or later)" "GPL-2.0-or-later"
> > 
> > which does the right thing when I rety it.
> 
> You could verify your changes by checking whether /later/ appears
> in pairs for each hunk:
> 
> perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }' spdx.patch

I had to read quite some perl docs to understand that. *impressed*

> > I just rechecked the other patches I created and this is the only
> > problematic change.

Applied on all my patches this only finds the above issue if I use
--inter-hunk-context=3 (e.g.:

	git show --format=fuller --inter-hunk-context=3 1a546e28341b | perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }

). Without --inter-hunk-context=2 some files have more than one hunk and
so trigger your test.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-20 17:11       ` Uwe Kleine-König
@ 2020-05-20 17:16         ` Ahmad Fatoum
  0 siblings, 0 replies; 13+ messages in thread
From: Ahmad Fatoum @ 2020-05-20 17:16 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, Roland Hieber

Hello Uwe,

On 5/20/20 7:11 PM, Uwe Kleine-König wrote:
>> You could verify your changes by checking whether /later/ appears
>> in pairs for each hunk:
>>
>> perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }' spdx.patch
> 
> I had to read quite some perl docs to understand that. *impressed*

Perl one-liners are a beautiful thing, aren't they? :-)

>>> I just rechecked the other patches I created and this is the only
>>> problematic change.
> 
> Applied on all my patches this only finds the above issue if I use
> --inter-hunk-context=3 (e.g.:
> 
> 	git show --format=fuller --inter-hunk-context=3 1a546e28341b | perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }
> 
> ). Without --inter-hunk-context=2 some files have more than one hunk and
> so trigger your test.

Alternatively, you can assume only one license statement per file and
autosplit on the diff --git line, i.e. -F'/^diff/'

Cheers
Ahmad

> 
> Best regards
> Uwe
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-20 12:10 ` Ahmad Fatoum
  2020-05-20 13:59   ` Uwe Kleine-König
@ 2020-05-22 12:55   ` Roland Hieber
  2020-05-22 13:17     ` Uwe Kleine-König
  1 sibling, 1 reply; 13+ messages in thread
From: Roland Hieber @ 2020-05-22 12:55 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, Uwe Kleine-König

On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> Hello,
> 
> On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > This adapts all files that were identifed by licensecheck
> > (https://salsa.debian.org/build-common-team/licensecheck.git) as
> > licensed under the GPL and that have a (IMHO) clear copyright statement.
> > 
> > The advantage is that these specifiers are machine-parseable which helps
> > license conformance, e.g. for packaging barebox in Debian.
> > 
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> >  drivers/pwm/core.c    | 15 +++------------
> >  drivers/pwm/pwm-mxs.c | 12 ++----------
> >  drivers/pwm/pxa_pwm.c |  6 ++----
> >  3 files changed, 7 insertions(+), 26 deletions(-)
> > 
...
> > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > index a06040ac3268..1e2db39def22 100644
> > --- a/drivers/pwm/pwm-mxs.c
> > +++ b/drivers/pwm/pwm-mxs.c
> > @@ -1,13 +1,5 @@
> > -/*
> > - * Copyright 2012 Freescale Semiconductor, Inc.
> > - *
> > - * The code contained herein is licensed under the GNU General Public
> > - * License. You may obtain a copy of the GNU General Public License
> > - * Version 2 or later at the following locations:
> > - *
> > - * http://www.opensource.org/licenses/gpl-license.html
> > - * http://www.gnu.org/copyleft/gpl.html
> > - */
> > +// SPDX-License-Identifier: GPL-2.0-only
> 
> The deleted text says "or later"

Ah, I stumbled over this too. The deleted text says:

    "The code contained herein is licensed under the GNU General Public
    License."

which in itself reads like "you can use any version of the GPL" (i.e.,
GPL-1.0-or-later). Later then the text says:

    "You may obtain a copy of the GNU General Public License
    Version 2 or later at the following locations:"

which in my opinion does not say anything about which version of the GPL
the code is licensed under.

 - Roland

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-22 12:55   ` Roland Hieber
@ 2020-05-22 13:17     ` Uwe Kleine-König
  2020-05-23 14:16       ` Roland Hieber
  0 siblings, 1 reply; 13+ messages in thread
From: Uwe Kleine-König @ 2020-05-22 13:17 UTC (permalink / raw)
  To: Roland Hieber; +Cc: barebox, Ahmad Fatoum

Hello Roland,

On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote:
> On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> > On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > > index a06040ac3268..1e2db39def22 100644
> > > --- a/drivers/pwm/pwm-mxs.c
> > > +++ b/drivers/pwm/pwm-mxs.c
> > > @@ -1,13 +1,5 @@
> > > -/*
> > > - * Copyright 2012 Freescale Semiconductor, Inc.
> > > - *
> > > - * The code contained herein is licensed under the GNU General Public
> > > - * License. You may obtain a copy of the GNU General Public License
> > > - * Version 2 or later at the following locations:
> > > - *
> > > - * http://www.opensource.org/licenses/gpl-license.html
> > > - * http://www.gnu.org/copyleft/gpl.html
> > > - */
> > > +// SPDX-License-Identifier: GPL-2.0-only
> > 
> > The deleted text says "or later"
> 
> Ah, I stumbled over this too. The deleted text says:
> 
>     "The code contained herein is licensed under the GNU General Public
>     License."
> 
> which in itself reads like "you can use any version of the GPL" (i.e.,
> GPL-1.0-or-later). Later then the text says:
> 
>     "You may obtain a copy of the GNU General Public License
>     Version 2 or later at the following locations:"
> 
> which in my opinion does not say anything about which version of the GPL
> the code is licensed under.

This seems to be a problem in the Freescale template. I think I pointed
that out once, but nothing changed.

For practical reasons I'd interpret that as "GPL-2.0-or-later".

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-22 13:17     ` Uwe Kleine-König
@ 2020-05-23 14:16       ` Roland Hieber
  2020-05-23 15:00         ` Uwe Kleine-König
  0 siblings, 1 reply; 13+ messages in thread
From: Roland Hieber @ 2020-05-23 14:16 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, Ahmad Fatoum

On Fri, May 22, 2020 at 03:17:59PM +0200, Uwe Kleine-König wrote:
> Hello Roland,
> 
> On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote:
> > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> > > On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > > > index a06040ac3268..1e2db39def22 100644
> > > > --- a/drivers/pwm/pwm-mxs.c
> > > > +++ b/drivers/pwm/pwm-mxs.c
> > > > @@ -1,13 +1,5 @@
> > > > -/*
> > > > - * Copyright 2012 Freescale Semiconductor, Inc.
> > > > - *
> > > > - * The code contained herein is licensed under the GNU General Public
> > > > - * License. You may obtain a copy of the GNU General Public License
> > > > - * Version 2 or later at the following locations:
> > > > - *
> > > > - * http://www.opensource.org/licenses/gpl-license.html
> > > > - * http://www.gnu.org/copyleft/gpl.html
> > > > - */
> > > > +// SPDX-License-Identifier: GPL-2.0-only
> > > 
> > > The deleted text says "or later"
> > 
> > Ah, I stumbled over this too. The deleted text says:
> > 
> >     "The code contained herein is licensed under the GNU General Public
> >     License."
> > 
> > which in itself reads like "you can use any version of the GPL" (i.e.,
> > GPL-1.0-or-later). Later then the text says:
> > 
> >     "You may obtain a copy of the GNU General Public License
> >     Version 2 or later at the following locations:"
> > 
> > which in my opinion does not say anything about which version of the GPL
> > the code is licensed under.
> 
> This seems to be a problem in the Freescale template. I think I pointed
> that out once, but nothing changed.
> 
> For practical reasons I'd interpret that as "GPL-2.0-or-later".

Yeah, I guess that's alright.

Reviewed-by: Roland Hieber <rhi@pengutronix.de>

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-23 14:16       ` Roland Hieber
@ 2020-05-23 15:00         ` Uwe Kleine-König
  2020-05-23 15:04           ` Roland Hieber
  2020-05-25  5:49           ` Sascha Hauer
  0 siblings, 2 replies; 13+ messages in thread
From: Uwe Kleine-König @ 2020-05-23 15:00 UTC (permalink / raw)
  To: Sascha Hauer, Roland Hieber; +Cc: barebox, Ahmad Fatoum

Hello Sascha, hello Roland,

On Sat, May 23, 2020 at 04:16:12PM +0200, Roland Hieber wrote:
> On Fri, May 22, 2020 at 03:17:59PM +0200, Uwe Kleine-König wrote:
> > Hello Roland,
> > 
> > On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote:
> > > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> > > > On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > > > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > > > > index a06040ac3268..1e2db39def22 100644
> > > > > --- a/drivers/pwm/pwm-mxs.c
> > > > > +++ b/drivers/pwm/pwm-mxs.c
> > > > > @@ -1,13 +1,5 @@
> > > > > -/*
> > > > > - * Copyright 2012 Freescale Semiconductor, Inc.
> > > > > - *
> > > > > - * The code contained herein is licensed under the GNU General Public
> > > > > - * License. You may obtain a copy of the GNU General Public License
> > > > > - * Version 2 or later at the following locations:
> > > > > - *
> > > > > - * http://www.opensource.org/licenses/gpl-license.html
> > > > > - * http://www.gnu.org/copyleft/gpl.html
> > > > > - */
> > > > > +// SPDX-License-Identifier: GPL-2.0-only
> > > > 
> > > > The deleted text says "or later"
> > > 
> > > Ah, I stumbled over this too. The deleted text says:
> > > 
> > >     "The code contained herein is licensed under the GNU General Public
> > >     License."
> > > 
> > > which in itself reads like "you can use any version of the GPL" (i.e.,
> > > GPL-1.0-or-later). Later then the text says:
> > > 
> > >     "You may obtain a copy of the GNU General Public License
> > >     Version 2 or later at the following locations:"
> > > 
> > > which in my opinion does not say anything about which version of the GPL
> > > the code is licensed under.
> > 
> > This seems to be a problem in the Freescale template. I think I pointed
> > that out once, but nothing changed.
> > 
> > For practical reasons I'd interpret that as "GPL-2.0-or-later".
> 
> Yeah, I guess that's alright.
> 
> Reviewed-by: Roland Hieber <rhi@pengutronix.de>

I assume this Reviewed-by: applies only if we squash

diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index 1e2db39def22..08819b43bc1d 100644
--- a/drivers/pwm/pwm-mxs.c
+++ b/drivers/pwm/pwm-mxs.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-License-Identifier: GPL-2.0-or-later
 // SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
 
 #include <common.h>

into the patch Sascha applied.

Sascha, can you care for this?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-23 15:00         ` Uwe Kleine-König
@ 2020-05-23 15:04           ` Roland Hieber
  2020-05-25  5:49           ` Sascha Hauer
  1 sibling, 0 replies; 13+ messages in thread
From: Roland Hieber @ 2020-05-23 15:04 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, Ahmad Fatoum

On Sat, May 23, 2020 at 05:00:32PM +0200, Uwe Kleine-König wrote:
> Hello Sascha, hello Roland,
> 
> On Sat, May 23, 2020 at 04:16:12PM +0200, Roland Hieber wrote:
> > On Fri, May 22, 2020 at 03:17:59PM +0200, Uwe Kleine-König wrote:
> > > Hello Roland,
> > > 
> > > On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote:
> > > > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> > > > > On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > > > > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > > > > > index a06040ac3268..1e2db39def22 100644
> > > > > > --- a/drivers/pwm/pwm-mxs.c
> > > > > > +++ b/drivers/pwm/pwm-mxs.c
> > > > > > @@ -1,13 +1,5 @@
> > > > > > -/*
> > > > > > - * Copyright 2012 Freescale Semiconductor, Inc.
> > > > > > - *
> > > > > > - * The code contained herein is licensed under the GNU General Public
> > > > > > - * License. You may obtain a copy of the GNU General Public License
> > > > > > - * Version 2 or later at the following locations:
> > > > > > - *
> > > > > > - * http://www.opensource.org/licenses/gpl-license.html
> > > > > > - * http://www.gnu.org/copyleft/gpl.html
> > > > > > - */
> > > > > > +// SPDX-License-Identifier: GPL-2.0-only
> > > > > 
> > > > > The deleted text says "or later"
> > > > 
> > > > Ah, I stumbled over this too. The deleted text says:
> > > > 
> > > >     "The code contained herein is licensed under the GNU General Public
> > > >     License."
> > > > 
> > > > which in itself reads like "you can use any version of the GPL" (i.e.,
> > > > GPL-1.0-or-later). Later then the text says:
> > > > 
> > > >     "You may obtain a copy of the GNU General Public License
> > > >     Version 2 or later at the following locations:"
> > > > 
> > > > which in my opinion does not say anything about which version of the GPL
> > > > the code is licensed under.
> > > 
> > > This seems to be a problem in the Freescale template. I think I pointed
> > > that out once, but nothing changed.
> > > 
> > > For practical reasons I'd interpret that as "GPL-2.0-or-later".
> > 
> > Yeah, I guess that's alright.
> > 
> > Reviewed-by: Roland Hieber <rhi@pengutronix.de>
> 
> I assume this Reviewed-by: applies only if we squash
> 
> diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> index 1e2db39def22..08819b43bc1d 100644
> --- a/drivers/pwm/pwm-mxs.c
> +++ b/drivers/pwm/pwm-mxs.c
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifier: GPL-2.0-only
> +// SPDX-License-Identifier: GPL-2.0-or-later
>  // SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
>  
>  #include <common.h>
> 
> into the patch Sascha applied.

Yes, that's what I meant too ^^

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers
  2020-05-23 15:00         ` Uwe Kleine-König
  2020-05-23 15:04           ` Roland Hieber
@ 2020-05-25  5:49           ` Sascha Hauer
  1 sibling, 0 replies; 13+ messages in thread
From: Sascha Hauer @ 2020-05-25  5:49 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: barebox, Ahmad Fatoum, Roland Hieber

On Sat, May 23, 2020 at 05:00:32PM +0200, Uwe Kleine-König wrote:
> Hello Sascha, hello Roland,
> 
> On Sat, May 23, 2020 at 04:16:12PM +0200, Roland Hieber wrote:
> > On Fri, May 22, 2020 at 03:17:59PM +0200, Uwe Kleine-König wrote:
> > > Hello Roland,
> > > 
> > > On Fri, May 22, 2020 at 02:55:56PM +0200, Roland Hieber wrote:
> > > > On Wed, May 20, 2020 at 02:10:47PM +0200, Ahmad Fatoum wrote:
> > > > > On 5/19/20 6:52 PM, Uwe Kleine-König wrote:
> > > > > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> > > > > > index a06040ac3268..1e2db39def22 100644
> > > > > > --- a/drivers/pwm/pwm-mxs.c
> > > > > > +++ b/drivers/pwm/pwm-mxs.c
> > > > > > @@ -1,13 +1,5 @@
> > > > > > -/*
> > > > > > - * Copyright 2012 Freescale Semiconductor, Inc.
> > > > > > - *
> > > > > > - * The code contained herein is licensed under the GNU General Public
> > > > > > - * License. You may obtain a copy of the GNU General Public License
> > > > > > - * Version 2 or later at the following locations:
> > > > > > - *
> > > > > > - * http://www.opensource.org/licenses/gpl-license.html
> > > > > > - * http://www.gnu.org/copyleft/gpl.html
> > > > > > - */
> > > > > > +// SPDX-License-Identifier: GPL-2.0-only
> > > > > 
> > > > > The deleted text says "or later"
> > > > 
> > > > Ah, I stumbled over this too. The deleted text says:
> > > > 
> > > >     "The code contained herein is licensed under the GNU General Public
> > > >     License."
> > > > 
> > > > which in itself reads like "you can use any version of the GPL" (i.e.,
> > > > GPL-1.0-or-later). Later then the text says:
> > > > 
> > > >     "You may obtain a copy of the GNU General Public License
> > > >     Version 2 or later at the following locations:"
> > > > 
> > > > which in my opinion does not say anything about which version of the GPL
> > > > the code is licensed under.
> > > 
> > > This seems to be a problem in the Freescale template. I think I pointed
> > > that out once, but nothing changed.
> > > 
> > > For practical reasons I'd interpret that as "GPL-2.0-or-later".
> > 
> > Yeah, I guess that's alright.
> > 
> > Reviewed-by: Roland Hieber <rhi@pengutronix.de>
> 
> I assume this Reviewed-by: applies only if we squash
> 
> diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
> index 1e2db39def22..08819b43bc1d 100644
> --- a/drivers/pwm/pwm-mxs.c
> +++ b/drivers/pwm/pwm-mxs.c
> @@ -1,4 +1,4 @@
> -// SPDX-License-Identifier: GPL-2.0-only
> +// SPDX-License-Identifier: GPL-2.0-or-later
>  // SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
>  
>  #include <common.h>
> 
> into the patch Sascha applied.
> 
> Sascha, can you care for this?

Just did that.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-05-25  5:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 16:52 [PATCH] pwm: Replace license and copyright boilerplate by SPDX identfiers Uwe Kleine-König
2020-05-20 12:09 ` Sascha Hauer
2020-05-20 12:10 ` Ahmad Fatoum
2020-05-20 13:59   ` Uwe Kleine-König
2020-05-20 14:59     ` Ahmad Fatoum
2020-05-20 17:11       ` Uwe Kleine-König
2020-05-20 17:16         ` Ahmad Fatoum
2020-05-22 12:55   ` Roland Hieber
2020-05-22 13:17     ` Uwe Kleine-König
2020-05-23 14:16       ` Roland Hieber
2020-05-23 15:00         ` Uwe Kleine-König
2020-05-23 15:04           ` Roland Hieber
2020-05-25  5:49           ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox