mux: add SPDX identifiers to all mux source files
PATCH 1/1 mux: add SPDX identifiers to all mux source files
Remove all free-text license texts.
This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text.
No copyright headers or other non-license-description text was removed.
---
Hi Philipp,
I assume this is ok with you for the mmio file, but asking just in case...
Cheers,
Peter
drivers/mux/Kconfig | 1 + drivers/mux/Makefile | 1 + drivers/mux/adg792a.c | 5 +---- drivers/mux/core.c | 5 +---- drivers/mux/gpio.c | 5 +---- drivers/mux/mmio.c | 5 +---- include/linux/mux/consumer.h | 5 +---- include/linux/mux/driver.h | 5 +---- 8 files changed, 8 insertions(+), 24 deletions(-)
drivers/mux/Kconfig +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # # Multiplexer devices #
drivers/mux/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # # Makefile for multiplexer devices. #
drivers/mux/adg792a.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Multiplexer driver for Analog Devices ADG792A/G Triple 4:1 mux * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #include <linux/err.h>
drivers/mux/core.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Multiplexer subsystem * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #define pr_fmt (fmt) "mux-core: " fmt
drivers/mux/gpio.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * GPIO-controlled multiplexer driver * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #include <linux/err.h>
drivers/mux/mmio.c +1 -4
@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * MMIO register bitfield-controlled multiplexer driver * * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]> -* -* 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. */ #include <linux/bitops.h>
include/linux/mux/consumer.h +1 -4
@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * mux/consumer.h - definitions for the multiplexer consumer interface * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #ifndef _LINUX_MUX_CONSUMER_H
include/linux/mux/driver.h +1 -4
@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * mux/driver.h - definitions for the multiplexer driver interface * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #ifndef _LINUX_MUX_DRIVER_H
Signature · 1 line
2.11.0
Quoted 158 lines · Peter Rosin
Remove all free-text license texts.
This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text.
No copyright headers or other non-license-description text was removed.
Signed-off-by Peter Rosin <[email protected]>---
Hi Philipp,
I assume this is ok with you for the mmio file, but asking just in case...
Cheers,
Peterdrivers/mux/Kconfig | 1 + drivers/mux/Makefile | 1 + drivers/mux/adg792a.c | 5 +---- drivers/mux/core.c | 5 +---- drivers/mux/gpio.c | 5 +---- drivers/mux/mmio.c | 5 +---- include/linux/mux/consumer.h | 5 +---- include/linux/mux/driver.h | 5 +---- 8 files changed, 8 insertions(+), 24 deletions(-)drivers/mux/Kconfig +1
-0@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # # Multiplexer devices #drivers/mux/Makefile +1
-0@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # # Makefile for multiplexer devices. #drivers/mux/adg792a.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Multiplexer driver for Analog Devices ADG792A/G Triple 4:1 mux * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #include <linux/err.h> drivers/mux/core.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Multiplexer subsystem * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #define pr_fmt (fmt) "mux-core: " fmtdrivers/mux/gpio.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * GPIO-controlled multiplexer driver * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #include <linux/err.h> drivers/mux/mmio.c +1
-4@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * MMIO register bitfield-controlled multiplexer driver * * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]> -* -* 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. */ #include <linux/bitops.h> include/linux/mux/consumer.h +1
-4@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * mux/consumer.h - definitions for the multiplexer consumer interface * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #ifndef _LINUX_MUX_CONSUMER_Hinclude/linux/mux/driver.h +1
-5@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * mux/driver.h - definitions for the multiplexer driver interface * * Copyright (C) 2017 Axentia Technologies AB * * Author: Peter Rosin <[email protected]> -* -* 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. */ #ifndef _LINUX_MUX_DRIVER_H --
Quoted 2 lines
2.11.0
Thank you very much for this! FWIW, feel free to add:
Signature · 2 lines
Cordially Philippe Ombredanne, your friendly kernel licenses scruffy
Hi Peter,
Quoted 13 lines · Peter Rosin
Remove all free-text license texts.
This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text.
No copyright headers or other non-license-description text was removed.
Signed-off-by Peter Rosin <[email protected]>---
Hi Philipp,
I assume this is ok with you for the mmio file, but asking just in case...
[...]
drivers/mux/mmio.c line 1
Quoted 6 lines
drivers/mux/mmio.c +1
-0@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0
Quoted 16 lines
drivers/mux/mmio.c +0
-4/* * MMIO register bitfield-controlled multiplexer driver * * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]> -* -* 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. */ #include <linux/bitops.h> include/linux/mux/consumer.h +0
-0
include/linux/mux/consumer.h line 1
Quoted 1 line
include/linux/mux/consumer.h +1
-0@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */
Is there a system to the different comment styles in c the files vs in the headers?
regards
Philipp
Quoted 11 lines · Philipp Zabel
Hi Peter,
drivers/mux/mmio.c line 1
Quoted 6 lines · Peter Rosin
drivers/mux/mmio.c +1
-0@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 Acked-by Philipp Zabel <[email protected]>
Thanks!
Quoted 9 lines
include/linux/mux/consumer.h line 1
Quoted 6 lines
include/linux/mux/consumer.h +1
-0@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ Is there a system to the different comment styles in c the files vs in the headers?
Yes, headers are sometimes included by assemblers and other tools that can't handle "new style" comments. I think. I'm just following the lead set by others...
Cheers,
Peter
Dear Philipp,
Quoted 36 lines · Philipp Zabel
Hi Peter,
Quoted 13 lines · Peter Rosin
Remove all free-text license texts.
This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text.
No copyright headers or other non-license-description text was removed.
Signed-off-by Peter Rosin <[email protected]>---
Hi Philipp,
I assume this is ok with you for the mmio file, but asking just in case...
[...]
drivers/mux/mmio.c line 1
Quoted 6 lines
drivers/mux/mmio.c +1
-0@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 Acked-by Philipp Zabel <[email protected]>Quoted 10 lines
drivers/mux/mmio.c +0
-4/* * MMIO register bitfield-controlled multiplexer driver * * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]> -* -* 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. */
Quoted 10 lines
include/linux/mux/consumer.h line 1
Quoted 7 lines
drivers/mux/mmio.c +0
-0#include <linux/bitops.h> include/linux/mux/consumer.h +1
-0@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ Is there a system to the different comment styles in c the files vs in the headers?
The issue is that some includes are included in assembly. And believe it or not it makes the build crash in some cases! Greg and Thomas banged their head on this a bit and decided to go for now with /**/ for includes (and // for the C files which is Linus' preferred style):
he explained why he wants the // comment style and a first line location on the list too. I think Linus (semi reluctantly) agreed to the exception for includes because there is no immediate easy way out. I am sure this could be cleaned up overtime... It feels a tad weird to include a in.h in a .s ;)
For reference please check Linus [1][2][3], Thomas [4] and Greg [5] comments on the topic.
Jonathan also wrote a nice background article on the SPDXification topic at LWN [6]
[1] https://lkml.org/lkml/2017/11/2/715
[2] https://lkml.org/lkml/2017/11/25/125
[3] https://lkml.org/lkml/2017/11/25/133
[4] https://lkml.org/lkml/2017/11/2/805
[5] https://lkml.org/lkml/2017/10/19/165
[6] https://lwn.net/Articles/739183/
Signature · 2 lines
Cordially Philippe Ombredanne