lkml.org 
[lkml]   [2000]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: linux-2.2.18-pre19 asm/delay.h problem?
    Date

    alan@lxorguk.ukuu.org.uk said:
    > > |> Can't we change that to :
    > > |> #error "Udelay..."
    > >
    > > No.
    >
    > ?? I think I'm missing something here.
    > preprocessor stuff is done too early for this

    We were talking about

    #if 0
    /* Don't turn this on, fix your code instead */

    void __bad_udelay(int c)
    {
    #error you broke it. read the damn comment
    }
    #endif

    ... so that when people search the tree for __bad_udelay they find this,
    and if they're silly enough to change the 0 to a 1 then it'll still break.

    --
    dwmw2


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 12:47    [W:4.078 / U:0.112 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site