lkml.org 
[lkml]   [2024]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ethernet: cpts: fix function pointer cast warnings
From
Date
Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Tue, 13 Feb 2024 11:16:34 +0100 you wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> clang-16 warns about the mismatched prototypes for the devm_* callbacks:
>
> drivers/net/ethernet/ti/cpts.c:691:12: error: cast from 'void (*)(struct clk_hw *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
> 691 | (void(*)(void *))clk_hw_unregister_mux,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/device.h:406:34: note: expanded from macro 'devm_add_action_or_reset'
> 406 | __devm_add_action_or_reset(dev, action, data, #action)
> | ^~~~~~
> drivers/net/ethernet/ti/cpts.c:703:12: error: cast from 'void (*)(struct device_node *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
> 703 | (void(*)(void *))of_clk_del_provider,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/device.h:406:34: note: expanded from macro 'devm_add_action_or_reset'
> 406 | __devm_add_action_or_reset(dev, action, data, #action)
>
> [...]

Here is the summary with links:
- ethernet: cpts: fix function pointer cast warnings
https://git.kernel.org/netdev/net/c/9b23fceb4158

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



\
 
 \ /
  Last update: 2024-05-27 15:02    [W:0.250 / U:0.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site