On Sat, Apr 17, 2004 at 11:08:24PM +0200, Jean Delvare wrote: > Hi Arthur, > > > From scripts/checkincludes.pl: > > > > ./drivers/i2c/busses/i2c-piix4.c: linux/config.h is included more > > than once. > > > > Against 2.6.5. Thanks. > > > > > > --- a/drivers/i2c/busses/i2c-piix4.c 2004-04-11 14:05:35.000000000 +0200 > > +++ b/drivers/i2c/busses/i2c-piix4.c 2004-04-16 17:52:16.000000000 +0200 > > @@ -31,7 +31,6 @@ > > #include <linux/config.h> > > #include <linux/module.h> > > #include <linux/moduleparam.h> > > -#include <linux/config.h> > > #include <linux/pci.h> > > #include <linux/kernel.h> > > #include <linux/stddef.h> > > Actually there are more problems than just this one: > > 1* scx200_acb.c, scx200_i2c.c and i2c-keywest.c also include version.h > twice. I sent separate patches for these three to <wingel at nano-system.com> (scx200_{acb,i2c}.c) and <benh at kernel.crashing.org> (i2c-keywest.c) (Cc: <trivial at rustcorp.com.au>), but ... > 2* Most i2c bus drivers do not need to include it at all. Greg, I guess > this is a leftover from the old debugging scheme? > > 3* Same goes for most (all?) i2c chip drivers, and core i2c drivers too: > they include config.h but don't seem to need it. > > If would probably be better to solve all these problems at once. I think > we should get rid of all useless includes. Greg, can you confirm? > > Rusty, I think you can leave this one to Greg and I, we'll handle it. .. it's good to know you'll be looking more closely at these :) > > Thanks. > > -- > Jean Delvare > http://www.ensicaen.ismra.fr/~delvare/