]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ti: fix wkup_m3_rproc_boot_thread return type
authorArnd Bergmann <arnd@arndb.de>
Fri, 5 Nov 2021 07:51:12 +0000 (08:51 +0100)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Nov 2021 17:01:51 +0000 (11:01 -0600)
commit1f3f0caec040dcac0edb05ac59ae12a37d4fae6e
tree141623bd265666efe5e37c3849192cc97ec592e2
parenta2a2dd8f85de0c294c1e57c44bd32d3c0225e69f
soc: ti: fix wkup_m3_rproc_boot_thread return type

The wkup_m3_rproc_boot_thread() function uses a nonstandard prototype,
which broke after Eric's recent cleanup:

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)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~

Change it to the normal prototype as it should have been from the
start.

Fixes: efab275cf887 ("exit/kthread: Have kernel threads return instead of calling do_exit")
Fixes: 5a00856c4e16 ("soc: ti: Add wkup_m3_ipc driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lkml.kernel.org/r/20211105075119.2327190-1-arnd@kernel.org
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
drivers/soc/ti/wkup_m3_ipc.c