소스 검색

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>
Guenter Roeck 10 년 전
부모
커밋
8416915c16
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/hwmon/ibmpowernv.c

+ 1 - 0
drivers/hwmon/ibmpowernv.c

@@ -31,6 +31,7 @@
 #include <asm/opal.h>
 #include <asm/opal.h>
 #include <linux/err.h>
 #include <linux/err.h>
 #include <asm/cputhreads.h>
 #include <asm/cputhreads.h>
+#include <asm/smp.h>
 
 
 #define MAX_ATTR_LEN	32
 #define MAX_ATTR_LEN	32
 #define MAX_LABEL_LEN	64
 #define MAX_LABEL_LEN	64