<div>Hello,</div><div><br></div><div>I have been through many kernel header files and have found that kernel header </div><div>files at many places don't include other header files which they have</div><div>dependency upon.</div>
<div><br></div><div>For example:</div><div><linux/amba/bus.h> uses struct device and struct resource and it doesn't</div><div>include <linux/device.h> and <linux/resource.h> header files.</div><div><br>
</div><div>Now, whenever i try to include bus.h, i have to include device.h and resource.h.</div><div><br></div><div>Is this correct approach?</div><div><br></div><div>Again, if i include device.h and resource.h, they must be included before bus.h.</div>
<div>Now this will disturb the alphabetical ordering of including header files</div><div>sometimes. (not in this example)</div><div><br></div><div>Any idea behind this philosophy.</div><div><br></div><div><br></div><div>regards,</div>
<div>viresh kumar</div><div>ST Microelectronics</div><div>India.</div>