[lkml]   [2003]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: compile problems on PPC for 2.6.0-test4
    On Sat, 2003-09-06 at 06:09, Dale Harris wrote:
    > This is a PowerBook G4, debian unstable, gcc-2.95.4
    > A couple of compile warnings errors:
    > CC drivers/macintosh/via-pmu.o
    > drivers/macintosh/via-pmu.c: In function `powerbook_sleep_grackle':
    > drivers/macintosh/via-pmu.c:2465: warning: integer overflow in expression
    > drivers/macintosh/via-pmu.c: In function `powerbook_sleep_Core99':
    > drivers/macintosh/via-pmu.c:2557: warning: integer overflow in expression

    It's barking on mdelay(5000) which is a debug thing (when you pass
    'fake_sleep' to the kernel, it will stop 5 seconds in there then wakeup
    instead of letting the PMU shut the CPU down, it's useful for debugging
    driver sleep code.

    It shoud not be failing on this though:

    #define mdelay(n) (\
    (__builtin_constant_p(n) && (n)<=MAX_UDELAY_MS) ? udelay((n)*1000) : \
    ({unsigned long __ms=(n); while (__ms--) udelay(1000);}))

    The __builtin_constant_p(5000) && (5000)<=5 test should fail thus
    turning into a loop of udelay(1000). Your gcc seems to be screwing
    it up. What version are you using ?

    > CC drivers/net/sungem.o
    > drivers/net/sungem.c:2444: duplicate initializer
    > drivers/net/sungem.c:2444: (near initialization for
    > `gem_ethtool_ops.get_link')
    > make[3]: *** [drivers/net/sungem.o] Error 1
    > make[2]: *** [drivers/net] Error 2
    > make[1]: *** [drivers] Error 2
    > make[1]: Leaving directory `/usr/src/linuxppc-2.6'

    The current bk snapshot I have here doesn't have a problem at this line.
    > Also the planb video 4 linux driver doesn't seem to be compiling either.
    > I failed to save the error messages.

    I'll check that out, thanks.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:48    [W:0.022 / U:31.240 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site