public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Circular include dependencies
@ 2008-05-23 13:20 Russell King
  2008-05-24  1:17 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2008-05-23 13:20 UTC (permalink / raw)
  To: Linux Kernel List

Hi,

Having discovered some circular include dependencies in the ARM header
files which were causing build issues, I created a script to walk ARM
includes and report any similar issues found - which includes traversing
any referenced linux/ includes.

It identified the following two in include/linux/:

  linux/mmzone.h <- linux/memory_hotplug.h <- linux/mmzone.h
  linux/mmzone.h <- linux/topology.h <- linux/mmzone.h

Checking them by hand reveals that these are real.  Whether they're
capable of causing a problem or not, I'm not going to comment on.
However, they're not a good idea and someone should probably look at
resolving the loops.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-26 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 13:20 [RFC] Circular include dependencies Russell King
2008-05-24  1:17 ` Andrew Morton
2008-05-26 13:10   ` Yasunori Goto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox