summaryrefslogtreecommitdiff
path: root/arch/um/os-Linux/internal.h
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2024-04-23 20:58:56 +0800
committerRichard Weinberger <richard@nod.at>2024-04-30 14:16:44 +0200
commit847d3abc6aeda1266192d4236e6a766cdf04eb0f (patch)
tree61eaceabc294d1b3d606e8f0d3f189f6da271891 /arch/um/os-Linux/internal.h
parent6a85e34c4d07d2ec0c153067baff338ac0db55ca (diff)
downloadlinux-847d3abc6aeda1266192d4236e6a766cdf04eb0f.tar.gz
linux-847d3abc6aeda1266192d4236e6a766cdf04eb0f.tar.bz2
linux-847d3abc6aeda1266192d4236e6a766cdf04eb0f.zip
um: Add an internal header shared among the user code
Move relevant declarations to this header. This will address below -Wmissing-prototypes warnings: arch/um/os-Linux/elf_aux.c:26:13: warning: no previous prototype for ‘scan_elf_aux’ [-Wmissing-prototypes] arch/um/os-Linux/mem.c:213:13: warning: no previous prototype for ‘check_tmpexec’ [-Wmissing-prototypes] arch/um/os-Linux/skas/process.c:107:6: warning: no previous prototype for ‘wait_stub_done’ [-Wmissing-prototypes] Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux/internal.h')
-rw-r--r--arch/um/os-Linux/internal.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/um/os-Linux/internal.h b/arch/um/os-Linux/internal.h
new file mode 100644
index 000000000000..317fca190c2b
--- /dev/null
+++ b/arch/um/os-Linux/internal.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __UM_OS_LINUX_INTERNAL_H
+#define __UM_OS_LINUX_INTERNAL_H
+
+/*
+ * elf_aux.c
+ */
+void scan_elf_aux(char **envp);
+
+/*
+ * mem.c
+ */
+void check_tmpexec(void);
+
+/*
+ * skas/process.c
+ */
+void wait_stub_done(int pid);
+
+#endif /* __UM_OS_LINUX_INTERNAL_H */