]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
hwmon (coretemp): Fix build breakage if SMP is undefined
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 28 Sep 2010 01:01:49 +0000 (18:01 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 28 Sep 2010 11:18:51 +0000 (04:18 -0700)
Commit e40cc4bdfd4b89813f072f72bd9c7055814d3f0f introduced
a build breakage if CONFIG_SMP is undefined. This commit
fixes the problem.

This fix is only a workaround. For a real fix, cpu_sibling_mask() should
be defined in UP include code, eg in linux/smp.h, and asm/smp.h should not be
included directly. This fix is currently not possible because asm/smp.h defines
cpu_sibling_mask() unconditionally and is included directly from many source
files.

Reported-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
drivers/hwmon/coretemp.c

index baa842a80b4bdec0088231a5a6466b12a4812131..a23b17a78ace8f42cb114b30f593b9019a24a982 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/pci.h>
 #include <asm/msr.h>
 #include <asm/processor.h>
+#include <asm/smp.h>
 
 #define DRVNAME        "coretemp"