MODULE_LICENSE removals, second tranche
Subsystems (34)
cover MODULE_LICENSE removals, second tranche
This series, based on current modules-next, is part of a treewide cleanup suggested by Luis Chamberlain, to remove the LICENSE_MODULE usage from files/objects that are not tristate. Due to recent changes to kbuild, these uses are now problematic. See the commit logs for more details.
(The commit log prefixes and Cc lists are automatically determined using the script mentioned below. I've eyeballed them, and they seem reasonable:
my apologies if they are not.)
I'll be sending a third 24-patch tranche in a few days if this one doesn't blow up.
(In total, there are 121 patches in this series.)
The series at a whole can be found here:
https://github.com/nickalcock/linux module-license
The patch splitter (not for upstreaming!) used to prepare these commits can be found here:
https://github.com/nickalcock/linux mass-split
Nick Alcock (24):
kbuild, soc: fujitsu: remove MODULE_LICENSE in non-modules kbuild, PCI: remove MODULE_LICENSE in non-modules
kbuild, mfd: altera-sysmgr: remove MODULE_LICENSE in non-modules kbuild, irqchip/al-fic: remove MODULE_LICENSE in non-modules kbuild, cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules kbuild, binder: remove MODULE_LICENSE in non-modules kbuild, bus: arm-integrator-lm: remove MODULE_LICENSE in non-modules kbuild, drivers/perf: remove MODULE_LICENSE in non-modules kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules kbuild, pinctrl: actions: remove MODULE_LICENSE in non-modules kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in
non-modules
kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules kbuild, clk: bm1880: remove MODULE_LICENSE in non-modules kbuild, firmware: imx: remove MODULE_LICENSE in non-modules kbuild, bus: ixp4xx: remove MODULE_LICENSE in non-modules kbuild, irqchip/mvebu-pic: remove MODULE_LICENSE in non-modules kbuild, pinctrl: nuvoton: npcm7xx: remove MODULE_LICENSE in
non-modules
kbuild, bus: qcom: remove MODULE_LICENSE in non-modules kbuild, bus: remove MODULE_LICENSE in non-modules
kbuild, gpio: remove MODULE_LICENSE in non-modules kbuild, serial: remove MODULE_LICENSE in non-modules kbuild, dmaengine: s3c24xx: remove MODULE_LICENSE in non-modules kbuild, EDAC, altera: remove MODULE_LICENSE in non-modules kbuild, power: reset: keystone-reset: remove MODULE_LICENSE in
non-modules
drivers/amba/tegra-ahb.c | 1 - drivers/android/binder.c | 1 - drivers/bus/arm-integrator-lm.c | 1 - drivers/bus/imx-weim.c | 1 - drivers/bus/intel-ixp4xx-eb.c | 1 - drivers/bus/qcom-ebi2.c | 1 - drivers/bus/qcom-ssc-block-bus.c | 1 - drivers/clk/clk-bm1880.c | 1 - drivers/cpufreq/amd-pstate.c | 1 - drivers/dma/s3c24xx-dma.c | 1 - drivers/edac/altera_edac.c | 1 - drivers/firmware/imx/imx-scu.c | 1 - drivers/firmware/imx/scu-pd.c | 1 - drivers/gpio/gpio-rda.c | 1 - drivers/irqchip/irq-al-fic.c | 1 - drivers/irqchip/irq-mvebu-pic.c | 1 - drivers/mfd/altera-sysmgr.c | 1 - drivers/pci/hotplug/acpiphp_core.c | 1 - drivers/perf/apple_m1_cpu_pmu.c | 1 - drivers/pinctrl/actions/pinctrl-s500.c | 1 - drivers/pinctrl/actions/pinctrl-s700.c | 1 - drivers/pinctrl/actions/pinctrl-s900.c | 1 - drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 1 - drivers/power/reset/keystone-reset.c | 1 - drivers/soc/apple/apple-pmgr-pwrstate.c | 1 - drivers/soc/fujitsu/a64fx-diag.c | 1 - drivers/soc/sunxi/sunxi_sram.c | 1 - drivers/tty/serial/rda-uart.c | 1 - 28 files changed, 28 deletions(-)
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 1/24 kbuild, soc: fujitsu: remove MODULE_LICENSE in non-modules
Since commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/soc/fujitsu/a64fx-diag.c | 1 - 1 file changed, 1 deletion(-)
drivers/soc/fujitsu/a64fx-diag.c +0 -1
@@ -149,6 +149,5 @@ static struct platform_driver a64fx_diag_driver = {module_platform_driver (a64fx_diag_driver); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Hitomi Hasegawa <[email protected]>" );MODULE_DESCRIPTION ("A64FX diag driver" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 2/24 kbuild, PCI: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/pci/hotplug/acpiphp_core.c | 1 - 1 file changed, 1 deletion(-)
drivers/pci/hotplug/acpiphp_core.c +0 -1
@@ -45,7 +45,6 @@ static struct acpiphp_attention_info *attention_info;MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL" );MODULE_PARM_DESC (disable,"disable acpiphp driver" );module_param_named (disable, acpiphp_disabled, bool,0444 );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 02/24] kbuild, PCI: remove MODULE_LICENSE in non-modules
Quoted 10 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Quoted 10 lines
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Bjorn Helgaas <[email protected]>
I squashed this one into my pci/kbuild branch for v6.3, thanks!
Quoted 19 lines
--- drivers/pci/hotplug/acpiphp_core.c | 1 - 1 file changed, 1 deletion(-)drivers/pci/hotplug/acpiphp_core.c +0
-1@@ -45,7 +45,6 @@ static struct acpiphp_attention_info *attention_info;MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC ); -MODULE_LICENSE ("GPL" );MODULE_PARM_DESC (disable,"disable acpiphp driver" );module_param_named (disable, acpiphp_disabled, bool,0444 );Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 3/24 kbuild, mfd: altera-sysmgr: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/mfd/altera-sysmgr.c | 1 - 1 file changed, 1 deletion(-)
drivers/mfd/altera-sysmgr.c +0 -1
@@ -198,4 +198,3 @@ module_exit(altr_sysmgr_exit);MODULE_AUTHOR ("Thor Thayer <>" );MODULE_DESCRIPTION ("SOCFPGA System Manager driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 4/24 kbuild, irqchip/al-fic: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/irqchip/irq-al-fic.c | 1 - 1 file changed, 1 deletion(-)
drivers/irqchip/irq-al-fic.c +0 -1
@@ -26,7 +26,6 @@MODULE_AUTHOR ("Talel Shenhar" );MODULE_DESCRIPTION ("Amazon's Annapurna Labs Interrupt Controller Driver" ); -MODULE_LICENSE ("GPL v2" );enum al_fic_state {AL_FIC_UNCONFIGURED =0 ,
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 5/24 kbuild, cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/cpufreq/amd-pstate.c | 1 - 1 file changed, 1 deletion(-)
drivers/cpufreq/amd-pstate.c +0 -1
@@ -686,4 +686,3 @@ early_param("amd_pstate", amd_pstate_param);MODULE_AUTHOR ("Huang Rui <[email protected]>" );MODULE_DESCRIPTION ("AMD Processor P-state Frequency Driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 05/24] kbuild, cpufreq: amd-pstate: remove MODULE_LICENSE in non-modules
Quoted 30 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Huang Rui <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>--- drivers/cpufreq/amd-pstate.c | 1 - 1 file changed, 1 deletion(-)drivers/cpufreq/amd-pstate.c +0
-0
drivers/cpufreq/amd-pstate.c early_param("amd_pstate", amd_pstate_param);
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +0
-2@@ -686,4 +686,3 @@ early_param("amd_pstate", amd_pstate_param);MODULE_AUTHOR ("Huang Rui <[email protected]>" );MODULE_DESCRIPTION ("AMD Processor P-state Frequency Driver" ); -MODULE_LICENSE ("GPL" ); --
Applied as 6.3-rc material, thanks!
PATCH 6/24 kbuild, binder: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/android/binder.c | 1 - 1 file changed, 1 deletion(-)
drivers/android/binder.c +0 -1
@@ -6597,4 +6597,3 @@ device_initcall(binder_init);#define CREATE_TRACE_POINTS #include "binder_trace.h" -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 06/24] kbuild, binder: remove MODULE_LICENSE in non-modules
Quoted 40 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc "Arve Hjønnevåg" <[email protected]>Cc Todd Kjos <[email protected]>Cc Martijn Coenen <[email protected]>Cc Joel Fernandes <[email protected]>Cc Christian Brauner <[email protected]>Cc Carlos Llamas <[email protected]>Cc Suren Baghdasaryan <[email protected]>--- drivers/android/binder.c | 1 - 1 file changed, 1 deletion(-)drivers/android/binder.c +0
-1@@ -6597,4 +6597,3 @@ device_initcall(binder_init);#define CREATE_TRACE_POINTS #include "binder_trace.h" -MODULE_LICENSE ("GPL v2" );Signature · 1 line
2.39.1.268.g9de2f9a303
Thanks
PATCH 7/24 kbuild, bus: arm-integrator-lm: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/bus/arm-integrator-lm.c | 1 - 1 file changed, 1 deletion(-)
drivers/bus/arm-integrator-lm.c +0 -1
@@ -126,4 +126,3 @@ static struct platform_driver integrator_ap_lm_driver = {module_platform_driver (integrator_ap_lm_driver);MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_DESCRIPTION ("Integrator AP Logical Module driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 8/24 kbuild, drivers/perf: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/perf/apple_m1_cpu_pmu.c | 1 - 1 file changed, 1 deletion(-)
drivers/perf/apple_m1_cpu_pmu.c +0 -1
@@ -581,4 +581,3 @@ static struct platform_driver m1_pmu_driver = { };module_platform_driver (m1_pmu_driver); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 9/24 kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/amba/tegra-ahb.c | 1 - 1 file changed, 1 deletion(-)
drivers/amba/tegra-ahb.c +0 -1
@@ -285,5 +285,4 @@ module_platform_driver(tegra_ahb_driver);MODULE_AUTHOR ("Hiroshi DOYU <[email protected]>" );MODULE_DESCRIPTION ("Tegra AHB driver" ); -MODULE_LICENSE ("GPL v2" );MODULE_ALIAS ("platform:" DRV_NAME );
Signature · 1 line
2.39.1.268.g9de2f9a303
Thierry Reding
AppliedRe: (subset) [PATCH 09/24] kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules
From: Thierry Reding <[email protected]>
Quoted 8 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.[...]
Applied, thanks!
[09/24] kbuild, ARM: tegra: remove MODULE_LICENSE in non-modules
(no commit info)
Best regards,
Signature · 1 line
Thierry Reding <[email protected]>
PATCH 10/24 kbuild, pinctrl: actions: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/pinctrl/actions/pinctrl-s500.c | 1 - drivers/pinctrl/actions/pinctrl-s700.c | 1 - drivers/pinctrl/actions/pinctrl-s900.c | 1 - 3 files changed, 3 deletions(-)
drivers/pinctrl/actions/pinctrl-s500.c +0 -1
@@ -1724,4 +1724,3 @@ module_exit(s500_pinctrl_exit);MODULE_AUTHOR ("Actions Semi Inc." );MODULE_AUTHOR ("Cristian Ciocaltea <[email protected]>" );MODULE_DESCRIPTION ("Actions Semi S500 SoC Pinctrl Driver" ); -MODULE_LICENSE ("GPL" );
drivers/pinctrl/actions/pinctrl-s700.c +0 -1
@@ -1908,4 +1908,3 @@ module_exit(s700_pinctrl_exit);MODULE_AUTHOR ("Actions Semi Inc." );MODULE_DESCRIPTION ("Actions Semi S700 Soc Pinctrl Driver" ); -MODULE_LICENSE ("GPL" );
drivers/pinctrl/actions/pinctrl-s900.c +0 -1
@@ -1827,4 +1827,3 @@ module_exit(s900_pinctrl_exit);MODULE_AUTHOR ("Actions Semi Inc." );MODULE_AUTHOR ("Manivannan Sadhasivam <[email protected]>" );MODULE_DESCRIPTION ("Actions Semi S900 SoC Pinctrl Driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 11/24 kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/soc/apple/apple-pmgr-pwrstate.c | 1 - 1 file changed, 1 deletion(-)
drivers/soc/apple/apple-pmgr-pwrstate.c +0 -1
@@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver = {MODULE_AUTHOR ("Hector Martin <[email protected]>" );MODULE_DESCRIPTION ("PMGR power state driver for Apple SoCs" ); -MODULE_LICENSE ("GPL v2" );module_platform_driver (apple_pmgr_ps_driver);
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 11/24] kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules
Quoted 21 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Hector Martin <[email protected]>Cc Sven Peter <[email protected]>Cc Philipp Zabel <[email protected]>
Quoted 1 line
---
Sven
Quoted 18 lines
drivers/soc/apple/apple-pmgr-pwrstate.c | 1 - 1 file changed, 1 deletion(-)drivers/soc/apple/apple-pmgr-pwrstate.c +0
-1@@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver = {MODULE_AUTHOR ("Hector Martin <[email protected]>" );MODULE_DESCRIPTION ("PMGR power state driver for Apple SoCs" ); -MODULE_LICENSE ("GPL v2" );
module_platform_driver(apple_pmgr_ps_driver);Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 11/24] kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockQuoted 22 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Hector Martin <[email protected]>Cc Sven Peter <[email protected]>Cc Philipp Zabel <[email protected]>
Quoted 1 line
---
Is mise le meas/Regards,
Eric Curtin
Quoted 18 lines
drivers/soc/apple/apple-pmgr-pwrstate.c | 1 - 1 file changed, 1 deletion(-)drivers/soc/apple/apple-pmgr-pwrstate.c +0
-2@@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver = {MODULE_AUTHOR ("Hector Martin <[email protected]>" );MODULE_DESCRIPTION ("PMGR power state driver for Apple SoCs" ); -MODULE_LICENSE ("GPL v2" );module_platform_driver (apple_pmgr_ps_driver); --2.39.1.268.g9de2f9a303
PATCH 12/24 kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/soc/sunxi/sunxi_sram.c | 1 - 1 file changed, 1 deletion(-)
drivers/soc/sunxi/sunxi_sram.c +0 -1
@@ -421,4 +421,3 @@ builtin_platform_driver_probe(sunxi_sram_driver, sunxi_sram_probe);MODULE_AUTHOR ("Maxime Ripard <[email protected]>" );MODULE_DESCRIPTION ("Allwinner sunXi SRAM Controller Driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 12/24] kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules
Dne petek, 17. februar 2023 ob 15:10:47 CET je Nick Alcock napisal(a):
Quoted 10 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Quoted 11 lines
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Chen-Yu Tsai <[email protected]>Cc Jernej Skrabec <[email protected]>Cc Samuel Holland <[email protected]>
Best regards,
Jernej
Re: [PATCH 12/24] kbuild, soc: sunxi: sram: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockDne petek, 17. februar 2023 ob 15:10:47 CET je Nick Alcock napisal(a):
Quoted 10 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Quoted 11 lines
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Chen-Yu Tsai <[email protected]>Cc Jernej Skrabec <[email protected]>Cc Samuel Holland <[email protected]>
Applied, thanks!
Best regards,
Jernej
Quoted 14 lines
--- drivers/soc/sunxi/sunxi_sram.c | 1 - 1 file changed, 1 deletion(-)drivers/soc/sunxi/sunxi_sram.c +0
-1@@ -421,4 +421,3 @@ builtin_platform_driver_probe(sunxi_sram_driver, sunxi_sram_probe);MODULE_AUTHOR ("Maxime Ripard <[email protected]>" );MODULE_DESCRIPTION ("Allwinner sunXi SRAM Controller Driver" ); -MODULE_LICENSE ("GPL" );
PATCH 13/24 kbuild, clk: bm1880: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/clk/clk-bm1880.c | 1 - 1 file changed, 1 deletion(-)
drivers/clk/clk-bm1880.c +0 -1
@@ -949,4 +949,3 @@ module_platform_driver(bm1880_clk_driver);MODULE_AUTHOR ("Manivannan Sadhasivam <[email protected]>" );MODULE_DESCRIPTION ("Clock driver for Bitmain BM1880 SoC" ); -MODULE_LICENSE ("GPL v2" );
Signature · 7 lines
2.39.1.268.g9de2f9a303 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 13/24] kbuild, clk: bm1880: remove MODULE_LICENSE in non-modules
Quoting Nick Alcock (2023-02-17 06:10:48)
Quoted 21 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Michael Turquette <[email protected]>Cc Stephen Boyd <[email protected]>
Quoted 1 line
---
PATCH 14/24 kbuild, firmware: imx: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/bus/imx-weim.c | 1 - drivers/firmware/imx/imx-scu.c | 1 - drivers/firmware/imx/scu-pd.c | 1 - 3 files changed, 3 deletions(-)
drivers/bus/imx-weim.c +0 -1
@@ -405,4 +405,3 @@ module_exit(weim_exit);MODULE_AUTHOR ("Freescale Semiconductor Inc." );MODULE_DESCRIPTION ("i.MX EIM Controller Driver" ); -MODULE_LICENSE ("GPL" );
drivers/firmware/imx/imx-scu.c +0 -1
@@ -358,4 +358,3 @@ builtin_platform_driver(imx_scu_driver);MODULE_AUTHOR ("Dong Aisheng <[email protected]>" );MODULE_DESCRIPTION ("IMX SCU firmware protocol driver" ); -MODULE_LICENSE ("GPL v2" );
drivers/firmware/imx/scu-pd.c +0 -1
@@ -421,4 +421,3 @@ builtin_platform_driver(imx_sc_pd_driver);MODULE_AUTHOR ("Dong Aisheng <[email protected]>" );MODULE_DESCRIPTION ("IMX SCU Power Domain driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 7 lines
2.39.1.268.g9de2f9a303 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 14/24] kbuild, firmware: imx: remove MODULE_LICENSE in non-modules
Quoted 7 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
Quoted 5 lines
So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>
Should I apply it as a fix for 6.3-rc with Cc stable tag, or can it be a material for -next?
Shawn
Re: [PATCH 14/24] kbuild, firmware: imx: remove MODULE_LICENSE in non-modules
On 14 Mar 2023, Shawn Guo verbalised:
Quoted 8 lines · Nick Alcock
Quoted 7 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
Quoted 8 lines
Quoted 5 lines
So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Should I apply it as a fix for 6.3-rc with Cc stable tag, or can it be a material for -next?
This is currently built against -next, but Luis has indicated an intent to pull the lot in via -rc3 (hence my scrambling to get the series polished up for him, tags attached etc now). So, er... yes? :)
Signature · 6 lines
NULL && (void) _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 14/24] kbuild, firmware: imx: remove MODULE_LICENSE in non-modules
Quoted 18 lines · Nick Alcock
On 14 Mar 2023, Shawn Guo verbalised:
Quoted 16 lines · Nick Alcock
Quoted 7 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.Quoted 5 lines
So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Should I apply it as a fix for 6.3-rc with Cc stable tag, or can it be a material for -next?
These are not stable critical patches.
Quoted 3 lines
This is currently built against -next, but Luis has indicated an intent to pull the lot in via -rc3 (hence my scrambling to get the series polished up for him, tags attached etc now). So, er... yes? :)
Those patches which don't get this simply can't benefit from future tooling enhancements which Nick is working on which will leverage correct mapping.
So yes, my goal is to pull up straggler patches except where some maintainer explicitly don't want them. For instance, I will not be taking in the patches for trees that Greg KH maintains as he would prefer an alternative, but yet hasn't recommended an alternative strategy to help with Nick's work.
Luis
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 15/24 kbuild, bus: ixp4xx: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/bus/intel-ixp4xx-eb.c | 1 - 1 file changed, 1 deletion(-)
drivers/bus/intel-ixp4xx-eb.c +0 -1
@@ -423,4 +423,3 @@ static struct platform_driver ixp4xx_exp_driver = {module_platform_driver (ixp4xx_exp_driver);MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_DESCRIPTION ("Intel IXP4xx external bus driver" ); -MODULE_LICENSE ("GPL" );
Signature · 7 lines
2.39.1.268.g9de2f9a303 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 16/24 kbuild, irqchip/mvebu-pic: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/irqchip/irq-mvebu-pic.c | 1 - 1 file changed, 1 deletion(-)
drivers/irqchip/irq-mvebu-pic.c +0 -1
@@ -195,6 +195,5 @@ module_platform_driver(mvebu_pic_driver);MODULE_AUTHOR ("Yehuda Yitschak <[email protected]>" );MODULE_AUTHOR ("Thomas Petazzoni <[email protected]>" ); -MODULE_LICENSE ("GPL v2" );MODULE_ALIAS ("platform:mvebu_pic" );
Signature · 7 lines
2.39.1.268.g9de2f9a303 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 17/24 kbuild, pinctrl: nuvoton: npcm7xx: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 1 - 1 file changed, 1 deletion(-)
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c +0 -1
@@ -2046,7 +2046,6 @@ static int __init npcm7xx_pinctrl_register(void) }arch_initcall (npcm7xx_pinctrl_register); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("[email protected]" );MODULE_AUTHOR ("[email protected]" );MODULE_DESCRIPTION ("Nuvoton NPCM7XX Pinctrl and GPIO driver" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 18/24 kbuild, bus: qcom: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/bus/qcom-ebi2.c | 1 - 1 file changed, 1 deletion(-)
drivers/bus/qcom-ebi2.c +0 -1
@@ -403,4 +403,3 @@ static struct platform_driver qcom_ebi2_driver = {module_platform_driver (qcom_ebi2_driver);MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_DESCRIPTION ("Qualcomm EBI2 driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 19/24 kbuild, bus: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/bus/qcom-ssc-block-bus.c | 1 - 1 file changed, 1 deletion(-)
drivers/bus/qcom-ssc-block-bus.c +0 -1
@@ -386,4 +386,3 @@ module_platform_driver(qcom_ssc_block_bus_driver);MODULE_DESCRIPTION ("A driver for handling the init sequence needed for accessing the SSC block on (some) qcom SoCs over AHB" );MODULE_AUTHOR ("Michael Srba <[email protected]>" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 20/24 kbuild, gpio: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/gpio/gpio-rda.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpio/gpio-rda.c +0 -1
@@ -286,4 +286,3 @@ module_platform_driver_probe(rda_gpio_driver, rda_gpio_probe);MODULE_DESCRIPTION ("RDA Micro GPIO driver" );MODULE_AUTHOR ("Manivannan Sadhasivam <[email protected]>" ); -MODULE_LICENSE ("GPL v2" );
Signature · 7 lines
2.39.1.268.g9de2f9a303 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Bartosz Golaszewski
AppliedRe: [PATCH 20/24] kbuild, gpio: remove MODULE_LICENSE in non-modules
Quoted 11 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Applied, thanks!
Bart
PATCH 21/24 kbuild, serial: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/tty/serial/rda-uart.c | 1 - 1 file changed, 1 deletion(-)
drivers/tty/serial/rda-uart.c +0 -1
@@ -825,4 +825,3 @@ module_exit(rda_uart_exit);MODULE_AUTHOR ("Manivannan Sadhasivam <[email protected]>" );MODULE_DESCRIPTION ("RDA8810PL serial device driver" ); -MODULE_LICENSE ("GPL" );
Signature · 7 lines
2.39.1.268.g9de2f9a303 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Greg Kroah-Hartman
maintainerRe: [PATCH 21/24] kbuild, serial: remove MODULE_LICENSE in non-modules
Quoted 31 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc Jiri Slaby <[email protected]>--- drivers/tty/serial/rda-uart.c | 1 - 1 file changed, 1 deletion(-)drivers/tty/serial/rda-uart.c +0
-0
drivers/tty/serial/rda-uart.c module_exit(rda_uart_exit); · line 828
Quoted 4 lines
drivers/tty/serial/rda-uart.c +0
-1@@ -825,4 +825,3 @@ module_exit(rda_uart_exit);MODULE_AUTHOR ("Manivannan Sadhasivam <[email protected]>" );MODULE_DESCRIPTION ("RDA8810PL serial device driver" ); -MODULE_LICENSE ("GPL" );
No, this should be fine, either force remove all MODULE_* macros from built-in code, or none.
thanks,
greg k-h
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 22/24 kbuild, dmaengine: s3c24xx: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/dma/s3c24xx-dma.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/s3c24xx-dma.c +0 -1
@@ -1425,4 +1425,3 @@ EXPORT_SYMBOL(s3c24xx_dma_filter);MODULE_DESCRIPTION ("S3C24XX DMA Driver" );MODULE_AUTHOR ("Heiko Stuebner" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 22/24] kbuild, dmaengine: s3c24xx: remove MODULE_LICENSE in non-modules
Quoted 9 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
I think you need to base your tree-wide patches on next. The driver was removed. Please drop the patch.
Best regards,
Krzysztof
PATCH 23/24 kbuild, EDAC, altera: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/edac/altera_edac.c | 1 - 1 file changed, 1 deletion(-)
drivers/edac/altera_edac.c +0 -1
@@ -2226,6 +2226,5 @@ static struct platform_driver altr_edac_a10_driver = { };module_platform_driver (altr_edac_a10_driver); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Thor Thayer" );MODULE_DESCRIPTION ("EDAC Driver for Altera Memories" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 23/24] kbuild, EDAC, altera: remove MODULE_LICENSE in non-modules
Quoted 30 lines · Nick Alcock
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.So remove it in the files in this commit, none of which can be built as modules.
Signed-off-by Nick Alcock <[email protected]>Suggested-by Luis Chamberlain <[email protected]>Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Borislav Petkov <[email protected]>Cc Tony Luck <[email protected]>--- drivers/edac/altera_edac.c | 1 - 1 file changed, 1 deletion(-)drivers/edac/altera_edac.c +0
-0
drivers/edac/altera_edac.c static struct platform_driver altr_edac_a10_driver = { · line 2230
Quoted 6 lines
drivers/edac/altera_edac.c +0
-1@@ -2226,6 +2226,5 @@ static struct platform_driver altr_edac_a10_driver = { };module_platform_driver (altr_edac_a10_driver); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Thor Thayer" );MODULE_DESCRIPTION ("EDAC Driver for Altera Memories" );
Applied, thanks.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquettePATCH 24/24 kbuild, power: reset: keystone-reset: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockSince commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message.
So remove it in the files in this commit, none of which can be built as modules.
--- drivers/power/reset/keystone-reset.c | 1 - 1 file changed, 1 deletion(-)
drivers/power/reset/keystone-reset.c +0 -1
@@ -169,5 +169,4 @@ module_platform_driver(rsctrl_driver);MODULE_AUTHOR ("Ivan Khoronzhuk <[email protected]>" );MODULE_DESCRIPTION ("Texas Instruments keystone reset driver" ); -MODULE_LICENSE ("GPL v2" );MODULE_ALIAS ("platform:" KBUILD_MODNAME );
Signature · 1 line
2.39.1.268.g9de2f9a303
Will Deacon
maintainerQuoted 10 lines · Nick Alcock
This series, based on current modules-next, is part of a treewide cleanup suggested by Luis Chamberlain, to remove the
LICENSE_MODULEusage from files/objects that are not tristate. Due to recent changes to kbuild, these uses are now problematic. See the commit logs for more details.(The commit log prefixes and Cc lists are automatically determined using the script mentioned below. I've eyeballed them, and they seem reasonable:
my apologies if they are not.)[...]
Applied drivers/perf patch to will (for-next/perf), thanks!
[08/24] kbuild, drivers/perf: remove MODULE_LICENSE in non-modules
https://git.kernel.org/will/c/a64021d3726a
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev