um: Fix the -Wmissing-prototypes warning for get_thread_reg

[ Upstream commit 3144013e48 ]

The get_thread_reg function is defined in the user code, and is
called by the kernel code. It should be declared in a shared header.

Fixes: dbba7f704a ("um: stop polluting the namespace with registers.h contents")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Tiwei Bie 2024-04-23 20:58:54 +08:00 • committed by Greg Kroah-Hartman
commit 68bc383a75
2 changed files with 7 additions and 1 deletions