Skip to contentSkip to conversation

x86/vdso: Provide missing include file

PATCH Applied Valdis Klētnieks 2 participants 2 messages Dec 6, 2019 – Dec 29, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/vdso: Provide missing include file

When building with C=1, sparse issues a warning:

CHECK arch/x86/entry/vdso/vdso32-setup.c
arch/x86/entry/vdso/vdso32-setup.c:28:28: warning: symbol 'vdso32_enabled' was not declared. Should it be static?

Provide the missing header file.

arch/x86/entry/vdso/vdso32-setup.c +1 -0
index 240626e7f55a..43842fade8fa 100644
@@ -11,6 +11,7 @@
 #include <linux/smp.h>
 #include <linux/kernel.h>
 #include <linux/mm_types.h>
+#include <linux/elf.h>
 
 #include <asm/processor.h>
 #include <asm/vdso.h>
#1 lore raw
The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     bff47c2302cc249bcd550b17067f8dddbd4b6f77
Gitweb:        https://git.kernel.org/tip/bff47c2302cc249bcd550b17067f8dddbd4b6f77
Author:        Valdis Klētnieks <[email protected]>
AuthorDate:    Thu, 05 Dec 2019 21:36:07 -05:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Sun, 29 Dec 2019 13:41:31 +01:00

x86/vdso: Provide missing include file

When building with C=1, sparse issues a warning:

CHECK arch/x86/entry/vdso/vdso32-setup.c
arch/x86/entry/vdso/vdso32-setup.c:28:28: warning: symbol 'vdso32_enabled' was not declared. Should it be static?

Provide the missing header file.

---
 arch/x86/entry/vdso/vdso32-setup.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/entry/vdso/vdso32-setup.c +1 -0
index 240626e..43842fa 100644
@@ -11,6 +11,7 @@
 #include <linux/smp.h>
 #include <linux/kernel.h>
 #include <linux/mm_types.h>
+#include <linux/elf.h>
 
 #include <asm/processor.h>
 #include <asm/vdso.h>