aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-10-26 17:05:23 +0100
committerBjorn Andersson <[email protected]>2020-10-26 15:44:18 -0500
commit2316822989a33308e8a428d495e89f767b367c01 (patch)
treeffb5469b15e8d86363807ebf5f47ec2f7a764883 /net/switchdev/switchdev.c
parent2b0ced1203c2da02ee9fe9f1f8becf834a6bff8b (diff)
remoteproc: ti_k3: fix -Wcast-function-type warning
The function cast causes a warning with "make W=1" drivers/remoteproc/ti_k3_r5_remoteproc.c: In function 'k3_r5_probe': drivers/remoteproc/ti_k3_r5_remoteproc.c:1368:12: warning: cast between incompatible function types from 'int (*)(struct platform_device *)' to 'void (*)(void *)' [-Wcast-function-type] Rewrite the code to avoid the cast, and fix the incorrect return type of the callback. Fixes: 6dedbd1d5443 ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions