public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* problem in drivers/block/Config.in
@ 2001-03-30 20:17 Herbert Rosmanith
  2001-03-30 20:50 ` Tim Waugh
  2001-03-31 14:00 ` problem in drivers/block/Config.in (PATCH) Pozsar Balazs
  0 siblings, 2 replies; 4+ messages in thread
From: Herbert Rosmanith @ 2001-03-30 20:17 UTC (permalink / raw)
  To: linux-kernel


hi,

I noticed that the option CONFIG_PARIDE_PARPORT will always be "y",
even if CONFIG_PARIDE_PARPORT="n". I checked with kernels 2.2.18
and 2.2.19.

the file responsible is "drivers/block/Config.in", around line 126.
it reads:

# PARIDE doesn't need PARPORT, but if PARPORT is configured as a module,
# PARIDE must also be a module.  The bogus CONFIG_PARIDE_PARPORT option
# controls the choices given to the user ...

if [ "$CONFIG_PARPORT" = "y" -o "$CONFIG_PARPORT" = "n" ] ; then
   define_bool CONFIG_PARIDE_PARPORT y
else
   define_bool CONFIG_PARIDE_PARPORT m
fi

so, as you can see, CONFIG_PARIDE_PARPORT will be set to "yes" even
if CONFIG_PARPORT="no".

why not simply write:

	define_bool CONFIG_PARIDE_PARPORT $CONFIG_PARPORT

instead?

regards,
herbert rosmanith
herp@wildsau.idv.uni-linz.ac.at


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

* Re: problem in drivers/block/Config.in
  2001-03-30 20:17 problem in drivers/block/Config.in Herbert Rosmanith
@ 2001-03-30 20:50 ` Tim Waugh
  2001-03-31 14:00 ` problem in drivers/block/Config.in (PATCH) Pozsar Balazs
  1 sibling, 0 replies; 4+ messages in thread
From: Tim Waugh @ 2001-03-30 20:50 UTC (permalink / raw)
  To: Herbert Rosmanith; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

On Fri, Mar 30, 2001 at 10:17:08PM +0200, Herbert Rosmanith wrote:

> why not simply write:
> 
> 	define_bool CONFIG_PARIDE_PARPORT $CONFIG_PARPORT
> 
> instead?

Because it isn't that simple.  PARIDE works with parport, or without
parport, but if parport is a module then PARIDE must be configured as
modules too.

I'm planning on changing that in the next development cycle so that
PARIDE just depends on parport and that's it.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: problem in drivers/block/Config.in (PATCH)
  2001-03-30 20:17 problem in drivers/block/Config.in Herbert Rosmanith
  2001-03-30 20:50 ` Tim Waugh
@ 2001-03-31 14:00 ` Pozsar Balazs
  2001-04-01 21:10   ` Tim Waugh
  1 sibling, 1 reply; 4+ messages in thread
From: Pozsar Balazs @ 2001-03-31 14:00 UTC (permalink / raw)
  To: Herbert Rosmanith; +Cc: linux-kernel

On Fri, Mar 30, 2001 at 10:17:08PM +0200, Herbert Rosmanith wrote:
> 
> hi,
> 
> I noticed that the option CONFIG_PARIDE_PARPORT will always be "y",
> even if CONFIG_PARIDE_PARPORT="n". I checked with kernels 2.2.18
> and 2.2.19.
> 
> the file responsible is "drivers/block/Config.in", around line 126.
> it reads:
> 
> # PARIDE doesn't need PARPORT, but if PARPORT is configured as a module,
> # PARIDE must also be a module.  The bogus CONFIG_PARIDE_PARPORT option
> # controls the choices given to the user ...
> 
> if [ "$CONFIG_PARPORT" = "y" -o "$CONFIG_PARPORT" = "n" ] ; then
>    define_bool CONFIG_PARIDE_PARPORT y
> else
>    define_bool CONFIG_PARIDE_PARPORT m
> fi
> 
> so, as you can see, CONFIG_PARIDE_PARPORT will be set to "yes" even
> if CONFIG_PARPORT="no".
> 
> why not simply write:
> 
> 	define_bool CONFIG_PARIDE_PARPORT $CONFIG_PARPORT
> 
> instead?

In fact, if we want to get what is said in the comment, we should write:

if [ "$CONFIG_PARPORT" = "m" -a "$CONFIG_PARIDE_PARPORT" = "y" ] ; then
   define_bool CONFIG_PARIDE_PARPORT m
fi

regards,
Balazs Pozsar.

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

* Re: problem in drivers/block/Config.in (PATCH)
  2001-03-31 14:00 ` problem in drivers/block/Config.in (PATCH) Pozsar Balazs
@ 2001-04-01 21:10   ` Tim Waugh
  0 siblings, 0 replies; 4+ messages in thread
From: Tim Waugh @ 2001-04-01 21:10 UTC (permalink / raw)
  To: Herbert Rosmanith, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

On Sat, Mar 31, 2001 at 04:00:27PM +0200, Pozsar Balazs wrote:

> On Fri, Mar 30, 2001 at 10:17:08PM +0200, Herbert Rosmanith wrote:
> In fact, if we want to get what is said in the comment, we should write:
> 
> if [ "$CONFIG_PARPORT" = "m" -a "$CONFIG_PARIDE_PARPORT" = "y" ] ; then
>    define_bool CONFIG_PARIDE_PARPORT m
> fi

But the condition is never satisfied.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2001-04-01 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-30 20:17 problem in drivers/block/Config.in Herbert Rosmanith
2001-03-30 20:50 ` Tim Waugh
2001-03-31 14:00 ` problem in drivers/block/Config.in (PATCH) Pozsar Balazs
2001-04-01 21:10   ` Tim Waugh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox