Re: Cleanup of dvb frontend driver header files

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

 



On Wed, 4 Mar 2009 11:36:26 +0100
Matthias Schwarzott <zzam@xxxxxxxxxx> wrote:

> Hi there!
> 
> While having a look at lnbp21.h I have seen it includes <linux/dvb/frontend.h> 
> without needing it. (There are only pointers referring to struct 
> dvb_frontend).
> 
> So I had a look at the whole directory.
> # cd linux/drivers/media/dvb/frontends
> # grep -l linux/dvb/frontend.h *.h|wc -l
> 47
> 
> So 47 header files include this header and seem not to need it.
> At least removing this line still allows me to compile the full set of v4l-dvb 
> drivers.
> # sed -e '/linux\/dvb\/frontend/s-^-// -' -i *.h
> 
> Some of these files use more headers the same way like dvb_frontend.h, 
> firmware.h or i2c.h
> 
> Is this kind of cleanup appreciated, or should the includes be kept even if 
> they are not really needed for pointers to structs like dvb_frontend.

This kind of cleanup is appreciated, since it reduces the compilation time of
the kernel. Some care should be taken, however, since a few headers are
required on other architectures, or may be needed, depending on the enabled
CONFIG options.

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux