aboutsummaryrefslogtreecommitdiff
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorGravatar Tiwei Bie <tiwei.btw@antgroup.com> 2024-03-06 18:19:24 +0800
committerGravatar Richard Weinberger <richard@nod.at> 2024-04-22 21:58:48 +0200
commit19cf79157309ea3834caf9ef442722f776b93814 (patch)
tree121cb5f48d74abe08dd7b2d6cea2f8e16fd55087 /arch/um/kernel
parentum: Move declarations to proper headers (diff)
downloadlinux-19cf79157309ea3834caf9ef442722f776b93814.tar.gz
linux-19cf79157309ea3834caf9ef442722f776b93814.tar.bz2
linux-19cf79157309ea3834caf9ef442722f776b93814.zip
um: Fix -Wmissing-prototypes warnings for text_poke*
The prototypes for text_poke* are declared in asm/text-patching.h under arch/x86/include/. It's safe to include this header, as it's UML-aware (by checking CONFIG_UML_X86). This will address below -Wmissing-prototypes warnings: arch/um/kernel/um_arch.c:461:7: warning: no previous prototype for ‘text_poke’ [-Wmissing-prototypes] arch/um/kernel/um_arch.c:473:6: warning: no previous prototype for ‘text_poke_sync’ [-Wmissing-prototypes] Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/um_arch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index 7a9820797eae..e95f805e5004 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -23,6 +23,7 @@
#include <asm/cpufeature.h>
#include <asm/sections.h>
#include <asm/setup.h>
+#include <asm/text-patching.h>
#include <as-layout.h>
#include <arch.h>
#include <init.h>