hwspinlock: remove MODULE_LICENSE in non-modules
Subsystems (38)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/27 gpio: 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/gpio/gpio-imx-scu.c | 1 - drivers/gpio/gpio-mxs.c | 1 - 2 files changed, 2 deletions(-)
drivers/gpio/gpio-imx-scu.c +0 -1
@@ -136,4 +136,3 @@ subsys_initcall_sync(_imx_scu_gpio_init);MODULE_AUTHOR ("Shenwei Wang <[email protected]>" );MODULE_DESCRIPTION ("NXP GPIO over IMX SCU API" ); -MODULE_LICENSE ("GPL" );
drivers/gpio/gpio-mxs.c +0 -1
@@ -364,4 +364,3 @@ MODULE_AUTHOR("Freescale Semiconductor, ""Daniel Mack <danielncaiaq.de>, " "Juergen Beisert <[email protected]>");MODULE_DESCRIPTION ("Freescale MXS GPIO" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Bartosz Golaszewski
AppliedRe: [PATCH 01/27] gpio: remove MODULE_LICENSE in non-modules
Quoted 23 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 Linus Walleij <[email protected]>Cc Bartosz Golaszewski <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>
Quoted 1 line
---
Applied, thanks!
Bart
PATCH 2/27 hwspinlock: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/hwspinlock/hwspinlock_core.c | 1 - 1 file changed, 1 deletion(-)
drivers/hwspinlock/hwspinlock_core.c +0 -1
@@ -949,6 +949,5 @@ struct hwspinlock *devm_hwspin_lock_request_specific(struct device *dev, }EXPORT_SYMBOL_GPL (devm_hwspin_lock_request_specific); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Hardware spinlock interface" );MODULE_AUTHOR ("Ohad Ben-Cohen <[email protected]>" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 3/27 fbdev: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/video/fbdev/imsttfb.c | 1 - 1 file changed, 1 deletion(-)
drivers/video/fbdev/imsttfb.c +0 -1
@@ -1636,7 +1636,6 @@ static void __exit imsttfb_exit(void)pci_unregister_driver (&imsttfb_pci_driver); } -MODULE_LICENSE ("GPL" );module_init (imsttfb_init);module_exit (imsttfb_exit);
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 4/27 mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/intel_soc_pmic_crc.c | 1 - 1 file changed, 1 deletion(-)
drivers/mfd/intel_soc_pmic_crc.c +0 -1
@@ -271,6 +271,5 @@ static struct i2c_driver crystal_cove_i2c_driver = {module_i2c_driver (crystal_cove_i2c_driver);MODULE_DESCRIPTION ("I2C driver for Intel SoC PMIC" ); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Yang, Bin <[email protected]>" );MODULE_AUTHOR ("Zhu, Lejun <[email protected]>" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules
Quoted 13 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]>
Quoted 6 lines
Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Andy Shevchenko <[email protected]>Cc Lee Jones <[email protected]>
Please, use --cc parameter instead of polluting commit message.
With this addressed,
Quoted 11 lines
drivers/mfd/intel_soc_pmic_crc.c +0
-1@@ -271,6 +271,5 @@ static struct i2c_driver crystal_cove_i2c_driver = {module_i2c_driver (crystal_cove_i2c_driver);MODULE_DESCRIPTION ("I2C driver for Intel SoC PMIC" ); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Yang, Bin <[email protected]>" );MODULE_AUTHOR ("Zhu, Lejun <[email protected]>" );
Signature · 2 lines
With Best Regards, Andy Shevchenko
Lee Jones
maintainerRe: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules
Quoted 14 lines · Andy Shevchenko
Quoted 12 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]>
Quoted 8 lines
Quoted 6 lines
Cc Luis Chamberlain <[email protected]>Cc Hitomi Hasegawa <[email protected]>Cc Andy Shevchenko <[email protected]>Cc Lee Jones <[email protected]>Please, use --cc parameter instead of polluting commit message.
I personally use this a lot. It's better for scripting.
It's okay, I will remove this when applying.
Quoted 20 lines
With this addressed,
Reviewed-by Andy Shevchenko <[email protected]>Quoted 11 lines
drivers/mfd/intel_soc_pmic_crc.c +0
-1@@ -271,6 +271,5 @@ static struct i2c_driver crystal_cove_i2c_driver = {module_i2c_driver (crystal_cove_i2c_driver);MODULE_DESCRIPTION ("I2C driver for Intel SoC PMIC" ); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Yang, Bin <[email protected]>" );MODULE_AUTHOR ("Zhu, Lejun <[email protected]>" );Signature · 2 lines
With Best Regards, Andy Shevchenko
Signature · 1 line
Lee Jones [李琼斯]
Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules
On 3 Mar 2023, Lee Jones spake thusly:
Quoted 23 lines · Andy Shevchenko
Quoted 22 lines · Nick Alcock
Quoted 19 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 Andy Shevchenko <[email protected]>Cc Lee Jones <[email protected]>
Quoted 3 lines
Quoted 1 line
Please, use --cc parameter instead of polluting commit message.
I personally use this a lot. It's better for scripting.
Yeah.
If this is generally annoying I guess I can rejig things to use --cc-cmd instead, somehow, but it was very convenient because it meant the machinery which split up the commits could also compute the Cc list at the same time without having to record it separately, but I assumed it was routinely done from the number of Cc: trailers already in the kernel tree...
Andy Shevchenko
maintainerRe: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules
Quoted 1 line · Nick Alcock
On 3 Mar 2023, Lee Jones spake thusly:
...
Quoted 6 lines
If this is generally annoying I guess I can rejig things to use --cc-cmd instead, somehow, but it was very convenient because it meant the machinery which split up the commits could also compute the Cc list at the same time without having to record it separately, but I assumed it was routinely done from the number of Cc: trailers already in the kernel tree...
For myself I have created a "smart" script [1], which I use on daily basis. Feel free to take it, use it, give a feedback, etc.
[1]: https://github.com/andy-shev/home-bin-tools/blob/master/ge2maintainer.sh
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH 04/27] mfd: intel_soc_pmic_crc: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockQuoted 18 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 Andy Shevchenko <[email protected]>Cc Lee Jones <[email protected]>
Quoted 3 lines
--- drivers/mfd/intel_soc_pmic_crc.c | 1 - 1 file changed, 1 deletion(-)
Applied, thanks
Signature · 1 line
Lee Jones [李琼斯]
PATCH 5/27 cpufreq: intel_pstate: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/intel_pstate.c | 1 - 1 file changed, 1 deletion(-)
drivers/cpufreq/intel_pstate.c +0 -1
@@ -3530,4 +3530,3 @@ early_param("intel_pstate", intel_pstate_setup);MODULE_AUTHOR ("Dirk Brandewie <[email protected]>" );MODULE_DESCRIPTION ("'intel_pstate' - P state driver Intel Core processors" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 05/27] cpufreq: intel_pstate: 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 Srinivas Pandruvada <[email protected]>Cc Len Brown <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>--- drivers/cpufreq/intel_pstate.c | 1 - 1 file changed, 1 deletion(-)drivers/cpufreq/intel_pstate.c +0
-0
drivers/cpufreq/intel_pstate.c early_param("intel_pstate", intel_pstate_setup);
Quoted 5 lines
drivers/cpufreq/intel_pstate.c +0
-2@@ -3530,4 +3530,3 @@ early_param("intel_pstate", intel_pstate_setup);MODULE_AUTHOR ("Dirk Brandewie <[email protected]>" );MODULE_DESCRIPTION ("'intel_pstate' - P state driver Intel Core processors" ); -MODULE_LICENSE ("GPL" ); --
Applied as 6.3-rc material, thanks!
PATCH 6/27 interconnect: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/interconnect/core.c | 1 - 1 file changed, 1 deletion(-)
drivers/interconnect/core.c +0 -1
@@ -1146,4 +1146,3 @@ device_initcall(icc_init);MODULE_AUTHOR ("Georgi Djakov <[email protected]>" );MODULE_DESCRIPTION ("Interconnect Driver Core" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Georgi Djakov
maintainerRe: [PATCH 06/27] interconnect: remove MODULE_LICENSE in non-modules
Hi Nick,
Thanks for the patch!
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 that it might be better to remove not just the MODULE_LICENCE, but also the other module related code in this file.
Thanks,
Georgi
Quoted 22 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 Georgi Djakov <[email protected]>--- drivers/interconnect/core.c | 1 - 1 file changed, 1 deletion(-)drivers/interconnect/core.c +0
-1@@ -1146,4 +1146,3 @@ device_initcall(icc_init);MODULE_AUTHOR ("Georgi Djakov <[email protected]>" );MODULE_DESCRIPTION ("Interconnect Driver Core" ); -MODULE_LICENSE ("GPL v2" );
PATCH 7/27 iommu/sun50i: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/iommu/sun50i-iommu.c | 1 - 1 file changed, 1 deletion(-)
drivers/iommu/sun50i-iommu.c +0 -1
@@ -1077,4 +1077,3 @@ builtin_platform_driver_probe(sun50i_iommu_driver, sun50i_iommu_probe);MODULE_DESCRIPTION ("Allwinner H6 IOMMU driver" );MODULE_AUTHOR ("Maxime Ripard <[email protected]>" );MODULE_AUTHOR ("zhuxianbin <[email protected]>" ); -MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 07/27] iommu/sun50i: remove MODULE_LICENSE in non-modules
Dne petek, 24. februar 2023 ob 16:07:51 CET je Nick Alcock napisal(a):
Quoted 34 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 Joerg Roedel <[email protected]>Cc Will Deacon <[email protected]>Cc Chen-Yu Tsai <[email protected]>Cc Jernej Skrabec <[email protected]>Cc Samuel Holland <[email protected]>Cc Philipp Zabel <[email protected]>--- drivers/iommu/sun50i-iommu.c | 1 - 1 file changed, 1 deletion(-)drivers/iommu/sun50i-iommu.c +0
-0
drivers/iommu/sun50i-iommu.c builtin_platform_driver_probe(sun50i_iommu_driver, · line 1080
Quoted 4 lines
drivers/iommu/sun50i-iommu.c +0
-1@@ -1077,4 +1077,3 @@ builtin_platform_driver_probe(sun50i_iommu_driver, sun50i_iommu_probe); MODULE_DESCRIPTION("Allwinner H6 IOMMU driver");MODULE_AUTHOR ("Maxime Ripard <[email protected]>" );MODULE_AUTHOR ("zhuxianbin <[email protected]>" ); -MODULE_LICENSE ("Dual BSD/GPL" );
Best regards,
Jernej
Re: [PATCH 07/27] iommu/sun50i: remove MODULE_LICENSE in non-modules
In reply to Nick AlcockQuoted 2 lines · Nick Alcock
drivers/iommu/sun50i-iommu.c | 1 - 1 file changed, 1 deletion(-)
Applied, thanks.
PATCH 8/27 irqchip: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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-ls-scfg-msi.c | 1 - drivers/irqchip/irq-mbigen.c | 1 - drivers/irqchip/irq-renesas-intc-irqpin.c | 1 - drivers/irqchip/irq-renesas-irqc.c | 1 - drivers/irqchip/irq-renesas-rza1.c | 1 - 5 files changed, 5 deletions(-)
drivers/irqchip/irq-ls-scfg-msi.c +0 -1
@@ -430,4 +430,3 @@ module_platform_driver(ls_scfg_msi_driver);MODULE_AUTHOR ("Minghuan Lian <[email protected]>" );MODULE_DESCRIPTION ("Freescale Layerscape SCFG MSI controller driver" ); -MODULE_LICENSE ("GPL v2" );
drivers/irqchip/irq-mbigen.c +0 -1
@@ -389,5 +389,4 @@ module_platform_driver(mbigen_platform_driver);MODULE_AUTHOR ("Jun Ma <[email protected]>" );MODULE_AUTHOR ("Yun Wu <[email protected]>" ); -MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("HiSilicon MBI Generator driver" );
drivers/irqchip/irq-renesas-intc-irqpin.c +0 -1
@@ -608,4 +608,3 @@ module_exit(intc_irqpin_exit);MODULE_AUTHOR ("Magnus Damm" );MODULE_DESCRIPTION ("Renesas INTC External IRQ Pin Driver" ); -MODULE_LICENSE ("GPL v2" );
drivers/irqchip/irq-renesas-irqc.c +0 -1
@@ -270,4 +270,3 @@ module_exit(irqc_exit);MODULE_AUTHOR ("Magnus Damm" );MODULE_DESCRIPTION ("Renesas IRQC Driver" ); -MODULE_LICENSE ("GPL v2" );
drivers/irqchip/irq-renesas-rza1.c +0 -1
@@ -281,4 +281,3 @@ module_exit(rza1_irqc_exit);MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>" );MODULE_DESCRIPTION ("Renesas RZ/A1 IRQC Driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 9/27 irqchip: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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-renesas-rzg2l.c | 1 - 1 file changed, 1 deletion(-)
drivers/irqchip/irq-renesas-rzg2l.c +0 -1
@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc) MODULE_AUTHOR("Lad Prabhakar <[email protected]>");MODULE_DESCRIPTION ("Renesas RZ/G2L IRQC Driver" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
Quoted 29 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 Thomas Gleixner <[email protected]>Cc Marc Zyngier <[email protected]>Cc Philipp Zabel <[email protected]>--- drivers/irqchip/irq-renesas-rzg2l.c | 1 - 1 file changed, 1 deletion(-)drivers/irqchip/irq-renesas-rzg2l.c +0
-0
drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393
Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0
-1@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc) MODULE_AUTHOR("Lad Prabhakar <[email protected]>");MODULE_DESCRIPTION ("Renesas RZ/G2L IRQC Driver" ); -MODULE_LICENSE ("GPL" );
I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.
It also means that once a random driver gets enabled as a module, it won't load because it is now missing a MODULE_LICENSE() annotation.
It feels like MODULE_LICENSE should instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?
I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").
Thanks,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
Quoted 43 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>Cc Marc Zyngier <[email protected]>Cc Philipp Zabel <[email protected]>--- drivers/irqchip/irq-renesas-rzg2l.c | 1 - 1 file changed, 1 deletion(-)drivers/irqchip/irq-renesas-rzg2l.c +0
-0drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393
Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0
-1@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc) MODULE_AUTHOR("Lad Prabhakar <[email protected]>");MODULE_DESCRIPTION ("Renesas RZ/G2L IRQC Driver" ); -MODULE_LICENSE ("GPL" );I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.
It also means that once a random driver gets enabled as a module, it won't load because it is now missing a
MODULE_LICENSE()annotation.
Quoted 8 lines
It feels like
MODULE_LICENSEshould instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").
The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.
Luis
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
Quoted 49 lines · Luis Chamberlain
Quoted 47 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>Cc Marc Zyngier <[email protected]>Cc Philipp Zabel <[email protected]>--- drivers/irqchip/irq-renesas-rzg2l.c | 1 - 1 file changed, 1 deletion(-)drivers/irqchip/irq-renesas-rzg2l.c +0
-0drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393
Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0
-1@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc) MODULE_AUTHOR("Lad Prabhakar <[email protected]>");MODULE_DESCRIPTION ("Renesas RZ/G2L IRQC Driver" ); -MODULE_LICENSE ("GPL" );I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.
It also means that once a random driver gets enabled as a module, it won't load because it is now missing a
MODULE_LICENSE()annotation.It feels like
MODULE_LICENSEshould instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?
Quoted 8 lines
Quoted 4 lines
I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").
The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.
I understand that you want to remove it. I don't get why this is the right solution. Can you please assume that, in this particular instance, I am a complete idiot and spell it out for me?
Why isn't that a problem for modules that are compiled-in?
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
Quoted 60 lines · Marc Zyngier
Quoted 49 lines · Luis Chamberlain
Quoted 47 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>Cc Marc Zyngier <[email protected]>Cc Philipp Zabel <[email protected]>--- drivers/irqchip/irq-renesas-rzg2l.c | 1 - 1 file changed, 1 deletion(-)drivers/irqchip/irq-renesas-rzg2l.c +0
-0drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393
Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0
-1@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc) MODULE_AUTHOR("Lad Prabhakar <[email protected]>");MODULE_DESCRIPTION ("Renesas RZ/G2L IRQC Driver" ); -MODULE_LICENSE ("GPL" );I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.
It also means that once a random driver gets enabled as a module, it won't load because it is now missing a
MODULE_LICENSE()annotation.It feels like
MODULE_LICENSEshould instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?Quoted 8 lines
Quoted 4 lines
I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").
The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.
Quoted 5 lines
I understand that you want to remove it. I don't get why this is the right solution. Can you please assume that, in this particular instance, I am a complete idiot and spell it out for me?
Why isn't that a problem for modules that are compiled-in?
Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.
All of the module macros which peg .modinfo section information for built-in code can be extracted from vmlinux using objcopy -j .modinfo, and that's exactly how modules.builtin.modinfo is built:
objcopy -j .modinfo -O binary vmlinux.o modules.builtin.modinfo
From this we grep out the "file:" and sed it with a ^kernel prefix. You can look at the commit 8b41fc4454e ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf") which did that.
If a module is built-in then MODULE_FILE() is used we and we add a MODULE_INFO(file, KBUILD_MODFILE), and so the modinfo exists for the "file:" tag for it. At build time we sed for all those with a kernel prefix to build the modules.builtin file. That file is used by modprobe to tell us "yes your module is loaded as its built-in".
So the thing we wish to not have present is when built-in code is being compiled but *cannot possibly* be module, and we have no way to verify that.
So one way to go about this is to simply *not* use the MODULE_LICENSE() which cannot possibly be modules so to simplfy the build process. I think the alternative would be to have a kconfig tristate add a new define for the case where the tristate was y.
So something like this:
Makefile +1 -0
@@ -574,6 +574,7 @@ KBUILD_CFLAGS_KERNEL := KBUILD_RUSTFLAGS_KERNEL := KBUILD_AFLAGS_MODULE := -DMODULE KBUILD_CFLAGS_MODULE := -DMODULE +KBUILD_CFLAGS_MODULE_POSSIBLE := -DMODULE_POSSIBLE KBUILD_RUSTFLAGS_MODULE := --cfg MODULE KBUILD_LDFLAGS_MODULE := KBUILD_LDFLAGS :=
scripts/Makefile.lib +4 -1
@@ -211,12 +211,15 @@ endif endif part-of-module = $(if $(filter $(basename $@).o, $(real-obj-m)),y) +could-be-module = $(if $(filter $(basename $@).o, $(possible-obj-m)),y) quiet_modtag = $(if $(part-of-module),[M], ) modkern_cflags = \ $(if $(part-of-module), \ $(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE), \ - $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL) $(modfile_flags)) + $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL) $(modfile_flags)) \ + $(if $(could-be-module),, \ + $(KBUILD_CFLAGS_MODULE_POSSIBLE) modkern_rustflags = \ $(if $(part-of-module), \
The difficulty would be the possible-obj-m, to do it without incurring a huge slow down on the build process.
Luis
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
On 24 Feb 2023, Luis Chamberlain spake thusly:
Quoted 22 lines
Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.
All of the module macros which peg .modinfo section information for built-in code can be extracted from vmlinux using objcopy -j .modinfo, and that's exactly how modules.builtin.modinfo is built:
objcopy -j .modinfo -O binary vmlinux.o modules.builtin.modinfo
From this we grep out the "file:" and sed it with a ^kernel prefix. You can look at the commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf") which did that.If a module is built-in then
MODULE_FILE()is used we and we add aMODULE_INFO(file, KBUILD_MODFILE), and so the modinfo exists for the "file:" tag for it. At build time we sed for all those with a kernel prefix to build the modules.builtin file. That file is used by modprobe to tell us "yes your module is loaded as its built-in".
Quoted 5 lines
So the thing we wish to not have present is when built-in code is being compiled but *cannot possibly* be module, and we have no way to verify that.
So one way to go about this is to simply *not* use the
MODULE_LICENSE()which cannot possibly be modules so to simplfy the build process.
I do wonder if I should drop this excellent description (up to the place where you start musing on alternatives) into the cover letters for the remaining two tranches in this series, to forestall further confusion. Any objection? (I doubt it, but it seems right to ask.)
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
Quoted 26 lines · Nick Alcock
On 24 Feb 2023, Luis Chamberlain spake thusly:
Quoted 25 lines
Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.
All of the module macros which peg .modinfo section information for built-in code can be extracted from vmlinux using objcopy -j .modinfo, and that's exactly how modules.builtin.modinfo is built:
objcopy -j .modinfo -O binary vmlinux.o modules.builtin.modinfo
From this we grep out the "file:" and sed it with a ^kernel prefix. You can look at the commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf") which did that.If a module is built-in then
MODULE_FILE()is used we and we add aMODULE_INFO(file, KBUILD_MODFILE), and so the modinfo exists for the "file:" tag for it. At build time we sed for all those with a kernel prefix to build the modules.builtin file. That file is used by modprobe to tell us "yes your module is loaded as its built-in".So the thing we wish to not have present is when built-in code is being compiled but *cannot possibly* be module, and we have no way to verify that.
Quoted 7 lines
Quoted 2 lines
So one way to go about this is to simply *not* use the
MODULE_LICENSE()which cannot possibly be modules so to simplfy the build process.I do wonder if I should drop this excellent description (up to the place where you start musing on alternatives) into the cover letters for the remaining two tranches in this series, to forestall further confusion. Any objection? (I doubt it, but it seems right to ask.)
Cover letters die, commit logs don't. So use it either as part of the commit log or refer to this thread on the commit log. You can also try to condense / paraphrase my description somehow too.
Luis
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
On 27 Feb 2023, Luis Chamberlain outgrape:
Quoted 3 lines
Cover letters die, commit logs don't. So use it either as part of the commit log or refer to this thread on the commit log. You can also try to condense / paraphrase my description somehow too.
Hm. The commit logs have partly been pulled into other trees and are thus to a degree set in stone. I can cite your post in the upcoming pushes though, and in the -rc3 "whatever is left".
Thanks for the advice :)
Signature · 1 line
NULL && (void)
Re: [PATCH 09/27] irqchip: remove MODULE_LICENSE in non-modules
In reply to Luis ChamberlainQuoted 66 lines · Luis Chamberlain
Quoted 64 lines · Marc Zyngier
Quoted 49 lines · Luis Chamberlain
Quoted 47 lines · Marc Zyngier
Quoted 29 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 Thomas Gleixner <[email protected]>Cc Marc Zyngier <[email protected]>Cc Philipp Zabel <[email protected]>--- drivers/irqchip/irq-renesas-rzg2l.c | 1 - 1 file changed, 1 deletion(-)drivers/irqchip/irq-renesas-rzg2l.c +0
-0drivers/irqchip/irq-renesas-rzg2l.c IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) · line 393
Quoted 4 lines
drivers/irqchip/irq-renesas-rzg2l.c +0
-1@@ -390,4 +390,3 @@ IRQCHIP_MATCH("renesas,rzg2l-irqc", rzg2l_irqc_init) IRQCHIP_PLATFORM_DRIVER_END(rzg2l_irqc) MODULE_AUTHOR("Lad Prabhakar <[email protected]>");MODULE_DESCRIPTION ("Renesas RZ/G2L IRQC Driver" ); -MODULE_LICENSE ("GPL" );I'm probably missing some context here, but I find it odd to drop something that is a important piece of information because of what looks like a tooling regression.
It also means that once a random driver gets enabled as a module, it won't load because it is now missing a
MODULE_LICENSE()annotation.It feels like
MODULE_LICENSEshould instead degrade to an empty statement when MODULE isn't defined. Why isn't this approach the correct one?Quoted 8 lines
Quoted 4 lines
I expect the cover letter would have some pretty good information on this, but lore.kernel.org doesn't seem to have it at the time I write this ("Message-ID <[email protected]> not found").
The right thing is to not even have this and have the module license inferred from the SPDX tag. But for now we want to remove the tag from things we know for sure are not modules.
I understand that you want to remove it. I don't get why this is the right solution. Can you please assume that, in this particular instance, I am a complete idiot and spell it out for me?
Quoted 7 lines
Quoted 1 line
Why isn't that a problem for modules that are compiled-in?
Modules that are compiled in should succeed with a modprobe call as its already loaded. The construct we're looking for is a way to detect things which are built-in but *could* be modules. The annotation today is done at build time for something built-in using a file path using modinfo.
Why is it important to make "modprobe irq-renesas-rza1" fail?
With CONFIG_RENESAS_RZA1_IRQC=y, "modprobe irq-renesas-rza1" exits with 0.
I do not think it is a big deal since irq-renesas-rza1 is available as built-in.
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH 10/27 leds: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/leds/leds-asic3.c | 1 - 1 file changed, 1 deletion(-)
drivers/leds/leds-asic3.c +0 -1
@@ -173,5 +173,4 @@ module_platform_driver(asic3_led_driver);MODULE_AUTHOR ("Paul Parsons <[email protected]>" );MODULE_DESCRIPTION ("HTC ASIC3 LED driver" ); -MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:leds-asic3" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Lee Jones
maintainerRe: [PATCH 10/27] leds: remove MODULE_LICENSE in non-modules
Quoted 19 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 Pavel Machek <[email protected]>Cc Lee Jones <[email protected]>
Quoted 3 lines
--- drivers/leds/leds-asic3.c | 1 - 1 file changed, 1 deletion(-)
Mention the driver in the subject line please.
Quoted 13 lines
drivers/leds/leds-asic3.c +0
-1@@ -173,5 +173,4 @@ module_platform_driver(asic3_led_driver);MODULE_AUTHOR ("Paul Parsons <[email protected]>" );MODULE_DESCRIPTION ("HTC ASIC3 LED driver" ); -MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:leds-asic3" );Signature · 1 line
2.39.1.268.g9de2f9a303
Signature · 1 line
Lee Jones [李琼斯]
Re: [PATCH 10/27] leds: remove MODULE_LICENSE in non-modules
On 3 Mar 2023, Lee Jones uttered the following:
Quoted 25 lines · Nick Alcock
Quoted 20 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 Pavel Machek <[email protected]>Cc Lee Jones <[email protected]>Quoted 3 lines
--- drivers/leds/leds-asic3.c | 1 - 1 file changed, 1 deletion(-)
Quoted 1 line
Mention the driver in the subject line please.
Sorry, the prefix-generation is all automated: we use whatever prefix is most commonly used by all affected drivers in the subsystem and shared by all of them. In this case, that was simply 'leds', apparently because almost all things affecting this driver were treewide.
... which probably explains why the driver was removed in January and is gone in -next, so I guess this one will go away shortly regardless.
PATCH 11/27 mailbox: rockchip: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/mailbox/rockchip-mailbox.c | 1 - 1 file changed, 1 deletion(-)
drivers/mailbox/rockchip-mailbox.c +0 -1
@@ -254,7 +254,6 @@ static struct platform_driver rockchip_mbox_driver = {module_platform_driver (rockchip_mbox_driver); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Rockchip mailbox: communicate between CPU cores and MCU" );MODULE_AUTHOR ("Addy Ke <[email protected]>" );MODULE_AUTHOR ("Caesar Wang <[email protected]>" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 12/27 mailbox: zynqmp-ipi: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/mailbox/zynqmp-ipi-mailbox.c | 1 - 1 file changed, 1 deletion(-)
drivers/mailbox/zynqmp-ipi-mailbox.c +0 -1
@@ -718,6 +718,5 @@ static void __exit zynqmp_ipi_exit(void) }module_exit (zynqmp_ipi_exit); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Xilinx ZynqMP IPI Mailbox driver" );MODULE_AUTHOR ("Xilinx Inc." );
Signature · 1 line
2.39.1.268.g9de2f9a303
Michal Simek
maintainerRe: [PATCH 12/27] mailbox: zynqmp-ipi: remove MODULE_LICENSE in non-modules
Quoted 35 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 Jassi Brar <[email protected]>Cc Michal Simek <[email protected]>--- drivers/mailbox/zynqmp-ipi-mailbox.c | 1 - 1 file changed, 1 deletion(-)drivers/mailbox/zynqmp-ipi-mailbox.c +0
-2@@ -718,6 +718,5 @@ static void __exit zynqmp_ipi_exit(void) }module_exit (zynqmp_ipi_exit); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Xilinx ZynqMP IPI Mailbox driver" );MODULE_AUTHOR ("Xilinx Inc." ); --
Quoted 2 lines
2.39.1.268.g9de2f9a303
It is the same case as 24/27. Prefer to change Kconfig from bool to tristate.
Thanks,
Michal
PATCH 13/27 mctp: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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.
--- net/mctp/af_mctp.c | 1 - 1 file changed, 1 deletion(-)
net/mctp/af_mctp.c +0 -1
@@ -694,7 +694,6 @@ subsys_initcall(mctp_init);module_exit (mctp_exit);MODULE_DESCRIPTION ("MCTP core" ); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Jeremy Kerr <[email protected]>" );MODULE_ALIAS_NETPROTO (PF_MCTP );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 14/27 power: reset: mt6397: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/mt6323-poweroff.c | 1 - 1 file changed, 1 deletion(-)
drivers/power/reset/mt6323-poweroff.c +0 -1
@@ -97,4 +97,3 @@ module_platform_driver(mt6323_pwrc_driver);MODULE_DESCRIPTION ("Poweroff driver for MT6323 PMIC" );MODULE_AUTHOR ("Sean Wang <[email protected]>" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 15/27 memory: tegra: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/memory/tegra/tegra186-emc.c | 1 - 1 file changed, 1 deletion(-)
drivers/memory/tegra/tegra186-emc.c +0 -1
@@ -280,4 +280,3 @@ module_platform_driver(tegra186_emc_driver);MODULE_AUTHOR ("Thierry Reding <[email protected]>" );MODULE_DESCRIPTION ("NVIDIA Tegra186 External Memory Controller driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Krzysztof Kozlowski
AppliedRe: [PATCH 15/27] memory: tegra: 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.
Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.
Best regards,
Krzysztof
Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules
Quoted 8 lines · Krzysztof Kozlowski
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 7 lines
Quoted 3 lines
So remove it in the files in this commit, none of which can be built as modules.
Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.
And all dropped. Run checkpatch before sending patches.
Best regards,
Krzysztof
Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules
On 6 Mar 2023, Krzysztof Kozlowski told this:
Quoted 9 lines · Krzysztof Kozlowski
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 7 lines
Quoted 5 lines
Quoted 2 lines
So remove it in the files in this commit, none of which can be built as modules.
Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.
And all dropped. Run checkpatch before sending patches.
So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false positive:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 8b41fc4454e3 ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf")'
The commit message says:
Quoted 2 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations
... which unless I am seeing things is precisely what checkpatch.pl is asking for. Perhaps it can't handle wrapped lines, but not wrapping a git commit log line *also* (correctly) elicits a checkpatch error...
Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules
Quoted 14 lines · Nick Alcock
On 6 Mar 2023, Krzysztof Kozlowski told this:
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Nick Alcock
Quoted 9 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 8 lines
Quoted 4 lines
Quoted 2 lines
Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.
And all dropped. Run checkpatch before sending patches.
So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false
The ones I responded that I applied - so the memory controller ones.
Quoted 4 lines
positive:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit
8b41fc4454e3("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf")'
Quoted 8 lines
The commit message says:
Quoted 2 lines
Since commit
8b41fc4454e("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"),MODULE_LICENSEdeclarations... which unless I am seeing things is precisely what checkpatch.pl is asking for. Perhaps it can't handle wrapped lines, but not wrapping a git commit log line *also* (correctly) elicits a checkpatch error...
It's not a false positive, but an error I am asking fix (assuming there are no more ones) There is no problem with wrapping lines - checkpatch handles it.
Best regards,
Krzysztof
Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules
On 6 Mar 2023, Krzysztof Kozlowski stated:
Quoted 18 lines · Nick Alcock
Quoted 17 lines
On 6 Mar 2023, Krzysztof Kozlowski told this:
Quoted 15 lines · Krzysztof Kozlowski
Quoted 13 lines · Nick Alcock
Quoted 9 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.
Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
And all dropped. Run checkpatch before sending patches.
So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false
The ones I responded that I applied - so the memory controller ones.
OK, resent those three (now two), checkpatch-clean and fused identical subjects together. (Not adjusted non-memory-controller patch commit logs, to avoid causing disruption with those that are already flowing into the tree.)
Hope this is better :)
Signature · 1 line
NULL && (void)
Re: [PATCH 15/27] memory: tegra: remove MODULE_LICENSE in non-modules
Quoted 26 lines · Nick Alcock
On 6 Mar 2023, Krzysztof Kozlowski stated:
Quoted 24 lines · Nick Alcock
Quoted 22 lines
On 6 Mar 2023, Krzysztof Kozlowski told this:
Quoted 9 lines · Krzysztof Kozlowski
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 7 lines
Quoted 5 lines
Quoted 2 lines
So remove it in the files in this commit, none of which can be built as modules.
Applied as well. Squashed with next one. Same subject messes with b4, so prefix should be corrected if these were to stay as separate patches.
And all dropped. Run checkpatch before sending patches.
So... which of the 27 patches n this series is being dropped? It would also be nice to know what the checkpatch problems were, because all I can see from checkpatch is one error per patch, an apparent false
Quoted 8 lines
Quoted 1 line
The ones I responded that I applied - so the memory controller ones.
OK, resent those three (now two), checkpatch-clean and fused identical subjects together. (Not adjusted non-memory-controller patch commit logs, to avoid causing disruption with those that are already flowing into the tree.)
Hope this is better :)
If you send a new patch, mark it appropriately and include changelog.
Best regards,
Krzysztof
PATCH 16/27 memory: tegra: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/memory/tegra/mc.c | 1 - 1 file changed, 1 deletion(-)
drivers/memory/tegra/mc.c +0 -1
@@ -985,4 +985,3 @@ arch_initcall(tegra_mc_init);MODULE_AUTHOR ("Thierry Reding <[email protected]>" );MODULE_DESCRIPTION ("NVIDIA Tegra Memory Controller driver" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH 16/27] memory: tegra: remove MODULE_LICENSE in non-modules
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!
[16/27] memory: tegra: remove MODULE_LICENSE in non-modules
https://git.kernel.org/krzk/linux-mem-ctrl/c/ee5ca07b2041dba178e11f33c79d4bfc20227f09
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
PATCH 17/27 memory: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/memory/bt1-l2-ctl.c | 1 - drivers/memory/da8xx-ddrctl.c | 1 - drivers/memory/fsl_ifc.c | 1 - drivers/memory/mvebu-devbus.c | 1 - 4 files changed, 4 deletions(-)
drivers/memory/bt1-l2-ctl.c +0 -1
@@ -321,4 +321,3 @@ module_platform_driver(l2_ctl_driver);MODULE_AUTHOR ("Serge Semin <[email protected]>" );MODULE_DESCRIPTION ("Baikal-T1 L2-cache driver" ); -MODULE_LICENSE ("GPL v2" );
drivers/memory/da8xx-ddrctl.c +0 -1
@@ -164,4 +164,3 @@ module_platform_driver(da8xx_ddrctl_driver);MODULE_AUTHOR ("Bartosz Golaszewski <[email protected]>" );MODULE_DESCRIPTION ("TI da8xx DDR2/mDDR controller driver" ); -MODULE_LICENSE ("GPL v2" );
drivers/memory/fsl_ifc.c +0 -1
@@ -327,6 +327,5 @@ static int __init fsl_ifc_init(void) }subsys_initcall (fsl_ifc_init); -MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Freescale Semiconductor" );MODULE_DESCRIPTION ("Freescale Integrated Flash Controller driver" );
drivers/memory/mvebu-devbus.c +0 -1
@@ -341,6 +341,5 @@ static int __init mvebu_devbus_init(void) }module_init (mvebu_devbus_init); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Ezequiel Garcia <[email protected]>" );MODULE_DESCRIPTION ("Marvell EBU SoC Device Bus controller" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH 17/27] memory: remove MODULE_LICENSE in non-modules
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!
[17/27] memory: remove MODULE_LICENSE in non-modules
https://git.kernel.org/krzk/linux-mem-ctrl/c/38ffd3eca02502d1d41b8f1430e5a8e302522bd4
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
PATCH 18/27 mtd: bcm63xxpart: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/mtd/parsers/bcm63xxpart.c | 1 - 1 file changed, 1 deletion(-)
drivers/mtd/parsers/bcm63xxpart.c +0 -1
@@ -164,7 +164,6 @@ static struct mtd_part_parser bcm63xx_cfe_parser = { };module_mtd_part_parser (bcm63xx_cfe_parser); -MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Daniel Dickinson <[email protected]>" );MODULE_AUTHOR ("Florian Fainelli <[email protected]>" );MODULE_AUTHOR ("Mike Albon <[email protected]>" );
Signature · 6 lines
2.39.1.268.g9de2f9a303 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH 18/27] mtd: bcm63xxpart: 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 Miquel Raynal <[email protected]>Cc Richard Weinberger <[email protected]>Cc Vignesh Raghavendra <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
PATCH 19/27 irqchip/mchp-eic: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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-mchp-eic.c | 1 - 1 file changed, 1 deletion(-)
drivers/irqchip/irq-mchp-eic.c +0 -1
@@ -276,5 +276,4 @@ IRQCHIP_MATCH("microchip,sama7g5-eic", mchp_eic_init) IRQCHIP_PLATFORM_DRIVER_END(mchp_eic) MODULE_DESCRIPTION("Microchip External Interrupt Controller"); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Claudiu Beznea <[email protected]>" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Re: [PATCH 19/27] irqchip/mchp-eic: remove MODULE_LICENSE in non-modules
Quoted 12 lines · Nick Alcock
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
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 Claudiu Beznea <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Marc Zyngier <[email protected]>
Quoted 17 lines
--- drivers/irqchip/irq-mchp-eic.c | 1 - 1 file changed, 1 deletion(-)drivers/irqchip/irq-mchp-eic.c +0
-2@@ -276,5 +276,4 @@ IRQCHIP_MATCH("microchip,sama7g5-eic", mchp_eic_init) IRQCHIP_PLATFORM_DRIVER_END(mchp_eic) MODULE_DESCRIPTION("Microchip External Interrupt Controller"); -MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Claudiu Beznea <[email protected]>" ); --2.39.1.268.g9de2f9a303
PATCH 20/27 mfd: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/stmpe-i2c.c | 1 - drivers/mfd/stmpe-spi.c | 1 - 2 files changed, 2 deletions(-)
drivers/mfd/stmpe-i2c.c +0 -1
@@ -135,6 +135,5 @@ static void __exit stmpe_exit(void) }module_exit (stmpe_exit); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("STMPE MFD I2C Interface Driver" );MODULE_AUTHOR ("Rabin Vincent <[email protected]>" );
drivers/mfd/stmpe-spi.c +0 -1
@@ -154,6 +154,5 @@ static void __exit stmpe_exit(void) }module_exit (stmpe_exit); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("STMPE MFD SPI Interface Driver" );MODULE_AUTHOR ("Viresh Kumar <[email protected]>" );
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 21/27 mfd: bcm2835-pm: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/bcm2835-pm.c | 1 - 1 file changed, 1 deletion(-)
drivers/mfd/bcm2835-pm.c +0 -1
@@ -123,4 +123,3 @@ module_platform_driver(bcm2835_pm_driver);MODULE_AUTHOR ("Eric Anholt <[email protected]>" );MODULE_DESCRIPTION ("Driver for Broadcom BCM2835 PM MFD" ); -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
Re: [PATCH 21/27] mfd: bcm2835-pm: 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]>
Signature · 1 line
Florian
Re: [PATCH 21/27] mfd: bcm2835-pm: 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 Lee Jones <[email protected]>Cc Florian Fainelli <[email protected]>Cc Ray Jui <[email protected]>Cc Scott Branden <[email protected]>
Quoted 3 lines
--- drivers/mfd/bcm2835-pm.c | 1 - 1 file changed, 1 deletion(-)
Applied, thanks
Signature · 1 line
Lee Jones [李琼斯]
PATCH 22/27 mfd: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/88pm860x-core.c | 1 - drivers/mfd/ezx-pcap.c | 1 - drivers/mfd/lp8788.c | 1 - drivers/mfd/tc3589x.c | 1 - drivers/mfd/tps6586x.c | 1 - 5 files changed, 5 deletions(-)
drivers/mfd/88pm860x-core.c +0 -1
@@ -1276,4 +1276,3 @@ module_exit(pm860x_i2c_exit);MODULE_DESCRIPTION ("PMIC Driver for Marvell 88PM860x" );MODULE_AUTHOR ("Haojian Zhuang <[email protected]>" ); -MODULE_LICENSE ("GPL" );
drivers/mfd/ezx-pcap.c +0 -1
@@ -528,7 +528,6 @@ static void __exit ezx_pcap_exit(void)subsys_initcall (ezx_pcap_init);module_exit (ezx_pcap_exit); -MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Daniel Ribeiro / Harald Welte" );MODULE_DESCRIPTION ("Motorola PCAP2 ASIC Driver" );MODULE_ALIAS ("spi:ezx-pcap" );
drivers/mfd/lp8788.c +0 -1
@@ -244,4 +244,3 @@ module_exit(lp8788_exit);MODULE_DESCRIPTION ("TI LP8788 MFD Driver" );MODULE_AUTHOR ("Milo Kim" ); -MODULE_LICENSE ("GPL" );
drivers/mfd/tc3589x.c +0 -1
@@ -502,6 +502,5 @@ static void __exit tc3589x_exit(void) }module_exit (tc3589x_exit); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("TC3589x MFD core driver" );MODULE_AUTHOR ("Hanumath Prasad, Rabin Vincent" );
drivers/mfd/tps6586x.c +0 -1
@@ -638,4 +638,3 @@ module_exit(tps6586x_exit);MODULE_DESCRIPTION ("TPS6586X core driver" );MODULE_AUTHOR ("Mike Rapoport <[email protected]>" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 23/27 NFSv4_2: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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.
--- fs/nfs_common/nfs_ssc.c | 1 - 1 file changed, 1 deletion(-)
fs/nfs_common/nfs_ssc.c +0 -1
@@ -12,7 +12,6 @@#include <linux/nfs_ssc.h> #include "../nfs/nfs4_fs.h" -MODULE_LICENSE ("GPL" );struct nfs_ssc_client_ops_tbl nfs_ssc_client_tbl;EXPORT_SYMBOL_GPL (nfs_ssc_client_tbl);
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 24/27 firmware: xilinx: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/nvmem/zynqmp_nvmem.c | 1 - 1 file changed, 1 deletion(-)
drivers/nvmem/zynqmp_nvmem.c +0 -1
@@ -78,4 +78,3 @@ module_platform_driver(zynqmp_nvmem_driver);MODULE_AUTHOR ("Michal Simek <[email protected]>, Nava kishore Manne <[email protected]>" );MODULE_DESCRIPTION ("ZynqMP NVMEM 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
Michal Simek
maintainerRe: [PATCH 24/27] firmware: xilinx: remove MODULE_LICENSE in non-modules
Quoted 33 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 Srinivas Kandagatla <[email protected]>Cc Michal Simek <[email protected]>--- drivers/nvmem/zynqmp_nvmem.c | 1 - 1 file changed, 1 deletion(-)drivers/nvmem/zynqmp_nvmem.c +0
-2@@ -78,4 +78,3 @@ module_platform_driver(zynqmp_nvmem_driver);MODULE_AUTHOR ("Michal Simek <[email protected]>, Nava kishore Manne <[email protected]>" );MODULE_DESCRIPTION ("ZynqMP NVMEM driver" ); -MODULE_LICENSE ("GPL" ); --
Quoted 2 lines
2.39.1.268.g9de2f9a303
I would prefer to fix this by changing Kconfig symbol from bool to tristate.
Thanks,
Michal
PATCH 25/27 nvmem: core: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/nvmem/core.c | 1 - 1 file changed, 1 deletion(-)
drivers/nvmem/core.c +0 -1
@@ -1955,4 +1955,3 @@ module_exit(nvmem_exit);MODULE_AUTHOR ("Srinivas Kandagatla <[email protected]" );MODULE_AUTHOR ("Maxime Ripard <[email protected]" );MODULE_DESCRIPTION ("nvmem Driver Core" ); -MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.39.1.268.g9de2f9a303
PATCH 26/27 mfd: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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/omap-usb-host.c | 1 - drivers/mfd/omap-usb-tll.c | 1 - drivers/mfd/twl4030-audio.c | 1 - drivers/mfd/twl6040.c | 1 - 4 files changed, 4 deletions(-)
drivers/mfd/omap-usb-host.c +0 -1
@@ -853,7 +853,6 @@ static struct platform_driver usbhs_omap_driver = {MODULE_AUTHOR ("Keshava Munegowda <[email protected]>" );MODULE_AUTHOR ("Roger Quadros <[email protected]>" );MODULE_ALIAS ("platform:" USBHS_DRIVER_NAME ); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("usb host common core driver for omap EHCI and OHCI" );static int omap_usbhs_drvinit (void )
drivers/mfd/omap-usb-tll.c +0 -1
@@ -450,7 +450,6 @@ EXPORT_SYMBOL_GPL(omap_tll_disable);MODULE_AUTHOR ("Keshava Munegowda <[email protected]>" );MODULE_AUTHOR ("Roger Quadros <[email protected]>" ); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("usb tll driver for TI OMAP EHCI and OHCI controllers" );static int __init omap_usbtll_drvinit (void )
drivers/mfd/twl4030-audio.c +0 -1
@@ -285,5 +285,4 @@ module_platform_driver(twl4030_audio_driver);MODULE_AUTHOR ("Peter Ujfalusi <[email protected]>" );MODULE_DESCRIPTION ("TWL4030 audio block MFD driver" ); -MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:twl4030-audio" );
drivers/mfd/twl6040.c +0 -1
@@ -839,4 +839,3 @@ module_i2c_driver(twl6040_driver);MODULE_DESCRIPTION ("TWL6040 MFD" );MODULE_AUTHOR ("Misael Lopez Cruz <[email protected]>" );MODULE_AUTHOR ("Jorge Eduardo Candelaria <[email protected]>" ); -MODULE_LICENSE ("GPL" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Lee Jones
maintainerRe: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules
Quoted 19 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 Tony Lindgren <[email protected]>Cc Lee Jones <[email protected]>
Quoted 6 lines
--- drivers/mfd/omap-usb-host.c | 1 - drivers/mfd/omap-usb-tll.c | 1 - drivers/mfd/twl4030-audio.c | 1 - drivers/mfd/twl6040.c | 1 - 4 files changed, 4 deletions(-)
Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.
mfd: <device>: Succinct subject-line describing changes
Quoted 46 lines
drivers/mfd/omap-usb-host.c +0
-1@@ -853,7 +853,6 @@ static struct platform_driver usbhs_omap_driver = {MODULE_AUTHOR ("Keshava Munegowda <[email protected]>" );MODULE_AUTHOR ("Roger Quadros <[email protected]>" );MODULE_ALIAS ("platform:" USBHS_DRIVER_NAME ); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("usb host common core driver for omap EHCI and OHCI" );static int omap_usbhs_drvinit (void )drivers/mfd/omap-usb-tll.c +0
-1@@ -450,7 +450,6 @@ EXPORT_SYMBOL_GPL(omap_tll_disable);MODULE_AUTHOR ("Keshava Munegowda <[email protected]>" );MODULE_AUTHOR ("Roger Quadros <[email protected]>" ); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("usb tll driver for TI OMAP EHCI and OHCI controllers" );static int __init omap_usbtll_drvinit (void )drivers/mfd/twl4030-audio.c +0
-1@@ -285,5 +285,4 @@ module_platform_driver(twl4030_audio_driver);MODULE_AUTHOR ("Peter Ujfalusi <[email protected]>" );MODULE_DESCRIPTION ("TWL4030 audio block MFD driver" ); -MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:twl4030-audio" );drivers/mfd/twl6040.c +0
-1@@ -839,4 +839,3 @@ module_i2c_driver(twl6040_driver);MODULE_DESCRIPTION ("TWL6040 MFD" );MODULE_AUTHOR ("Misael Lopez Cruz <[email protected]>" );MODULE_AUTHOR ("Jorge Eduardo Candelaria <[email protected]>" ); -MODULE_LICENSE ("GPL" );Signature · 1 line
2.39.1.268.g9de2f9a303
Signature · 1 line
Lee Jones [李琼斯]
Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules
On 3 Mar 2023, Lee Jones verbalised:
Quoted 28 lines · Nick Alcock
Quoted 20 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 Tony Lindgren <[email protected]>Cc Lee Jones <[email protected]>Quoted 6 lines
--- drivers/mfd/omap-usb-host.c | 1 - drivers/mfd/omap-usb-tll.c | 1 - drivers/mfd/twl4030-audio.c | 1 - drivers/mfd/twl6040.c | 1 - 4 files changed, 4 deletions(-)
Quoted 2 lines
Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.
The subject line is automatically generated, and uses whatever subsystem prefix was most commonly used for all files touched in that subsystem, while not containing any prefixes *not* so touched.
It's also automatically split up per-subsystem from a single big source commit that changes everything at once. I can split this bit more finely, but that means automated regeneration will be impossible, so it'll probably backslide if I ever have to regenerate it -- and I've had to regenerate this series a *lot*.
In fact if I'd split this bit per driver, I'd probably have automatically got the subject line right as well -- but if the series as a whole were split up like that, it'd have had about 400 patches rather than 120, and got a lot of maintainers even more annoyed than they are now.
For now, I'll split this one into four and mail it out again: coming shortly.
Lee Jones
maintainerRe: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules
Quoted 43 lines · Nick Alcock
On 3 Mar 2023, Lee Jones verbalised:
Quoted 28 lines · Nick Alcock
Quoted 20 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 Tony Lindgren <[email protected]>Cc Lee Jones <[email protected]>Quoted 6 lines
--- drivers/mfd/omap-usb-host.c | 1 - drivers/mfd/omap-usb-tll.c | 1 - drivers/mfd/twl4030-audio.c | 1 - drivers/mfd/twl6040.c | 1 - 4 files changed, 4 deletions(-)Quoted 2 lines
Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.
The subject line is automatically generated, and uses whatever subsystem prefix was most commonly used for all files touched in that subsystem, while not containing any prefixes *not* so touched.
It's also automatically split up per-subsystem from a single big source commit that changes everything at once. I can split this bit more finely, but that means automated regeneration will be impossible, so it'll probably backslide if I ever have to regenerate it -- and I've had to regenerate this series a *lot*.
Quoted 8 lines
In fact if I'd split this bit per driver, I'd probably have automatically got the subject line right as well -- but if the series as a whole were split up like that, it'd have had about 400 patches rather than 120, and got a lot of maintainers even more annoyed than they are now.
For now, I'll split this one into four and mail it out again: coming shortly.
If you haven't sent it out already, 2 will be fine.
mfd: omap: ...
mfd: twl: ...
--
Lee Jones [李琼斯]
Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules
On 8 Mar 2023, Lee Jones uttered the following:
Quoted 7 lines · Nick Alcock
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/mfd/omap-usb-host.c | 1 - drivers/mfd/omap-usb-tll.c | 1 - drivers/mfd/twl4030-audio.c | 1 - drivers/mfd/twl6040.c | 1 - 4 files changed, 4 deletions(-)
[...]
Quoted 7 lines
Quoted 2 lines
For now, I'll split this one into four and mail it out again: coming shortly.
If you haven't sent it out already, 2 will be fine.
mfd: omap: ...
mfd: twl: ...
I'm trying to automate this whole thing (since I've had to resplit it a dozen times already), and even making mfd a special case that wants splitting finer than by subsystem, I honestly have no idea how to automatically determine a split like *that*. I can't split on file, on subsystem, on dashes in the names... I think I'd have to literally parse the makefile to figure out which things belonged together in commits, and that's getting ridiculous even for me.
So, if you don't mind, I'd rather do it by subsystem or by file :)
Signature · 1 line
NULL && (void)
Lee Jones
maintainerRe: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules
Quoted 26 lines · Nick Alcock
On 8 Mar 2023, Lee Jones uttered the following:
Quoted 7 lines · Nick Alcock
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/mfd/omap-usb-host.c | 1 - drivers/mfd/omap-usb-tll.c | 1 - drivers/mfd/twl4030-audio.c | 1 - drivers/mfd/twl6040.c | 1 - 4 files changed, 4 deletions(-)[...]
Quoted 7 lines
Quoted 2 lines
For now, I'll split this one into four and mail it out again: coming shortly.
If you haven't sent it out already, 2 will be fine.
mfd: omap: ...
mfd: twl: ...I'm trying to automate this whole thing (since I've had to resplit it a dozen times already), and even making mfd a special case that wants splitting finer than by subsystem, I honestly have no idea how to automatically determine a split like *that*. I can't split on file, on subsystem, on dashes in the names... I think I'd have to literally parse the makefile to figure out which things belonged together in commits, and that's getting ridiculous even for me.
Quoted 1 line
So, if you don't mind, I'd rather do it by subsystem or by file :)
File is fine.
--
Lee Jones [李琼斯]
Re: [PATCH 26/27] mfd: remove MODULE_LICENSE in non-modules
In reply to Lee JonesOn 3 Mar 2023, Lee Jones told this:
Quoted 2 lines
Please adapt the subject line(s) to include the drivers changed. It might also make sense to separate out changes to cover one driver per patch.
There are a bunch of other commits in this series covering mfd: do you want the same thing done to all of them as well? (They are all in subtly subsystems.)
PATCH 27/27 lib: packing: remove MODULE_LICENSE in non-modules
In reply to a message not in the archiveSince 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.
--- lib/packing.c | 1 - 1 file changed, 1 deletion(-)
lib/packing.c +0 -1
@@ -198,5 +198,4 @@ int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen, }EXPORT_SYMBOL (packing); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Generic bitfield packing and unpacking" );
Signature · 1 line
2.39.1.268.g9de2f9a303
Vladimir Oltean
maintainerRe: [PATCH 27/27] lib: packing: remove MODULE_LICENSE in non-modules
Quoted 35 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 Vladimir Oltean <[email protected]>--- lib/packing.c | 1 - 1 file changed, 1 deletion(-)lib/packing.c +0
-1@@ -198,5 +198,4 @@ int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen, }EXPORT_SYMBOL (packing); -MODULE_LICENSE ("GPL v2" );MODULE_DESCRIPTION ("Generic bitfield packing and unpacking" );Signature · 1 line
2.39.1.268.g9de2f9a303
Is this a bug fix? Does it need a Fixes: tag? How is it supposed to be merged? lib/packing.c is maintained by netdev, and I believe that netdev maintainers would prefer netdev patches to be submitted separately.
Note that I was copied only on this patch, I haven't read the cover letter if that exists.
Jakub Kicinski
maintainerRe: [PATCH 27/27] lib: packing: remove MODULE_LICENSE in non-modules
Quoted 3 lines · On Fri, 24 Feb 2023 17:22:14 +0200 Vladimir Oltean wrote:
Is this a bug fix? Does it need a Fixes: tag? How is it supposed to be merged?
lib/packing.cis maintained by netdev, and I believe that netdev maintainers would prefer netdev patches to be submitted separately.
As Vladimir said, if you repost just patches 13 and 27 of this series to netdev - we can take them in right away.