From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760499Ab0I1BZ7 (ORCPT ); Mon, 27 Sep 2010 21:25:59 -0400 Received: from imr4.ericy.com ([198.24.6.8]:32930 "EHLO imr4.ericy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756865Ab0I1BZ4 (ORCPT ); Mon, 27 Sep 2010 21:25:56 -0400 From: Guenter Roeck To: torvalds@linux-foundation.org CC: linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Pekka Enberg , Ingo Molnar , Fenghua Yu , Jean Delvare , Guenter Roeck Subject: [PATCH v3] hwmon (coretemp): Fix build breakage if SMP is undefined Date: Mon, 27 Sep 2010 18:32:32 -0700 Message-ID: <1285637552-1058-1-git-send-email-guenter.roeck@ericsson.com> X-Mailer: git-send-email 1.7.0.87.g0901d MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit e40cc4bdfd4b89813f072f72bd9c7055814d3f0f introduced a build breakage if CONFIG_SMP is undefined. This commit fixes the problem. Signed-off-by: Guenter Roeck Cc: Fenghua Yu --- v2: Fix compile warning due to unused variable i if SMP is undefined v3: include asm/smp.h instead of using ifdef CONFIG_SMP drivers/hwmon/coretemp.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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" -- 1.7.0.87.g0901d