* [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE()
@ 2020-05-09 15:15 Matti Vaittinen
2020-05-10 19:50 ` Sebastian Reichel
2020-05-11 11:25 ` Mark Brown
0 siblings, 2 replies; 4+ messages in thread
From: Matti Vaittinen @ 2020-05-09 15:15 UTC (permalink / raw)
To: matti.vaittinen, mazziesaccount
Cc: Mark Brown, sre, linux-pm, brendanhiggins, linux-kernel, lgirdwood
When linear_ranges is compiled as module we get warning
about missing MODULE_LICENSE(). Fix it by adding
MODULE_LICENSE("GPL") as is suggested by SPDX and EXPORTs.
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
I saw Mark applied the linear-ranges patch. So I sent this fix as
incremental patch - but I still use the same Linus tree as a base of
this fix - the linear-ranges file should be unchanged in regulator tree.
If this does not apply I can clone regulator tree and create this fix on
it.
I don't know if this is the correct way to fix this as the linear-ranges
should be merged to power-supply tree.
I guess we can either:
- Use this patch to fix regulator tree and create fixed tag for
power-supply(?)
- Add this fix in the original series and resend whole series(?)
- re-create the series and drop the already applied patches. Add this
fix as a fixup patch in new series and apply it to power-supply tree
after the linear-ranges from regulator is merged to power-supply.
Please adviece me if this patch is not the way to go.
Oh, and I am really sorry for the trouble. I saw I had regulators=y
in all of my compilations due to some pincontrol dependencies. So
linear-ranges was not built as module in any of my test compilations :(
Thanks for testing Mark!
lib/linear_ranges.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/linear_ranges.c b/lib/linear_ranges.c
index d1336c75ccd7..9495ef3572b7 100644
--- a/lib/linear_ranges.c
+++ b/lib/linear_ranges.c
@@ -12,6 +12,7 @@
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/linear_range.h>
+#include <linux/module.h>
/**
* linear_range_values_in_range - return the amount of values in a range
@@ -239,3 +240,6 @@ int linear_range_get_selector_high(const struct linear_range *r,
return 0;
}
EXPORT_SYMBOL_GPL(linear_range_get_selector_high);
+
+MODULE_DESCRIPTION("linear-ranges helper");
+MODULE_LICENSE("GPL");
--
2.21.0
--
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND
~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE()
2020-05-09 15:15 [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE() Matti Vaittinen
@ 2020-05-10 19:50 ` Sebastian Reichel
2020-05-11 6:55 ` Vaittinen, Matti
2020-05-11 11:25 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Sebastian Reichel @ 2020-05-10 19:50 UTC (permalink / raw)
To: Matti Vaittinen
Cc: mazziesaccount, Mark Brown, linux-pm, brendanhiggins,
linux-kernel, lgirdwood
[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]
Hi,
On Sat, May 09, 2020 at 06:15:19PM +0300, Matti Vaittinen wrote:
> When linear_ranges is compiled as module we get warning
> about missing MODULE_LICENSE(). Fix it by adding
> MODULE_LICENSE("GPL") as is suggested by SPDX and EXPORTs.
>
> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> ---
>
> I saw Mark applied the linear-ranges patch. So I sent this fix as
> incremental patch - but I still use the same Linus tree as a base of
> this fix - the linear-ranges file should be unchanged in regulator tree.
> If this does not apply I can clone regulator tree and create this fix on
> it.
>
> I don't know if this is the correct way to fix this as the linear-ranges
> should be merged to power-supply tree.
>
> I guess we can either:
> - Use this patch to fix regulator tree and create fixed tag for
> power-supply(?)
> - Add this fix in the original series and resend whole series(?)
> - re-create the series and drop the already applied patches. Add this
> fix as a fixup patch in new series and apply it to power-supply tree
> after the linear-ranges from regulator is merged to power-supply.
>
> Please adviece me if this patch is not the way to go.
>
> Oh, and I am really sorry for the trouble. I saw I had regulators=y
> in all of my compilations due to some pincontrol dependencies. So
> linear-ranges was not built as module in any of my test compilations :(
>
> Thanks for testing Mark!
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
I think it makes sense to just queue this through the regulator tree.
Apart from that you should add a MAINTAINERS file entry for the
linear_ranges lib. Main user is regulators, so future patches should
probably be queued through its tree.
-- Sebastian
> lib/linear_ranges.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/lib/linear_ranges.c b/lib/linear_ranges.c
> index d1336c75ccd7..9495ef3572b7 100644
> --- a/lib/linear_ranges.c
> +++ b/lib/linear_ranges.c
> @@ -12,6 +12,7 @@
> #include <linux/export.h>
> #include <linux/kernel.h>
> #include <linux/linear_range.h>
> +#include <linux/module.h>
>
> /**
> * linear_range_values_in_range - return the amount of values in a range
> @@ -239,3 +240,6 @@ int linear_range_get_selector_high(const struct linear_range *r,
> return 0;
> }
> EXPORT_SYMBOL_GPL(linear_range_get_selector_high);
> +
> +MODULE_DESCRIPTION("linear-ranges helper");
> +MODULE_LICENSE("GPL");
> --
> 2.21.0
>
>
> --
> Matti Vaittinen, Linux device drivers
> ROHM Semiconductors, Finland SWDC
> Kiviharjunlenkki 1E
> 90220 OULU
> FINLAND
>
> ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
> Simon says - in Latin please.
> ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
> Thanks to Simon Glass for the translation =]
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE()
2020-05-10 19:50 ` Sebastian Reichel
@ 2020-05-11 6:55 ` Vaittinen, Matti
0 siblings, 0 replies; 4+ messages in thread
From: Vaittinen, Matti @ 2020-05-11 6:55 UTC (permalink / raw)
To: sebastian.reichel
Cc: brendanhiggins, mazziesaccount, broonie, Okada, Koki,
linux-kernel, Pakanen, Risto, lgirdwood, linux-pm
Morning folks,
On Sun, 2020-05-10 at 21:50 +0200, Sebastian Reichel wrote:
> Hi,
>
> On Sat, May 09, 2020 at 06:15:19PM +0300, Matti Vaittinen wrote:
> > When linear_ranges is compiled as module we get warning
> > about missing MODULE_LICENSE(). Fix it by adding
> > MODULE_LICENSE("GPL") as is suggested by SPDX and EXPORTs.
> >
> > Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> > ---
> >
> > I saw Mark applied the linear-ranges patch. So I sent this fix as
> > incremental patch - but I still use the same Linus tree as a base
> > of
> > this fix - the linear-ranges file should be unchanged in regulator
> > tree.
> > If this does not apply I can clone regulator tree and create this
> > fix on
> > it.
> >
> > I don't know if this is the correct way to fix this as the linear-
> > ranges
> > should be merged to power-supply tree.
> >
> > I guess we can either:
> > - Use this patch to fix regulator tree and create fixed tag for
> > power-supply(?)
> > - Add this fix in the original series and resend whole series(?)
> > - re-create the series and drop the already applied patches. Add
> > this
> > fix as a fixup patch in new series and apply it to power-supply
> > tree
> > after the linear-ranges from regulator is merged to power-supply.
> >
> > Please adviece me if this patch is not the way to go.
> >
> > Oh, and I am really sorry for the trouble. I saw I had regulators=y
> > in all of my compilations due to some pincontrol dependencies. So
> > linear-ranges was not built as module in any of my test
> > compilations :(
> >
> > Thanks for testing Mark!
>
> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
>
> I think it makes sense to just queue this through the regulator tree.
That's absolutely fine with me. It just means that the power-supply
tree has this compilation issue until fix applied to regulator tree
gets merged. But as I said in another mail, this issue is expected to
be triggered only in limited number of test builds.
> Apart from that you should add a MAINTAINERS file entry for the
> linear_ranges lib. Main user is regulators, so future patches should
> probably be queued through its tree.
This is something I have been thinking in general. I feel a tiny bit
bad about adding all my ROHM component drivers to be maintained by
others. I have recently polluted the kernel with few drivers and I feel
I should help by reviewing patches for those.
I might be able to set-up some machinery to compile (and also do some
_really_ limited testing) of the changes to these ROHM drivers - and
possibly set-up a git tree for them. Do you think it would be
beneficial? I think we can at some point consider having separate
maintainer entries for BD718x7, BD70528, BD71828 and BD99954 (+ some
coming driver(s) if it helps.
What comes to linear_ranges - Mark, could you be added as a maintainer
for linear_ranges.c and test_linear_ranges.c (at least for now?) I can
try do some reviewing too if it helps.
--Matti
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE()
2020-05-09 15:15 [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE() Matti Vaittinen
2020-05-10 19:50 ` Sebastian Reichel
@ 2020-05-11 11:25 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2020-05-11 11:25 UTC (permalink / raw)
To: mazziesaccount, Matti Vaittinen
Cc: brendanhiggins, lgirdwood, linux-kernel, linux-pm, sre
On Sat, 9 May 2020 18:15:19 +0300, Matti Vaittinen wrote:
> When linear_ranges is compiled as module we get warning
> about missing MODULE_LICENSE(). Fix it by adding
> MODULE_LICENSE("GPL") as is suggested by SPDX and EXPORTs.
Applied to
local tree asoc/for-5.7
Thanks!
[1/1] lib: linear_ranges: Add missing MODULE_LICENSE()
(no commit info)
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-11 11:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 15:15 [PATCH] lib: linear_ranges: Add missing MODULE_LICENSE() Matti Vaittinen
2020-05-10 19:50 ` Sebastian Reichel
2020-05-11 6:55 ` Vaittinen, Matti
2020-05-11 11:25 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).