Re: drivers/soc/apple/sart.c:190:38: warning: cast from 'void (*)(struct device *)' to 'void (*)(void *)' converts to incompatible function type

From: Sven Peter
Date: Fri Nov 04 2022 - 08:10:29 EST


On Fri, Nov 4, 2022, at 09:14, Arnd Bergmann wrote:
> On Fri, Nov 4, 2022, at 09:01, kernel test robot wrote:
>>
>> If you fix the issue, kindly add following tag where applicable
>> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> Thanks for the report!
>
>>>> drivers/soc/apple/sart.c:190:38: warning: cast from 'void (*)(struct device *)' to 'void (*)(void *)' converts to incompatible function type [-Wcast-function-type-strict]
>>
>> ret = devm_add_action_or_reset(dev, (void (*)(void *))put_device,
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Sven, can you send a patch to add the missing helper function that calls
> put_device?

Sure, I'll send a patch tonight.


Sven