From: Tiwei Bie Date: Wed, 6 Mar 2024 10:19:24 +0000 (+0800) Subject: um: Fix -Wmissing-prototypes warnings for text_poke* X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=19cf79157309ea3834caf9ef442722f776b93814;p=linux.git 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 Signed-off-by: Richard Weinberger --- diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 7a9820797eae2..e95f805e5004e 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include