Skip to contentSkip to conversation

ACPI: unsigned cannot be less than 0.

PATCH Applied Roel Kluin 2 participants 2 messages Mar 1, 2009 – Mar 16, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 ACPI: unsigned cannot be less than 0.

include/linux/pci-acpi.h:74:
typedef u32 acpi_status;
------------------------------>8-------------8<--------------------------------- result is unsigned, so an error returned by acpi_bus_register_driver() will not be noticed.

---

drivers/platform/x86/wmi.c +1 -1
index 8a8b377..2f269e1 100644
@@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acpi_device *device)
 
 static int __init acpi_wmi_init(void)
 {
-	acpi_status result;
+	int result;
 
 	INIT_LIST_HEAD(&wmi_blocks.list);
 
reviewer Applied
#1 lore raw

applied
thanks,
Len Brown, Intel Open Source Technology Center

Quoted 26 lines · Roel Kluin

include/linux/pci-acpi.h:74:
typedef u32 acpi_status;
------------------------------>8-------------8<--------------------------------- result is unsigned, so an error returned by acpi_bus_register_driver() will not be noticed.

---

drivers/platform/x86/wmi.c +1 -2
index 8a8b377..2f269e1 100644
@@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acpi_device *device)
 
 static int __init acpi_wmi_init(void)
 {
-	acpi_status result;
+	int result;
 
 	INIT_LIST_HEAD(&wmi_blocks.list);
 
--

To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html