• Tiwei Bie's avatar
    um: Fix -Wmissing-prototypes warnings for text_poke* · 19cf7915
    Tiwei Bie authored
    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: default avatarTiwei Bie <tiwei.btw@antgroup.com>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    19cf7915
um_arch.c 12.3 KB