um: Fix the -Wmissing-prototypes warning for get_thread_reg
authorTiwei Bie <tiwei.btw@antgroup.com>
Tue, 23 Apr 2024 12:58:54 +0000 (20:58 +0800)
committerRichard Weinberger <richard@nod.at>
Tue, 30 Apr 2024 12:15:17 +0000 (14:15 +0200)
commit3144013e48f4f6e5127223c4ebc488016815dedb
tree95b88b5e10fdd81dc2a5e94f1e1585c331afc560
parent2cbade17b18c0f0fd9963f26c9fc9b057eb1cb3a
um: Fix the -Wmissing-prototypes warning for get_thread_reg

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: dbba7f704aa0 ("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>
arch/um/include/asm/processor-generic.h
arch/x86/um/shared/sysdep/archsetjmp.h