[TRIVIAL 2.6] drivers/i2c/busses/i2c-piix4.c: kill duplicate #include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
> 
> 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?

Probably.

> 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?

Yes, but be careful of includes that are needed by other arches to build
properly.  Sometimes it's hard to find those.

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux