On Sat, May 31, 2008 at 11:44 PM, Ben Hutchings <bhutchings@solarflare.com> wrote:Hi again :) As I said in my previous e-mail, having #includes in the middle of headers is nasty. This kind of dependency is really subtle and makes later modification much harder. (Actually, it hurts readability as well.) The standard way to do this seems to be: asm/topology.h should define ARCH_HAS_* macros if it wishes to override the defaults linux/topology.h should #include asm/topology.h at the top of the file linux/topology.h should define the generic functions/macros only if the ARCH_HAS_* macros are undefined Other files wishing to use these definitions should then include linux/topology.h. Or is that unfeasible in this case? Vegard -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036 --
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| David Miller | Slow DOWN, please!!! |
| Masami Hiramatsu | Re: [RFC PATCH v4] Unified trace buffer |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Parag Warudkar | Re: 2.6.29-rc3: tg3 dead after resume |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
