Commit c748e1340e0de3fa7fed86f8bdf499be9242afff

Authored by Adrian Bunk
Committed by Linus Torvalds
1 parent 4f5ca26578

mm/vmstat.c: proper externs

This patch adds proper extern declarations for five variables in
include/linux/vmstat.h

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 4 changed files with 8 additions and 5 deletions Side-by-side Diff

... ... @@ -232,7 +232,6 @@
232 232 #undef K
233 233 }
234 234  
235   -extern const struct seq_operations fragmentation_op;
236 235 static int fragmentation_open(struct inode *inode, struct file *file)
237 236 {
238 237 (void)inode;
... ... @@ -246,7 +245,6 @@
246 245 .release = seq_release,
247 246 };
248 247  
249   -extern const struct seq_operations pagetypeinfo_op;
250 248 static int pagetypeinfo_open(struct inode *inode, struct file *file)
251 249 {
252 250 return seq_open(file, &pagetypeinfo_op);
... ... @@ -259,7 +257,6 @@
259 257 .release = seq_release,
260 258 };
261 259  
262   -extern const struct seq_operations zoneinfo_op;
263 260 static int zoneinfo_open(struct inode *inode, struct file *file)
264 261 {
265 262 return seq_open(file, &zoneinfo_op);
... ... @@ -356,7 +353,6 @@
356 353 .release = seq_release,
357 354 };
358 355  
359   -extern const struct seq_operations vmstat_op;
360 356 static int vmstat_open(struct inode *inode, struct file *file)
361 357 {
362 358 return seq_open(file, &vmstat_op);
include/linux/vmstat.h
... ... @@ -44,6 +44,12 @@
44 44 NR_VM_EVENT_ITEMS
45 45 };
46 46  
  47 +extern const struct seq_operations fragmentation_op;
  48 +extern const struct seq_operations pagetypeinfo_op;
  49 +extern const struct seq_operations zoneinfo_op;
  50 +extern const struct seq_operations vmstat_op;
  51 +extern int sysctl_stat_interval;
  52 +
47 53 #ifdef CONFIG_VM_EVENT_COUNTERS
48 54 /*
49 55 * Light weight per cpu counter implementation.
... ... @@ -43,6 +43,7 @@
43 43 #include <linux/limits.h>
44 44 #include <linux/dcache.h>
45 45 #include <linux/syscalls.h>
  46 +#include <linux/vmstat.h>
46 47 #include <linux/nfs_fs.h>
47 48 #include <linux/acpi.h>
48 49 #include <linux/reboot.h>
... ... @@ -80,7 +81,6 @@
80 81 extern int percpu_pagelist_fraction;
81 82 extern int compat_log;
82 83 extern int maps_protect;
83   -extern int sysctl_stat_interval;
84 84 extern int latencytop_enabled;
85 85 extern int sysctl_nr_open_min, sysctl_nr_open_max;
86 86 #ifdef CONFIG_RCU_TORTURE_TEST
... ... @@ -13,6 +13,7 @@
13 13 #include <linux/err.h>
14 14 #include <linux/module.h>
15 15 #include <linux/cpu.h>
  16 +#include <linux/vmstat.h>
16 17 #include <linux/sched.h>
17 18  
18 19 #ifdef CONFIG_VM_EVENT_COUNTERS