[PATCH] x86/vdso: provide prototype of __vdso_getcpu()
From: Dmitry Antipov
Date: Wed May 31 2023 - 05:16:44 EST
Include asm/vdso/processor.h to fix the following 'make LLVM=1 W=1'
warning:
arch/x86/entry/vdso/vgetcpu.c:13:1: error: no previous prototype for
function '__vdso_getcpu' [-Werror,-Wmissing-prototypes]
__vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
^
Signed-off-by: Dmitriy Antipov <Dmitriy.Antipov@xxxxxxxxxxxx>
---
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..66edca964a9a 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 <asm/vdso/processor.h>
notrace long
__vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
--
2.40.1