Skip to content

Commit 19cf791

Browse files
btw616richardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent a4b4382 commit 19cf791

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/um/kernel/um_arch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <asm/cpufeature.h>
2424
#include <asm/sections.h>
2525
#include <asm/setup.h>
26+
#include <asm/text-patching.h>
2627
#include <as-layout.h>
2728
#include <arch.h>
2829
#include <init.h>

0 commit comments

Comments
 (0)