Chen, Justin | 12 Sep 19:03
Picon
Favicon

RE: [PATCH] acpiphp: Match the variable types for ia64

>-----Original Message-----
>
>>                 slot->device = device;
>> -               slot->sun = sun;
>> +               slot->sun = (u64) sun;
>
>No ... the right thing to do here is make the local variable
>'sun' a u64.  adr ought to be a u32, not an unsigned long.
>
>--

If I understand your concern right, you want to change the local variable 'sun' in the routine
register_slot() in the file acpiphp_glue.c from unsigned long to u64.  If that's the case, it will
introduce the other issue that since the 'sun' is passed as the argument 4 of the routine
acpi_evaluate_integer() and it is taking the unsigned long, what's the point to define 'sun' in u64?

Justin

Gmane