Chen, Justin | 10 Sep 01:22
Picon
Favicon

[PATCH] acpiphp: Match the variable types for ia64

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 */
 };

Gmane