2.6 bug: kconfig implementation doesn't match the spec

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 08/08/03

  • Next message: Marcelo Tosatti: "Re: 2.4.22-pre lockups (now decoded oops for pre10)"
    Date:	Fri, 8 Aug 2003 16:51:08 +0200
    To: Roman Zippel <zippel@linux-m68k.org>
    
    

    Hi Roman,

    the implementation of the !-operator doesn't match the spec in
    Documentation/kbuild/kconfig-language.txt

    kconfig-language.txt says:

    <-- snip -->

    ...
               '!' <expr> (5)
    ...
    (5) Returns the result of (2-/expr/).
    ...
    An expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2
    respectively for calculations). A menu entry becomes visible when it's
    expression evaluates to 'm' or 'y'.
    ...

    <-- snip -->

    The current implementation evaluates !m to 0 instead of 1.

    An example:

    config FOO
            tristate
            default m

    config BAR
            tristate
            default y if !FOO
            default n

    According to the kconfig spec BAR should be y, but the implementation in
    2.6.0-mm5 sets BAR to n.

    BTW:
    The semantics of the implemention seems to be a bit less surprising
    than the semantics of the spec.

    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
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Marcelo Tosatti: "Re: 2.4.22-pre lockups (now decoded oops for pre10)"

    Relevant Pages

    • Re: NEWBIE: Direct or indirect access to "frame"d webpage
      ... with dimensions in the program's title bar. ... (True for Mozilla 1.7; not tested in Firefox) ... HTML 4.01 spec: http://www.w3.org/TR/html401/ ... validator: http://jigsaw.w3.org/css-validator/ ...
      (comp.infosystems.www.authoring.html)
    • Re: 2.6.23-rc2-mm1
      ... (wrongly because its checking I/O bits ... on a BAR which are ignored according to the spec) ... The controller is disabled and when disabled it seems to think its ...
      (Linux-Kernel)
    • Re: [openib-general] InfiniBand incompatible with the Linux kernel?
      ... use of spec is only granted for NON-COMMERCIAL use ... let's look at the membership agreement for IBTA: ... Key note: The point is made repeatedly that there are no patent grants ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Real-time problem due to IO congestion.
      ... On Fri, Jun 10 2005, Takashi Ikebe wrote: ... > phenomena is spec or bug. ... high prio allocaters queueing io. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: weather stations - cheapo options
      ... I just love this in the spec - "* Weather forecast with symbols, sunny, ... easily cloudily, cloudily, rain, strong rain, snow." ... Santa would have had to pay more. ...
      (uk.sci.weather)