Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))

2000-09-03 Thread Arjan van de Ven
> 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, tog

Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))

2000-09-02 Thread Chip Salzenberg
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.

Re: 2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))

2000-09-02 Thread 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) That should fix it > Below is the patch I used to get AGP to compile, but I don't recommend > it for ad

2.2.18pre2: gcc 2.7 doesn't like __attr__((unused))

2000-09-01 Thread Chip Salzenberg
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 --- driver