Hello, > Rather than casting void(*)(struct clk *) to void (*)(void *), that > forces conversion to an incompatible function type, replace the cast > with a small local stub function with a signature that matches what > the devm_add_action_or_reset() function expects. > > The sub function takes a void *, then passes it directly to > clk_disable_unprepare(), which handles the more specific type. > > Reported by clang when building with warnings enabled: > > drivers/pci/controller/dwc/pci-meson.c:191:6: warning: cast from 'void (*)(struct clk *)' to 'void (*)(void *)' converts to incompatible function type [-Wcast-function-type-strict] > (void (*) (void *))clk_disable_unprepare, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > No functional changes are intended. Applied to controller/remove-void-cast, thank you everyone! [01/03] PCI: meson: Remove cast between incompatible function type https://git.kernel.org/pci/pci/c/60fce60ab7b6 [02/03] PCI: keembay: Remove cast between incompatible function type https://git.kernel.org/pci/pci/c/43a2eef7cbba [03/03] PCI: microchip: Remove cast between incompatible function type https://git.kernel.org/pci/pci/c/9e4811ce626f Krzysztof