lkml.org 
[lkml]   [2023]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 16/20] x86: vdso: include vdso/processor.h
    Date
    From: Arnd Bergmann <arnd@arndb.de>

    __vdso_getcpu is declared in a header but this is not included
    before the definition, causing a W=1 warning:

    arch/x86/entry/vdso/vgetcpu.c:13:1: error: no previous prototype for '__vdso_getcpu' [-Werror=missing-prototypes]
    arch/x86/entry/vdso/vdso32/../vgetcpu.c:13:1: error: no previous prototype for '__vdso_getcpu' [-Werror=missing-prototypes]

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    ---
    arch/x86/entry/vdso/vgetcpu.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/x86/entry/vdso/vgetcpu.c b/arch/x86/entry/vdso/vgetcpu.c
    index 0a9007c24056..e4640306b2e3 100644
    --- a/arch/x86/entry/vdso/vgetcpu.c
    +++ b/arch/x86/entry/vdso/vgetcpu.c
    @@ -8,6 +8,7 @@
    #include <linux/kernel.h>
    #include <linux/getcpu.h>
    #include <asm/segment.h>
    +#include <vdso/processor.h>

    notrace long
    __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-05-16 21:40    [W:2.679 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site