diff options
| author | Simon Horman <[email protected]> | 2023-05-10 12:32:17 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2023-06-05 08:43:45 +0000 |
| commit | 7ebfd881abe9e0ea9557b29dab6aa28d294fabb4 (patch) | |
| tree | a9c4a675610af36b66e50209181c5774ee397cc6 /net/nsh/nsh.c | |
| parent | i2c: img-scb: Fix spelling mistake "innacurate" -> "inaccurate" (diff) | |
| download | kernel-7ebfd881abe9e0ea9557b29dab6aa28d294fabb4.tar.gz kernel-7ebfd881abe9e0ea9557b29dab6aa28d294fabb4.zip | |
i2c: mchp-pci1xxxx: Avoid cast to incompatible function type
Rather than casting pci1xxxx_i2c_shutdown to an incompatible function type,
update the type to match that expected by __devm_add_action.
Reported by clang-16 with W-1:
.../i2c-mchp-pci1xxxx.c:1159:29: error: cast from 'void (*)(struct pci1xxxx_i2c *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
ret = devm_add_action(dev, (void (*)(void *))pci1xxxx_i2c_shutdown, i2c);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/device.h:251:29: note: expanded from macro 'devm_add_action'
__devm_add_action(release, action, data, #action)
^~~~~~
No functional change intended.
Compile tested only.
Signed-off-by: Simon Horman <[email protected]>
Reviewed-by: Horatiu Vultur <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Reviewed-by: Tharun Kumar P<[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
