* [PATCH] Remove superfluous definition of __setup_null_param() macro.
@ 2007-08-24 10:14 Robert P. J. Day
2007-08-24 15:36 ` Satyam Sharma
0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2007-08-24 10:14 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Andrew Morton
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
---
since i apparently removed the final remaining reference to this
macro in commit f4895925976977aaeda26ee2a603a99f17db500b (thanks,
adrian), there seems to be little value in keeping this definition
around.
$ grep -rw __setup_null_param *
include/linux/init.h:#define __setup_null_param(str, unique_id) \
include/linux/init.h:#define __setup_null_param(str, unique_id) /* nothing */
$
diff --git a/include/linux/init.h b/include/linux/init.h
index 74b1f43..2e4d3e0 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -165,9 +165,6 @@ struct obs_kernel_param {
__attribute__((aligned((sizeof(long))))) \
= { __setup_str_##unique_id, fn, early }
-#define __setup_null_param(str, unique_id) \
- __setup_param(str, unique_id, NULL, 0)
-
#define __setup(str, fn) \
__setup_param(str, fn, fn, 0)
@@ -234,7 +231,6 @@ void __init parse_early_param(void);
void cleanup_module(void) __attribute__((alias(#exitfn)));
#define __setup_param(str, unique_id, fn) /* nothing */
-#define __setup_null_param(str, unique_id) /* nothing */
#define __setup(str, func) /* nothing */
#endif
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Remove superfluous definition of __setup_null_param() macro.
2007-08-24 10:14 [PATCH] Remove superfluous definition of __setup_null_param() macro Robert P. J. Day
@ 2007-08-24 15:36 ` Satyam Sharma
2007-08-24 15:32 ` Robert P. J. Day
0 siblings, 1 reply; 3+ messages in thread
From: Satyam Sharma @ 2007-08-24 15:36 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Andrew Morton, Paul Mundt
On Fri, 24 Aug 2007, Robert P. J. Day wrote:
>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
>
> ---
>
> since i apparently removed the final remaining reference to this
> macro in commit f4895925976977aaeda26ee2a603a99f17db500b (thanks,
> adrian), there seems to be little value in keeping this definition
> around.
How about ...
[PATCH] Remove superfluous definition of __setup_null_param() macro and broken (for MODULE) __setup_param()
From: Robert P. J. Day <rpjday@mindspring.com>
Remove superfluous definition of __setup_null_param() macro, as nobody
uses it anymore.
Also kill the #ifdef-MODULE-case (empty) definition for __setup_param.
It is only required for the !MODULE case, as __setup() is empty for
the MODULE case already. Also, no user outside init.h must use
__setup_null_param directly anyway (and nobody does), so it's not
something whose empty definition we necessarily need to make available
to rest of the kernel. Moreover, this MODULE case of __setup_param has
been broken for more than two years now -- as far back as git history
takes us. Let's get rid of it.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Satyam Sharma <satyam@infradead.org>
---
include/linux/init.h | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/include/linux/init.h b/include/linux/init.h
index 74b1f43..93b2ca5 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -165,9 +165,6 @@ struct obs_kernel_param {
__attribute__((aligned((sizeof(long))))) \
= { __setup_str_##unique_id, fn, early }
-#define __setup_null_param(str, unique_id) \
- __setup_param(str, unique_id, NULL, 0)
-
#define __setup(str, fn) \
__setup_param(str, fn, fn, 0)
@@ -233,8 +230,6 @@ void __init parse_early_param(void);
{ return exitfn; } \
void cleanup_module(void) __attribute__((alias(#exitfn)));
-#define __setup_param(str, unique_id, fn) /* nothing */
-#define __setup_null_param(str, unique_id) /* nothing */
#define __setup(str, func) /* nothing */
#endif
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Remove superfluous definition of __setup_null_param() macro.
2007-08-24 15:36 ` Satyam Sharma
@ 2007-08-24 15:32 ` Robert P. J. Day
0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-08-24 15:32 UTC (permalink / raw)
To: Satyam Sharma; +Cc: Linux Kernel Mailing List, Andrew Morton, Paul Mundt
On Fri, 24 Aug 2007, Satyam Sharma wrote:
>
>
> On Fri, 24 Aug 2007, Robert P. J. Day wrote:
> >
> > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> >
> > ---
> >
> > since i apparently removed the final remaining reference to this
> > macro in commit f4895925976977aaeda26ee2a603a99f17db500b (thanks,
> > adrian), there seems to be little value in keeping this definition
> > around.
>
> How about ...
>
>
> [PATCH] Remove superfluous definition of __setup_null_param() macro and broken (for MODULE) __setup_param()
sure. if no one has any objections, i have no problem with that.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-24 15:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-24 10:14 [PATCH] Remove superfluous definition of __setup_null_param() macro Robert P. J. Day
2007-08-24 15:36 ` Satyam Sharma
2007-08-24 15:32 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®