Re: [patch linux-next] ipmi: remove voidp casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My apologies... As you said, i think (void *) is necessary here to
convert (unsigned long) to pointer. Please ignore the patch. Should we
still keep (void *) if we have had a pointer in place of (unsigned
long)?

Thanks,
Mahesh

On Fri, Mar 5, 2010 at 1:49 AM, Julia Lawall <julia@xxxxxxx> wrote:
> On Fri, 5 Mar 2010, Mahesh Kalappattil wrote:
>
>> This trivial patch removes the (void *) conversion as per the kernel
>> janitor TODO list.
>
> Does that work if the original type is not a pointer type (unsigned long
> here)?
>
> julia
>
>> Signed-off-by: Mahesh Kalappattil <mahesh.lkml@xxxxxxxxx>
>>
>> --- linux-2.6.33/drivers/char/ipmi/ipmi_si_intf.c
>> +++ linux-2.6.33/drivers/char/ipmi/ipmi_si_intf.c
>> @@ -2483,11 +2483,11 @@ static int __devexit ipmi_of_remove(stru
>>  static struct of_device_id ipmi_match[] =
>>  {
>>         { .type = "ipmi", .compatible = "ipmi-kcs",
>> -         .data = (void *)(unsigned long) SI_KCS },
>> +         .data = (unsigned long) SI_KCS },
>>         { .type = "ipmi", .compatible = "ipmi-smic",
>> -         .data = (void *)(unsigned long) SI_SMIC },
>> +         .data = (unsigned long) SI_SMIC },
>>         { .type = "ipmi", .compatible = "ipmi-bt",
>> -         .data = (void *)(unsigned long) SI_BT },
>> +         .data = (unsigned long) SI_BT },
>>         {},
>>  };
>> --
>> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux