From: Guenter Roeck Date: Tue, 28 Sep 2010 01:01:49 +0000 (-0700) Subject: hwmon (coretemp): Fix build breakage if SMP is undefined X-Git-Tag: v2.6.36-rc6~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fff2017354a3a9906862aabbf2a1cae5b4330e40;p=platform%2Fkernel%2Flinux-3.10.git hwmon (coretemp): Fix build breakage if SMP is undefined 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 Tested-by: Ingo Molnar Signed-off-by: Guenter Roeck Cc: Fenghua Yu --- diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index baa842a..a23b17a 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -36,6 +36,7 @@ #include #include #include +#include #define DRVNAME "coretemp"