* what is the value of the macro "__setup_param"?
@ 2007-08-24 9:19 Robert P. J. Day
2007-08-24 9:37 ` Adrian Bunk
2007-08-24 9:50 ` Paul Mundt
0 siblings, 2 replies; 8+ messages in thread
From: Robert P. J. Day @ 2007-08-24 9:19 UTC (permalink / raw)
To: Linux Kernel Mailing List
perhaps i'm missing it, but it seems that the macro __setup_param is
entirely superfluous:
$ grep -rw __setup_param *
include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
include/linux/init.h: __setup_param(str, fn, fn, 0)
include/linux/init.h: __setup_param(str, fn, fn, 1)
include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
$
or am i must misreading something badly?
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 9:37 ` Adrian Bunk
@ 2007-08-24 9:32 ` Robert P. J. Day
0 siblings, 0 replies; 8+ messages in thread
From: Robert P. J. Day @ 2007-08-24 9:32 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Linux Kernel Mailing List
On Fri, 24 Aug 2007, Adrian Bunk wrote:
> On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote:
> >
> > perhaps i'm missing it, but it seems that the macro __setup_param is
> > entirely superfluous:
> >
> > $ grep -rw __setup_param *
> > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
> > include/linux/init.h: __setup_param(str, fn, fn, 0)
> > include/linux/init.h: __setup_param(str, fn, fn, 1)
> > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
> > $
> >
> > or am i must misreading something badly?
>
> You miss that the inner 3 lines of your grep result are the usages...
i need more sleep.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 9:19 what is the value of the macro "__setup_param"? Robert P. J. Day
@ 2007-08-24 9:37 ` Adrian Bunk
2007-08-24 9:32 ` Robert P. J. Day
2007-08-24 9:50 ` Paul Mundt
1 sibling, 1 reply; 8+ messages in thread
From: Adrian Bunk @ 2007-08-24 9:37 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List
On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote:
>
> perhaps i'm missing it, but it seems that the macro __setup_param is
> entirely superfluous:
>
> $ grep -rw __setup_param *
> include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
> include/linux/init.h: __setup_param(str, fn, fn, 0)
> include/linux/init.h: __setup_param(str, fn, fn, 1)
> include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
> $
>
> or am i must misreading something badly?
You miss that the inner 3 lines of your grep result are the usages...
> rday
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 9:50 ` Paul Mundt
@ 2007-08-24 9:49 ` Robert P. J. Day
2007-08-24 10:02 ` Paul Mundt
0 siblings, 1 reply; 8+ messages in thread
From: Robert P. J. Day @ 2007-08-24 9:49 UTC (permalink / raw)
To: Paul Mundt; +Cc: Linux Kernel Mailing List
On Fri, 24 Aug 2007, Paul Mundt wrote:
> On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote:
> >
> > perhaps i'm missing it, but it seems that the macro __setup_param is
> > entirely superfluous:
> >
> > $ grep -rw __setup_param *
> > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
> > include/linux/init.h: __setup_param(str, fn, fn, 0)
> > include/linux/init.h: __setup_param(str, fn, fn, 1)
> > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
> > $
> >
> > or am i must misreading something badly?
> Superfluous how? It does different things depending on whether
> MODULE is defined or not. It's a good indicator of how often people
> use __setup_param() from module context though, given the complete
> mismatch of parameters. It's probably worth fixing that up at least.
never mind, i've already clued in. up too long, and trying to do too
many things at once. more sleep or more coffee -- time to make a
decision. sorry for the noise.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 9:19 what is the value of the macro "__setup_param"? Robert P. J. Day
2007-08-24 9:37 ` Adrian Bunk
@ 2007-08-24 9:50 ` Paul Mundt
2007-08-24 9:49 ` Robert P. J. Day
1 sibling, 1 reply; 8+ messages in thread
From: Paul Mundt @ 2007-08-24 9:50 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List
On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote:
>
> perhaps i'm missing it, but it seems that the macro __setup_param is
> entirely superfluous:
>
> $ grep -rw __setup_param *
> include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
> include/linux/init.h: __setup_param(str, fn, fn, 0)
> include/linux/init.h: __setup_param(str, fn, fn, 1)
> include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
> $
>
> or am i must misreading something badly?
>
Superfluous how? It does different things depending on whether MODULE is
defined or not. It's a good indicator of how often people use
__setup_param() from module context though, given the complete mismatch
of parameters. It's probably worth fixing that up at least.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 10:02 ` Paul Mundt
@ 2007-08-24 10:01 ` Robert P. J. Day
2007-08-24 11:29 ` Satyam Sharma
1 sibling, 0 replies; 8+ messages in thread
From: Robert P. J. Day @ 2007-08-24 10:01 UTC (permalink / raw)
To: Paul Mundt; +Cc: Linux Kernel Mailing List
On Fri, 24 Aug 2007, Paul Mundt wrote:
> On Fri, Aug 24, 2007 at 05:49:42AM -0400, Robert P. J. Day wrote:
> > On Fri, 24 Aug 2007, Paul Mundt wrote:
> >
> > > On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote:
> > > >
> > > > perhaps i'm missing it, but it seems that the macro __setup_param is
> > > > entirely superfluous:
> > > >
> > > > $ grep -rw __setup_param *
> > > > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > > > include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
> > > > include/linux/init.h: __setup_param(str, fn, fn, 0)
> > > > include/linux/init.h: __setup_param(str, fn, fn, 1)
> > > > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
> > > > $
> > > >
> > > > or am i must misreading something badly?
> >
> > > Superfluous how? It does different things depending on whether
> > > MODULE is defined or not. It's a good indicator of how often people
> > > use __setup_param() from module context though, given the complete
> > > mismatch of parameters. It's probably worth fixing that up at least.
> >
> > never mind, i've already clued in. up too long, and trying to do too
> > many things at once. more sleep or more coffee -- time to make a
> > decision. sorry for the noise.
> >
> That's great, but you've ignored the second part of my mail. I'll
> summarize:
>
> > > > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > > > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
>
> Notice the problem now? :-)
oh, certainly. i'm just thinking that, in my condition, i shouldn't
be allowed to submit patches or operate heavy machinery at the moment.
:-)
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 9:49 ` Robert P. J. Day
@ 2007-08-24 10:02 ` Paul Mundt
2007-08-24 10:01 ` Robert P. J. Day
2007-08-24 11:29 ` Satyam Sharma
0 siblings, 2 replies; 8+ messages in thread
From: Paul Mundt @ 2007-08-24 10:02 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List
On Fri, Aug 24, 2007 at 05:49:42AM -0400, Robert P. J. Day wrote:
> On Fri, 24 Aug 2007, Paul Mundt wrote:
>
> > On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote:
> > >
> > > perhaps i'm missing it, but it seems that the macro __setup_param is
> > > entirely superfluous:
> > >
> > > $ grep -rw __setup_param *
> > > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > > include/linux/init.h: __setup_param(str, unique_id, NULL, 0)
> > > include/linux/init.h: __setup_param(str, fn, fn, 0)
> > > include/linux/init.h: __setup_param(str, fn, fn, 1)
> > > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
> > > $
> > >
> > > or am i must misreading something badly?
>
> > Superfluous how? It does different things depending on whether
> > MODULE is defined or not. It's a good indicator of how often people
> > use __setup_param() from module context though, given the complete
> > mismatch of parameters. It's probably worth fixing that up at least.
>
> never mind, i've already clued in. up too long, and trying to do too
> many things at once. more sleep or more coffee -- time to make a
> decision. sorry for the noise.
>
That's great, but you've ignored the second part of my mail. I'll
summarize:
> > > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
Notice the problem now? :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: what is the value of the macro "__setup_param"?
2007-08-24 10:02 ` Paul Mundt
2007-08-24 10:01 ` Robert P. J. Day
@ 2007-08-24 11:29 ` Satyam Sharma
1 sibling, 0 replies; 8+ messages in thread
From: Satyam Sharma @ 2007-08-24 11:29 UTC (permalink / raw)
To: Paul Mundt; +Cc: Robert P. J. Day, Linux Kernel Mailing List
On Fri, 24 Aug 2007, Paul Mundt wrote:
>
> > > > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \
> > > > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */
>
> Notice the problem now? :-)
We should probably keep it that way. I don't see why anybody should be
using __setup_param directly anyway, so this becomes a nice build-time
error to flag such errant usage :-)
Seriously speaking, though, we should probably just get rid of that
wrong line. It's just an init.h-internal macro to be used by early_param
and __setup, and because those are themselves empty when MODULE, there's
no issues in removing the (unused, broken) __setup_param either.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-08-24 11:16 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-24 9:19 what is the value of the macro "__setup_param"? Robert P. J. Day
2007-08-24 9:37 ` Adrian Bunk
2007-08-24 9:32 ` Robert P. J. Day
2007-08-24 9:50 ` Paul Mundt
2007-08-24 9:49 ` Robert P. J. Day
2007-08-24 10:02 ` Paul Mundt
2007-08-24 10:01 ` Robert P. J. Day
2007-08-24 11:29 ` Satyam Sharma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox