soc: ti: wkup_m3_ipc: Fix return type error in wkup_m3_rproc_boot_thread()
PATCH 1/1 soc: ti: wkup_m3_ipc: Fix return type error in wkup_m3_rproc_boot_thread()
This function should not return a value:
drivers/soc/ti/wkup_m3_ipc.c: In function 'wkup_m3_rproc_boot_thread':drivers/soc/ti/wkup_m3_ipc.c:429:16: error: 'return' with a value, in function returning void [-Werror=return-type]
429 | return 0;
| ^drivers/soc/ti/wkup_m3_ipc.c:416:13: note: declared here
416 | static void wkup_m3_rproc_boot_thread(struct wkup_m3_ipc *m3_ipc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--- drivers/soc/ti/wkup_m3_ipc.c | 2 -- 1 file changed, 2 deletions(-)
drivers/soc/ti/wkup_m3_ipc.c +0 -2
@@ -425,8 +425,6 @@ static void wkup_m3_rproc_boot_thread(struct wkup_m3_ipc *m3_ipc)dev_err (dev,"rproc_boot failed\n" ); else m3_ipc_state = m3_ipc; - -return 0 ; }static int wkup_m3_ipc_probe (struct platform_device *pdev)
base-commit: ac4fdfaf4792d41ad7b24d1c8ab486aeb7ccd495
Signature · 7 lines
2.34.0.rc0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 10 lines · Nathan Chancellor
This function should not return a value:
drivers/soc/ti/wkup_m3_ipc.c: In function 'wkup_m3_rproc_boot_thread':drivers/soc/ti/wkup_m3_ipc.c:429:16: error: 'return' with a value, in function returning void [-Werror=return-type]
429 | return 0;
| ^drivers/soc/ti/wkup_m3_ipc.c:416:13: note: declared here
416 | static voidwkup_m3_rproc_boot_thread(struct wkup_m3_ipc *m3_ipc)| ^~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
Apologies for not replying to this sooner. I did not realize at first that this was in response to one of my changes.
Arnd also reported this and included a correct fix please see:
https://lkml.kernel.org/r/[email protected]
Thank you,
Eric
Quoted 22 lines
Fixes 111e70490d2a ("exit/kthread: Have kernel threads return instead of calling do_exit")Signed-off-by Nathan Chancellor <[email protected]>--- drivers/soc/ti/wkup_m3_ipc.c | 2 -- 1 file changed, 2 deletions(-)drivers/soc/ti/wkup_m3_ipc.c +0
-2@@ -425,8 +425,6 @@ static void wkup_m3_rproc_boot_thread(struct wkup_m3_ipc *m3_ipc)dev_err (dev,"rproc_boot failed\n" ); else m3_ipc_state = m3_ipc; - -return 0 ; }static int wkup_m3_ipc_probe (struct platform_device *pdev)base-commit:
ac4fdfaf4792d41ad7b24d1c8ab486aeb7ccd495