summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ibmpowernv.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2015-04-08 21:02:47 -0700
committerGuenter Roeck <linux@roeck-us.net>2015-04-08 21:03:39 -0700
commit8416915c16d4335980c5d5d6d39957adbfe40b55 (patch)
treedb23df730f4e178e4dc0f000491868d433056ad2 /drivers/hwmon/ibmpowernv.c
parente76ea26142821894bf78b0b311c8f7aceff0aa9b (diff)
downloadlinux-8416915c16d4335980c5d5d6d39957adbfe40b55.tar.bz2
hwmon: (ibmpowernv) Fix build error seen for some configurations
Fix drivers/hwmon/ibmpowernv.c: In function 'get_logical_cpu': drivers/hwmon/ibmpowernv.c:121:3: error: implicit declaration of function 'get_hard_smp_processor_id' seen for some configurations, possibly if SMP is not configured. Fixes: 3df2f59f0aae ("hwmon: (ibmpowernv) pretty print labels") Cc: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ibmpowernv.c')
-rw-r--r--drivers/hwmon/ibmpowernv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c
index 7108daf056b0..4255514b2c72 100644
--- a/drivers/hwmon/ibmpowernv.c
+++ b/drivers/hwmon/ibmpowernv.c
@@ -31,6 +31,7 @@
#include <asm/opal.h>
#include <linux/err.h>
#include <asm/cputhreads.h>
+#include <asm/smp.h>
#define MAX_ATTR_LEN 32
#define MAX_LABEL_LEN 64