Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))
> Arjan is looking at making __setup from 2.4 work on 2.4 at the same time > as I am trying to clean up all the duplicated 2.4 compat code in drivers. > The end goal is that most 2.4 code will work in 2.2, which means I can > sensibly encourage vendors to develop directly to the 2.4 API This, together with fixes for most other things, can be found at http://www.fenrus.demon.nl/2.2.18/compile.diff Greetings, Arjan van de Ven - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))
Arjan is looking at making __setup from 2.4 work on 2.4 at the same time as I am trying to clean up all the duplicated 2.4 compat code in drivers. The end goal is that most 2.4 code will work in 2.2, which means I can sensibly encourage vendors to develop directly to the 2.4 API This, together with fixes for most other things, can be found at http://www.fenrus.demon.nl/2.2.18/compile.diff Greetings, Arjan van de Ven - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))
According to Alan Cox: > > I'm not sure if __attribute__((unused)) has an equivalent in gcc 2.7, > > but as it appears in the AGP driver, it doesn't work with gcc 2.7. > > Try static void __attribute((unused)) unused(void) I'm afraid that didn't work either. -- Chip Salzenberg - a.k.a. - <[EMAIL PROTECTED]> "I wanted to play hopscotch with the impenetrable mystery of existence, but he stepped in a wormhole and had to go in early." // MST3K - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))
According to Alan Cox: I'm not sure if __attribute__((unused)) has an equivalent in gcc 2.7, but as it appears in the AGP driver, it doesn't work with gcc 2.7. Try static void __attribute((unused)) unused(void) I'm afraid that didn't work either. -- Chip Salzenberg - a.k.a. - [EMAIL PROTECTED] "I wanted to play hopscotch with the impenetrable mystery of existence, but he stepped in a wormhole and had to go in early." // MST3K - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))
I'm not sure if __attribute__((unused)) has an equivalent in gcc 2.7, but as it appears in the AGP driver, it doesn't work with gcc 2.7. Below is the patch I used to get AGP to compile, but I don't recommend it for adoption in the standard source tree. Index: drivers/char/drm/ffb_drv.c --- drivers/char/drm/ffb_drv.c.prev +++ drivers/char/drm/ffb_drv.c Fri Sep 1 21:21:08 2000 @@ -16,5 +16,5 @@ #include -static __attribute__((unused)) void unused(void) +static void unused(void) { agp_enable(0); Index: drivers/char/drm/gamma_drv.c --- drivers/char/drm/gamma_drv.c.prev +++ drivers/char/drm/gamma_drv.cFri Sep 1 21:21:03 2000 @@ -36,5 +36,5 @@ #include -static __attribute__((unused)) void unused(void) +static void unused(void) { agp_enable(0); Index: drivers/char/drm/i810_drv.c --- drivers/char/drm/i810_drv.c.prev +++ drivers/char/drm/i810_drv.c Fri Sep 1 21:20:58 2000 @@ -36,5 +36,5 @@ #include -static __attribute__((unused)) void unused(void) +static void unused(void) { agp_enable(0); Index: drivers/char/drm/mga_drv.c --- drivers/char/drm/mga_drv.c.prev +++ drivers/char/drm/mga_drv.c Fri Sep 1 21:20:52 2000 @@ -37,5 +37,5 @@ #include -static __attribute__((unused)) void unused(void) +static void unused(void) { agp_enable(0); Index: drivers/char/drm/r128_drv.c --- drivers/char/drm/r128_drv.c.prev +++ drivers/char/drm/r128_drv.c Fri Sep 1 21:20:40 2000 @@ -36,5 +36,5 @@ #include -static __attribute__((unused)) void unused(void) +static void unused(void) { agp_enable(0); Index: drivers/char/drm/tdfx_drv.c --- drivers/char/drm/tdfx_drv.c.prev +++ drivers/char/drm/tdfx_drv.c Fri Sep 1 21:20:47 2000 @@ -37,5 +37,5 @@ #include -static __attribute__((unused)) void unused(void) +static void unused(void) { agp_enable(0); -- Chip Salzenberg - a.k.a. - <[EMAIL PROTECTED]> "I wanted to play hopscotch with the impenetrable mystery of existence, but he stepped in a wormhole and had to go in early." // MST3K - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/