All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib: rename TEST_MODULE to TEST_LKM
@ 2014-09-23  6:58 Valentin Rothberg
  2014-09-23 16:49 ` Randy Dunlap
  0 siblings, 1 reply; 10+ messages in thread
From: Valentin Rothberg @ 2014-09-23  6:58 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: pebolle, Valentin Rothberg

The "_MODULE" suffix is reserved for tristates compiled as
loadable kernel modules (LKM). The "TEST_MODULE" feature thereby
violates this convention. The feature is used to compile the
lib/test_module.c kernel module.

This patch renames the feature and its reference in a Makefile
to "TEST_LKM", which still expresses the test of a LKM.

Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
---
 lib/Kconfig.debug | 2 +-
 lib/Makefile      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 07c2832..db91c97 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
 
 	  If unsure, say N.
 
-config TEST_MODULE
+config TEST_LKM
 	tristate "Test module loading with 'hello world' module"
 	default n
 	depends on m
diff --git a/lib/Makefile b/lib/Makefile
index d6b4bc4..382437a 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -31,7 +31,7 @@ obj-y += string_helpers.o
 obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
 obj-y += kstrtox.o
 obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
-obj-$(CONFIG_TEST_MODULE) += test_module.o
+obj-$(CONFIG_TEST_LKM) += test_module.o
 obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
 obj-$(CONFIG_TEST_BPF) += test_bpf.o
 obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
-- 
1.9.1


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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-23  6:58 [PATCH] lib: rename TEST_MODULE to TEST_LKM Valentin Rothberg
@ 2014-09-23 16:49 ` Randy Dunlap
  2014-09-23 17:10   ` Valentin Rothberg
  0 siblings, 1 reply; 10+ messages in thread
From: Randy Dunlap @ 2014-09-23 16:49 UTC (permalink / raw)
  To: Valentin Rothberg, akpm, linux-kernel; +Cc: pebolle

On 09/22/14 23:58, Valentin Rothberg wrote:
> The "_MODULE" suffix is reserved for tristates compiled as
> loadable kernel modules (LKM). The "TEST_MODULE" feature thereby

Is that documented anywhere?

Was this causing some kind of problem or error?  Please tell us what that was if so.


> violates this convention. The feature is used to compile the
> lib/test_module.c kernel module.
> 
> This patch renames the feature and its reference in a Makefile
> to "TEST_LKM", which still expresses the test of a LKM.
> 
> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
> ---
>  lib/Kconfig.debug | 2 +-
>  lib/Makefile      | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 07c2832..db91c97 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
>  
>  	  If unsure, say N.
>  
> -config TEST_MODULE
> +config TEST_LKM
>  	tristate "Test module loading with 'hello world' module"
>  	default n
>  	depends on m
> diff --git a/lib/Makefile b/lib/Makefile
> index d6b4bc4..382437a 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -31,7 +31,7 @@ obj-y += string_helpers.o
>  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
>  obj-y += kstrtox.o
>  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
> -obj-$(CONFIG_TEST_MODULE) += test_module.o
> +obj-$(CONFIG_TEST_LKM) += test_module.o
>  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
>  obj-$(CONFIG_TEST_BPF) += test_bpf.o
>  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
> 


-- 
~Randy

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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-23 16:49 ` Randy Dunlap
@ 2014-09-23 17:10   ` Valentin Rothberg
  2014-09-23 17:11     ` Randy Dunlap
  0 siblings, 1 reply; 10+ messages in thread
From: Valentin Rothberg @ 2014-09-23 17:10 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: akpm, linux-kernel, pebolle

On mar., 2014-09-23 at 09:49 -0700, Randy Dunlap wrote:
> On 09/22/14 23:58, Valentin Rothberg wrote:
> > The "_MODULE" suffix is reserved for tristates compiled as
> > loadable kernel modules (LKM). The "TEST_MODULE" feature thereby
> 
> Is that documented anywhere?

Sadly this is not made explicit, but the Kconfig code documents it. The
following code (./scripts/kconfig/confdata.c) is used to generate the
autoconf.h header file during the build process. When a feature is
selected as a kernel module ('m'), it is suffixed with "_MODULE" to
indicate it. 

»   »   switch (*value) {
»   »   case 'n':
»   »   »   break;
»   »   case 'm':
»   »   »   suffix = "_MODULE";
»   »   »   /* fall through */

> Was this causing some kind of problem or error?  Please tell us what that was if so.

It causes problems for static code analysis, which assumes a consistent
use of the "_MODULE" suffix. 

Another possible change would be to rename the reference in the Makefile
to "TEST_MODULE_MODULE". Personally, I prefer my proposed patch.
> 
> 
> > violates this convention. The feature is used to compile the
> > lib/test_module.c kernel module.
> > 
> > This patch renames the feature and its reference in a Makefile
> > to "TEST_LKM", which still expresses the test of a LKM.
> > 
> > Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
> > ---
> >  lib/Kconfig.debug | 2 +-
> >  lib/Makefile      | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> > index 07c2832..db91c97 100644
> > --- a/lib/Kconfig.debug
> > +++ b/lib/Kconfig.debug
> > @@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
> >  
> >  	  If unsure, say N.
> >  
> > -config TEST_MODULE
> > +config TEST_LKM
> >  	tristate "Test module loading with 'hello world' module"
> >  	default n
> >  	depends on m
> > diff --git a/lib/Makefile b/lib/Makefile
> > index d6b4bc4..382437a 100644
> > --- a/lib/Makefile
> > +++ b/lib/Makefile
> > @@ -31,7 +31,7 @@ obj-y += string_helpers.o
> >  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
> >  obj-y += kstrtox.o
> >  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
> > -obj-$(CONFIG_TEST_MODULE) += test_module.o
> > +obj-$(CONFIG_TEST_LKM) += test_module.o
> >  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
> >  obj-$(CONFIG_TEST_BPF) += test_bpf.o
> >  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
> > 
> 
> 



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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-23 17:10   ` Valentin Rothberg
@ 2014-09-23 17:11     ` Randy Dunlap
  2014-09-23 18:27       ` Valentin Rothberg
  0 siblings, 1 reply; 10+ messages in thread
From: Randy Dunlap @ 2014-09-23 17:11 UTC (permalink / raw)
  To: Valentin Rothberg; +Cc: akpm, linux-kernel, pebolle

On 09/23/14 10:10, Valentin Rothberg wrote:
> On mar., 2014-09-23 at 09:49 -0700, Randy Dunlap wrote:
>> On 09/22/14 23:58, Valentin Rothberg wrote:
>>> The "_MODULE" suffix is reserved for tristates compiled as
>>> loadable kernel modules (LKM). The "TEST_MODULE" feature thereby
>>
>> Is that documented anywhere?
> 
> Sadly this is not made explicit, but the Kconfig code documents it. The
> following code (./scripts/kconfig/confdata.c) is used to generate the
> autoconf.h header file during the build process. When a feature is
> selected as a kernel module ('m'), it is suffixed with "_MODULE" to
> indicate it. 
> 
> »   »   switch (*value) {
> »   »   case 'n':
> »   »   »   break;
> »   »   case 'm':
> »   »   »   suffix = "_MODULE";
> »   »   »   /* fall through */
> 
>> Was this causing some kind of problem or error?  Please tell us what that was if so.
> 
> It causes problems for static code analysis, which assumes a consistent
> use of the "_MODULE" suffix. 
> 
> Another possible change would be to rename the reference in the Makefile
> to "TEST_MODULE_MODULE". Personally, I prefer my proposed patch.

Sure, your patch is fine, but we need to know *why* the patch is needed.

Thanks.

>>
>>
>>> violates this convention. The feature is used to compile the
>>> lib/test_module.c kernel module.
>>>
>>> This patch renames the feature and its reference in a Makefile
>>> to "TEST_LKM", which still expresses the test of a LKM.
>>>
>>> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
>>> ---
>>>  lib/Kconfig.debug | 2 +-
>>>  lib/Makefile      | 2 +-
>>>  2 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
>>> index 07c2832..db91c97 100644
>>> --- a/lib/Kconfig.debug
>>> +++ b/lib/Kconfig.debug
>>> @@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
>>>  
>>>  	  If unsure, say N.
>>>  
>>> -config TEST_MODULE
>>> +config TEST_LKM
>>>  	tristate "Test module loading with 'hello world' module"
>>>  	default n
>>>  	depends on m
>>> diff --git a/lib/Makefile b/lib/Makefile
>>> index d6b4bc4..382437a 100644
>>> --- a/lib/Makefile
>>> +++ b/lib/Makefile
>>> @@ -31,7 +31,7 @@ obj-y += string_helpers.o
>>>  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
>>>  obj-y += kstrtox.o
>>>  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
>>> -obj-$(CONFIG_TEST_MODULE) += test_module.o
>>> +obj-$(CONFIG_TEST_LKM) += test_module.o
>>>  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
>>>  obj-$(CONFIG_TEST_BPF) += test_bpf.o
>>>  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o


-- 
~Randy

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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-23 17:11     ` Randy Dunlap
@ 2014-09-23 18:27       ` Valentin Rothberg
  2014-09-29 20:18         ` Paul Bolle
  0 siblings, 1 reply; 10+ messages in thread
From: Valentin Rothberg @ 2014-09-23 18:27 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: akpm, linux-kernel, pebolle

On mar., 2014-09-23 at 10:11 -0700, Randy Dunlap wrote:
> On 09/23/14 10:10, Valentin Rothberg wrote:
> > On mar., 2014-09-23 at 09:49 -0700, Randy Dunlap wrote:
> >> On 09/22/14 23:58, Valentin Rothberg wrote:
> >>> The "_MODULE" suffix is reserved for tristates compiled as
> >>> loadable kernel modules (LKM). The "TEST_MODULE" feature thereby
> >>
> >> Is that documented anywhere?
> > 
> > Sadly this is not made explicit, but the Kconfig code documents it. The
> > following code (./scripts/kconfig/confdata.c) is used to generate the
> > autoconf.h header file during the build process. When a feature is
> > selected as a kernel module ('m'), it is suffixed with "_MODULE" to
> > indicate it. 
> > 
> > »   »   switch (*value) {
> > »   »   case 'n':
> > »   »   »   break;
> > »   »   case 'm':
> > »   »   »   suffix = "_MODULE";
> > »   »   »   /* fall through */
> > 
> >> Was this causing some kind of problem or error?  Please tell us what that was if so.
> > 
> > It causes problems for static code analysis, which assumes a consistent
> > use of the "_MODULE" suffix. 
> > 
> > Another possible change would be to rename the reference in the Makefile
> > to "TEST_MODULE_MODULE". Personally, I prefer my proposed patch.
> 
> Sure, your patch is fine, but we need to know *why* the patch is needed.

Thank you for pointing that out. I will take care to give more
information in future patches.

Thanks,
 Valentin

> Thanks.
> 
> >>
> >>
> >>> violates this convention. The feature is used to compile the
> >>> lib/test_module.c kernel module.
> >>>
> >>> This patch renames the feature and its reference in a Makefile
> >>> to "TEST_LKM", which still expresses the test of a LKM.
> >>>
> >>> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
> >>> ---
> >>>  lib/Kconfig.debug | 2 +-
> >>>  lib/Makefile      | 2 +-
> >>>  2 files changed, 2 insertions(+), 2 deletions(-)
> >>>
> >>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> >>> index 07c2832..db91c97 100644
> >>> --- a/lib/Kconfig.debug
> >>> +++ b/lib/Kconfig.debug
> >>> @@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
> >>>  
> >>>  	  If unsure, say N.
> >>>  
> >>> -config TEST_MODULE
> >>> +config TEST_LKM
> >>>  	tristate "Test module loading with 'hello world' module"
> >>>  	default n
> >>>  	depends on m
> >>> diff --git a/lib/Makefile b/lib/Makefile
> >>> index d6b4bc4..382437a 100644
> >>> --- a/lib/Makefile
> >>> +++ b/lib/Makefile
> >>> @@ -31,7 +31,7 @@ obj-y += string_helpers.o
> >>>  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
> >>>  obj-y += kstrtox.o
> >>>  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
> >>> -obj-$(CONFIG_TEST_MODULE) += test_module.o
> >>> +obj-$(CONFIG_TEST_LKM) += test_module.o
> >>>  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
> >>>  obj-$(CONFIG_TEST_BPF) += test_bpf.o
> >>>  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
> 
> 



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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-23 18:27       ` Valentin Rothberg
@ 2014-09-29 20:18         ` Paul Bolle
  2014-09-29 20:25           ` Valentin Rothberg
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Bolle @ 2014-09-29 20:18 UTC (permalink / raw)
  To: Valentin Rothberg; +Cc: Kees Cook, Randy Dunlap, akpm, linux-kernel

[Perhaps Kees hasn't seen this yet.]

On Tue, 2014-09-23 at 20:27 +0200, Valentin Rothberg wrote:
> On mar., 2014-09-23 at 10:11 -0700, Randy Dunlap wrote:
> > On 09/23/14 10:10, Valentin Rothberg wrote:
> > > On mar., 2014-09-23 at 09:49 -0700, Randy Dunlap wrote:
> > >> On 09/22/14 23:58, Valentin Rothberg wrote:
> > >>> The "_MODULE" suffix is reserved for tristates compiled as
> > >>> loadable kernel modules (LKM). The "TEST_MODULE" feature thereby
> > >>
> > >> Is that documented anywhere?
> > > 
> > > Sadly this is not made explicit, but the Kconfig code documents it. The
> > > following code (./scripts/kconfig/confdata.c) is used to generate the
> > > autoconf.h header file during the build process. When a feature is
> > > selected as a kernel module ('m'), it is suffixed with "_MODULE" to
> > > indicate it. 
> > > 
> > > »   »   switch (*value) {
> > > »   »   case 'n':
> > > »   »   »   break;
> > > »   »   case 'm':
> > > »   »   »   suffix = "_MODULE";
> > > »   »   »   /* fall through */
> > > 
> > >> Was this causing some kind of problem or error?  Please tell us what that was if so.
> > > 
> > > It causes problems for static code analysis, which assumes a consistent
> > > use of the "_MODULE" suffix. 
> > > 
> > > Another possible change would be to rename the reference in the Makefile
> > > to "TEST_MODULE_MODULE". Personally, I prefer my proposed patch.
> > 
> > Sure, your patch is fine, but we need to know *why* the patch is needed.
> 
> Thank you for pointing that out. I will take care to give more
> information in future patches.
> 
> Thanks,
>  Valentin
> 
> > Thanks.
> > 
> > >>
> > >>
> > >>> violates this convention. The feature is used to compile the
> > >>> lib/test_module.c kernel module.
> > >>>
> > >>> This patch renames the feature and its reference in a Makefile
> > >>> to "TEST_LKM", which still expresses the test of a LKM.

Maybe something like "TEST_MODULE_LOAD"?

> > >>> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
> > >>> ---
> > >>>  lib/Kconfig.debug | 2 +-
> > >>>  lib/Makefile      | 2 +-
> > >>>  2 files changed, 2 insertions(+), 2 deletions(-)
> > >>>
> > >>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> > >>> index 07c2832..db91c97 100644
> > >>> --- a/lib/Kconfig.debug
> > >>> +++ b/lib/Kconfig.debug
> > >>> @@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
> > >>>  
> > >>>  	  If unsure, say N.
> > >>>  
> > >>> -config TEST_MODULE
> > >>> +config TEST_LKM
> > >>>  	tristate "Test module loading with 'hello world' module"
> > >>>  	default n
> > >>>  	depends on m
> > >>> diff --git a/lib/Makefile b/lib/Makefile
> > >>> index d6b4bc4..382437a 100644
> > >>> --- a/lib/Makefile
> > >>> +++ b/lib/Makefile
> > >>> @@ -31,7 +31,7 @@ obj-y += string_helpers.o
> > >>>  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
> > >>>  obj-y += kstrtox.o
> > >>>  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
> > >>> -obj-$(CONFIG_TEST_MODULE) += test_module.o
> > >>> +obj-$(CONFIG_TEST_LKM) += test_module.o

Perhaps we should rename that file likewise?

> > >>>  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
> > >>>  obj-$(CONFIG_TEST_BPF) += test_bpf.o
> > >>>  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o

If something like this gets applied a follow up patch to make the kbuild
system reject Kconfig symbols ending in _MODULE might be nice.


Paul Bolle


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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-29 20:18         ` Paul Bolle
@ 2014-09-29 20:25           ` Valentin Rothberg
  2014-09-29 20:36             ` Paul Bolle
  2014-09-29 21:05             ` Kees Cook
  0 siblings, 2 replies; 10+ messages in thread
From: Valentin Rothberg @ 2014-09-29 20:25 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Kees Cook, Randy Dunlap, akpm, linux-kernel

On Mon, Sep 29, 2014 at 10:18 PM, Paul Bolle <pebolle@tiscali.nl> wrote:
> [Perhaps Kees hasn't seen this yet.]
>
> On Tue, 2014-09-23 at 20:27 +0200, Valentin Rothberg wrote:
>> On mar., 2014-09-23 at 10:11 -0700, Randy Dunlap wrote:
>> > On 09/23/14 10:10, Valentin Rothberg wrote:
>> > > On mar., 2014-09-23 at 09:49 -0700, Randy Dunlap wrote:
>> > >> On 09/22/14 23:58, Valentin Rothberg wrote:
>> > >>> The "_MODULE" suffix is reserved for tristates compiled as
>> > >>> loadable kernel modules (LKM). The "TEST_MODULE" feature thereby
>> > >>
>> > >> Is that documented anywhere?
>> > >
>> > > Sadly this is not made explicit, but the Kconfig code documents it. The
>> > > following code (./scripts/kconfig/confdata.c) is used to generate the
>> > > autoconf.h header file during the build process. When a feature is
>> > > selected as a kernel module ('m'), it is suffixed with "_MODULE" to
>> > > indicate it.
>> > >
>> > > »   »   switch (*value) {
>> > > »   »   case 'n':
>> > > »   »   »   break;
>> > > »   »   case 'm':
>> > > »   »   »   suffix = "_MODULE";
>> > > »   »   »   /* fall through */
>> > >
>> > >> Was this causing some kind of problem or error?  Please tell us what that was if so.
>> > >
>> > > It causes problems for static code analysis, which assumes a consistent
>> > > use of the "_MODULE" suffix.
>> > >
>> > > Another possible change would be to rename the reference in the Makefile
>> > > to "TEST_MODULE_MODULE". Personally, I prefer my proposed patch.
>> >
>> > Sure, your patch is fine, but we need to know *why* the patch is needed.
>>
>> Thank you for pointing that out. I will take care to give more
>> information in future patches.
>>
>> Thanks,
>>  Valentin
>>
>> > Thanks.
>> >
>> > >>
>> > >>
>> > >>> violates this convention. The feature is used to compile the
>> > >>> lib/test_module.c kernel module.
>> > >>>
>> > >>> This patch renames the feature and its reference in a Makefile
>> > >>> to "TEST_LKM", which still expresses the test of a LKM.
>
> Maybe something like "TEST_MODULE_LOAD"?

It has been merged already, see [1]. Sorry, I did not check if you
were in the CC to let you know.

[1] http://ozlabs.org/~akpm/mmotm/broken-out/lib-rename-test_module-to-test_lkm.patch

>
>> > >>> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
>> > >>> ---
>> > >>>  lib/Kconfig.debug | 2 +-
>> > >>>  lib/Makefile      | 2 +-
>> > >>>  2 files changed, 2 insertions(+), 2 deletions(-)
>> > >>>
>> > >>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
>> > >>> index 07c2832..db91c97 100644
>> > >>> --- a/lib/Kconfig.debug
>> > >>> +++ b/lib/Kconfig.debug
>> > >>> @@ -1627,7 +1627,7 @@ config DMA_API_DEBUG
>> > >>>
>> > >>>           If unsure, say N.
>> > >>>
>> > >>> -config TEST_MODULE
>> > >>> +config TEST_LKM
>> > >>>         tristate "Test module loading with 'hello world' module"
>> > >>>         default n
>> > >>>         depends on m
>> > >>> diff --git a/lib/Makefile b/lib/Makefile
>> > >>> index d6b4bc4..382437a 100644
>> > >>> --- a/lib/Makefile
>> > >>> +++ b/lib/Makefile
>> > >>> @@ -31,7 +31,7 @@ obj-y += string_helpers.o
>> > >>>  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
>> > >>>  obj-y += kstrtox.o
>> > >>>  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
>> > >>> -obj-$(CONFIG_TEST_MODULE) += test_module.o
>> > >>> +obj-$(CONFIG_TEST_LKM) += test_module.o
>
> Perhaps we should rename that file likewise?
>
>> > >>>  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
>> > >>>  obj-$(CONFIG_TEST_BPF) += test_bpf.o
>> > >>>  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
>
> If something like this gets applied a follow up patch to make the kbuild
> system reject Kconfig symbols ending in _MODULE might be nice.

That is a very nice idea. Please CC me if you come up with a path.

Thanks,
 Valentin
>
>
> Paul Bolle
>

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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-29 20:25           ` Valentin Rothberg
@ 2014-09-29 20:36             ` Paul Bolle
  2014-09-29 21:02               ` Kees Cook
  2014-09-29 21:05             ` Kees Cook
  1 sibling, 1 reply; 10+ messages in thread
From: Paul Bolle @ 2014-09-29 20:36 UTC (permalink / raw)
  To: Valentin Rothberg; +Cc: Kees Cook, Randy Dunlap, akpm, linux-kernel

On Mon, 2014-09-29 at 22:25 +0200, Valentin Rothberg wrote:
> On Mon, Sep 29, 2014 at 10:18 PM, Paul Bolle <pebolle@tiscali.nl> wrote:
> > Maybe something like "TEST_MODULE_LOAD"?
> 
> It has been merged already, see [1]. Sorry, I did not check if you
> were in the CC to let you know.
> 
> [1] http://ozlabs.org/~akpm/mmotm/broken-out/lib-rename-test_module-to-test_lkm.patch

That didn't hit lkml, did it? Don't know whether mmotm is set in stone
nor whether Kees has strong feelings about the name of this feature. (I
suspect I'm wandering into bicycle shed territory here...).

> > If something like this gets applied a follow up patch to make the kbuild
> > system reject Kconfig symbols ending in _MODULE might be nice.

Will do. But you're free to beat me to it.

Thanks,


Paul Bolle


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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-29 20:36             ` Paul Bolle
@ 2014-09-29 21:02               ` Kees Cook
  0 siblings, 0 replies; 10+ messages in thread
From: Kees Cook @ 2014-09-29 21:02 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Valentin Rothberg, Randy Dunlap, Andrew Morton, LKML

On Mon, Sep 29, 2014 at 1:36 PM, Paul Bolle <pebolle@tiscali.nl> wrote:
> On Mon, 2014-09-29 at 22:25 +0200, Valentin Rothberg wrote:
>> On Mon, Sep 29, 2014 at 10:18 PM, Paul Bolle <pebolle@tiscali.nl> wrote:
>> > Maybe something like "TEST_MODULE_LOAD"?
>>
>> It has been merged already, see [1]. Sorry, I did not check if you
>> were in the CC to let you know.
>>
>> [1] http://ozlabs.org/~akpm/mmotm/broken-out/lib-rename-test_module-to-test_lkm.patch
>
> That didn't hit lkml, did it? Don't know whether mmotm is set in stone
> nor whether Kees has strong feelings about the name of this feature. (I
> suspect I'm wandering into bicycle shed territory here...).

Oooh! Nope, I hadn't seen this thread. Thanks for CCing me!

I have no problem at all with changing the Kconfig name. I prefer
TEST_LKM over TEST_MODULE_MODULE, FWIW. :)

Thanks,

-Kees

-- 
Kees Cook
Chrome OS Security

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

* Re: [PATCH] lib: rename TEST_MODULE to TEST_LKM
  2014-09-29 20:25           ` Valentin Rothberg
  2014-09-29 20:36             ` Paul Bolle
@ 2014-09-29 21:05             ` Kees Cook
  1 sibling, 0 replies; 10+ messages in thread
From: Kees Cook @ 2014-09-29 21:05 UTC (permalink / raw)
  To: Valentin Rothberg; +Cc: Paul Bolle, Randy Dunlap, Andrew Morton, LKML

On Mon, Sep 29, 2014 at 1:25 PM, Valentin Rothberg
<valentinrothberg@gmail.com> wrote:
> It has been merged already, see [1]. Sorry, I did not check if you
> were in the CC to let you know.

If it helps, I tend to use scripts/get_maintainer.pl when sending
patches. It's a nice way to see who touched the same areas your patch
touches, as well as doing all the filename and patch matching from the
items listed in MAINTAINERS.

-Kees

-- 
Kees Cook
Chrome OS Security

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

end of thread, other threads:[~2014-09-29 21:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-23  6:58 [PATCH] lib: rename TEST_MODULE to TEST_LKM Valentin Rothberg
2014-09-23 16:49 ` Randy Dunlap
2014-09-23 17:10   ` Valentin Rothberg
2014-09-23 17:11     ` Randy Dunlap
2014-09-23 18:27       ` Valentin Rothberg
2014-09-29 20:18         ` Paul Bolle
2014-09-29 20:25           ` Valentin Rothberg
2014-09-29 20:36             ` Paul Bolle
2014-09-29 21:02               ` Kees Cook
2014-09-29 21:05             ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.