Skip to contentSkip to conversation

x86: vdso/vma.c declare vdso_enabled and arch_setup_additional_pages before they get used

PATCH In review Jaswinder Singh Rajput 1 participant 2 messages Apr 12, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: vdso/vma.c declare vdso_enabled and arch_setup_additional_pages before they get used

Impact: cleanup, address sparse warnings

Addresses the problem pointed out by these sparse warning:
arch/x86/vdso/vma.c:19:28: warning: symbol 'vdso_enabled' was not declared. Should it be static? arch/x86/vdso/vma.c:101:5: warning: symbol 'arch_setup_additional_pages' was not declared. Should it be static?

---
 arch/x86/vdso/vma.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/vdso/vma.c +1 -0
index 7133cdf..cac0833 100644
@@ -8,6 +8,7 @@
 #include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/random.h>
+#include <linux/elf.h>
 #include <asm/vsyscall.h>
 #include <asm/vgtod.h>
 #include <asm/proto.h>
Signature · 1 line
1.6.0.6
#1 lore raw
Commit-ID:  3fa89ca7ba5ba50b3924a11f6604b4bdce5f7842
Gitweb:     http://git.kernel.org/tip/3fa89ca7ba5ba50b3924a11f6604b4bdce5f7842
Author:     Jaswinder Singh Rajput <[email protected]>
AuthorDate: Sun, 12 Apr 2009 20:37:25 +0530
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 12 Apr 2009 18:35:02 +0200

x86: vdso/vma.c declare vdso_enabled and arch_setup_additional_pages before they get used

Impact: cleanup, address sparse warnings

Addresses the problem pointed out by these sparse warning:
arch/x86/vdso/vma.c:19:28: warning: symbol 'vdso_enabled' was not declared. Should it be static? arch/x86/vdso/vma.c:101:5: warning: symbol 'arch_setup_additional_pages' was not declared. Should it be static?

LKML-Reference: <[email protected]>

---
 arch/x86/vdso/vma.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/vdso/vma.c +1 -0
index 7133cdf..cac0833 100644
@@ -8,6 +8,7 @@
 #include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/random.h>
+#include <linux/elf.h>
 #include <asm/vsyscall.h>
 #include <asm/vgtod.h>
 #include <asm/proto.h>