]> www.infradead.org Git - users/hch/xfs.git/commit
um: Fix -Wmissing-prototypes warnings for text_poke*
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 6 Mar 2024 10:19:24 +0000 (18:19 +0800)
committerRichard Weinberger <richard@nod.at>
Mon, 22 Apr 2024 19:58:48 +0000 (21:58 +0200)
commit19cf79157309ea3834caf9ef442722f776b93814
tree121cb5f48d74abe08dd7b2d6cea2f8e16fd55087
parenta4b4382f3e83bb4fa4a421e6cf5a5ef987658475
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>
arch/um/kernel/um_arch.c