Skip to content

Commit fff2017

Browse files
author
Guenter Roeck
committed
hwmon (coretemp): Fix build breakage if SMP is undefined
Commit e40cc4b 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>
1 parent 56162ba commit fff2017

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/coretemp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <linux/pci.h>
3737
#include <asm/msr.h>
3838
#include <asm/processor.h>
39+
#include <asm/smp.h>
3940

4041
#define DRVNAME "coretemp"
4142

0 commit comments

Comments
 (0)