All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if SMP
@ 2010-09-27 11:59 ` Guenter Roeck
  0 siblings, 0 replies; 22+ messages in thread
From: Guenter Roeck @ 2010-09-27 11:59 UTC (permalink / raw)
  To: linux-kernel, lm-sensors, Ingo Molnar, torvalds
  Cc: Fenghua Yu, Jean Delvare, Guenter Roeck

Commit e40cc4bdfd4b89813f072f72bd9c7055814d3f0f introduced
a build breakage if CONFIG_SMP is undefined. This commit
fixes the problem.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
v2: Fix compile warning due to unused variable i if SMP is undefined.

 drivers/hwmon/coretemp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index baa842a..138fe29 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -492,7 +492,9 @@ exit:
 static void coretemp_device_remove(unsigned int cpu)
 {
 	struct pdev_entry *p;
+#ifdef CONFIG_SMP
 	unsigned int i;
+#endif
 
 	mutex_lock(&pdev_list_mutex);
 	list_for_each_entry(p, &pdev_list, list) {
@@ -503,9 +505,11 @@ static void coretemp_device_remove(unsigned int cpu)
 		list_del(&p->list);
 		mutex_unlock(&pdev_list_mutex);
 		kfree(p);
+#ifdef CONFIG_SMP
 		for_each_cpu(i, cpu_sibling_mask(cpu))
 			if (i != cpu && !coretemp_device_add(i))
 				break;
+#endif
 		return;
 	}
 	mutex_unlock(&pdev_list_mutex);
-- 
1.7.0.87.g0901d


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2010-09-28  1:13 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 11:59 [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if SMP Guenter Roeck
2010-09-27 11:59 ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck
2010-09-27 12:59 ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Ingo Molnar
2010-09-27 12:59   ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Ingo Molnar
2010-09-27 13:02   ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Pekka Enberg
2010-09-27 13:02     ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Pekka Enberg
2010-09-27 23:27     ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Guenter Roeck
2010-09-27 23:27       ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck
2010-09-27 23:44       ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Linus Torvalds
2010-09-27 23:44         ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Linus Torvalds
2010-09-28  0:07         ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Guenter Roeck
2010-09-28  0:07           ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck
2010-09-28  0:26         ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Guenter Roeck
2010-09-28  0:26           ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck
2010-09-28  1:00           ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Linus Torvalds
2010-09-28  1:00             ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Linus Torvalds
2010-09-28  1:12             ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Guenter Roeck
2010-09-28  1:12               ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck
2010-09-27 13:15   ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Guenter Roeck
2010-09-27 13:15     ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck
2010-09-27 14:40   ` [lm-sensors] [PATCH v2] hwmon (coretemp): Fix build breakage if Guenter Roeck
2010-09-27 14:40     ` [PATCH v2] hwmon (coretemp): Fix build breakage if SMP is undefined Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.