diff options
author | Tiwei Bie <tiwei.btw@antgroup.com> | 2024-03-06 18:19:17 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-04-22 21:43:03 +0200 |
commit | 53471c574974a3df4a5705b1db431d69058cc6d9 (patch) | |
tree | 51cb41a305c0956d79f766aee32673dd5dcb81d1 /arch/x86/um | |
parent | 31a5990ed253a66712d7ddc29c92d297a991fdf2 (diff) |
um: Make local functions and variables static
This will also fix the warnings like:
warning: no previous prototype for ‘fork_handler’ [-Wmissing-prototypes]
140 | void fork_handler(void)
| ^~~~~~~~~~~~
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um')
-rw-r--r-- | arch/x86/um/os-Linux/registers.c | 2 | ||||
-rw-r--r-- | arch/x86/um/tls_32.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/um/os-Linux/registers.c b/arch/x86/um/os-Linux/registers.c index df8f4b4bf98b..f3638dd09cec 100644 --- a/arch/x86/um/os-Linux/registers.c +++ b/arch/x86/um/os-Linux/registers.c @@ -17,7 +17,7 @@ #include <linux/elf.h> #include <registers.h> -int have_xstate_support; +static int have_xstate_support; int save_i387_registers(int pid, unsigned long *fp_regs) { diff --git a/arch/x86/um/tls_32.c b/arch/x86/um/tls_32.c index 66162eafd8e8..ba40b1b8e179 100644 --- a/arch/x86/um/tls_32.c +++ b/arch/x86/um/tls_32.c @@ -20,7 +20,7 @@ static int host_supports_tls = -1; int host_gdt_entry_tls_min; -int do_set_thread_area(struct user_desc *info) +static int do_set_thread_area(struct user_desc *info) { int ret; u32 cpu; |