public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH ?] ACPI: pr->id is unsigned
@ 2008-09-16  1:32 roel kluin
  2008-09-15 20:26 ` Valdis.Kletnieks
  0 siblings, 1 reply; 5+ messages in thread
From: roel kluin @ 2008-09-16  1:32 UTC (permalink / raw)
  To: ak, lenb, linux-acpi, linux-kernel

since pr->id is unsigned, shouldn't something like
the patch below be applied?

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index e36422a..75c0f76 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -667,7 +667,7 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
 		return 0;
 	}
 
-	BUG_ON((pr->id >= nr_cpu_ids) || (pr->id < 0));
+	BUG_ON((pr->id >= nr_cpu_ids) || ((unsigned long)pr->id < 0));
 
 	/*
 	 * Buggy BIOS check

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

end of thread, other threads:[~2008-09-17  7:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16  1:32 [PATCH ?] ACPI: pr->id is unsigned roel kluin
2008-09-15 20:26 ` Valdis.Kletnieks
2008-09-16  8:45   ` Thomas Renninger
2008-09-17  2:48     ` roel kluin
2008-09-17  7:34       ` Thomas Renninger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox