[PATCH] x86/vdso: provide prototype of __vdso_getcpu()

Dmitry Antipov posted 1 patch 2 years, 8 months ago
arch/x86/entry/vdso/vgetcpu.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] x86/vdso: provide prototype of __vdso_getcpu()
Posted by Dmitry Antipov 2 years, 8 months ago
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@softline.com>
---
 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