10 Sep 01:22
[PATCH] acpiphp: Match the variable types for ia64
From: Chen, Justin <justin.chen <at> hp.com>
Subject: [PATCH] acpiphp: Match the variable types for ia64
Newsgroups: gmane.linux.kernel.pci
Date: 2008-09-09 23:22:45 GMT
Subject: [PATCH] acpiphp: Match the variable types for ia64
Newsgroups: gmane.linux.kernel.pci
Date: 2008-09-09 23:22:45 GMT
The variable "sun" defined in acpiphp_glue.c as "unsigned long". But the struct acpiphp_slot defines the
sun as u32 in acpiphp.h.
On the ia64, since the "unsigned long" is u64, the above mismatch may cause the problem if the _SUN returns
the value in 64 bits.
The following patch change the definition in acpiphp.h to match the type of sun with other places.
Singed-off-by: Justin Chen <justin.chen <at> hp.com>
=========================================================================
--- a/drivers/pci/hotplug/acpiphp.h 2008-01-26 15:31:18.000000000 -0800
+++ b/drivers/pci/hotplug/acpiphp.h 2008-09-03 16:05:10.610000000 -0700
@@ -112,7 +112,7 @@ struct acpiphp_slot {
u8 device; /* pci device# */
- u32 sun; /* ACPI _SUN (slot unique number) */
+ unsigned long sun; /* ACPI _SUN (slot unique number) */
u32 slotno; /* slot number relative to bridge */
u32 flags; /* see below */
};
It has a couple of conflicts with other pathces
in my queue, and when i sift through those
(friday), it will appear in my public test tree.
thanks,
-Len
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at
RSS Feed