Messages in this thread | | | Subject | Re: [PATCH] ethernet: cpts: fix function pointer cast warnings | From | patchwork-bot+netdevbpf@kernel ... | Date | Wed, 14 Feb 2024 13:00:27 +0000 |
| |
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
| |