From: Al Viro Date: Sun, 16 Oct 2005 07:17:33 +0000 (-0700) Subject: [PATCH]: highest_possible_processor_id() has to be a macro X-Git-Tag: v2.6.14-rc5~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688ce17b8599abc548b406c00e4d18ae0dec954f;p=pandora-kernel.git [PATCH]: highest_possible_processor_id() has to be a macro ... otherwise, things like alpha and sparc64 break and break badly. They define cpu_possible_map to something else in smp.h *AFTER* having included cpumask.h. If that puppy is a macro, expansion will happen at the actual caller, when we'd already seen #define cpu_possible_map ... and we will get the right thing used. As an inline helper it will be tokenized before we get to that define and that's it; no matter what we define later, it won't affect anything. We get modules with dependency on cpu_possible_map instead of the right symbol (phys_cpu_present_map in case of sparc64), or outright link errors if they are built-in. Signed-off-by: Al Viro Signed-off-by: David S. Miller --- Reading git-diff-tree failed