Commit c748e134 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

mm/vmstat.c: proper externs

This patch adds proper extern declarations for five variables in
include/linux/vmstat.h
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4f5ca265
...@@ -232,7 +232,6 @@ static int meminfo_read_proc(char *page, char **start, off_t off, ...@@ -232,7 +232,6 @@ static int meminfo_read_proc(char *page, char **start, off_t off,
#undef K #undef K
} }
extern const struct seq_operations fragmentation_op;
static int fragmentation_open(struct inode *inode, struct file *file) static int fragmentation_open(struct inode *inode, struct file *file)
{ {
(void)inode; (void)inode;
...@@ -246,7 +245,6 @@ static const struct file_operations fragmentation_file_operations = { ...@@ -246,7 +245,6 @@ static const struct file_operations fragmentation_file_operations = {
.release = seq_release, .release = seq_release,
}; };
extern const struct seq_operations pagetypeinfo_op;
static int pagetypeinfo_open(struct inode *inode, struct file *file) static int pagetypeinfo_open(struct inode *inode, struct file *file)
{ {
return seq_open(file, &pagetypeinfo_op); return seq_open(file, &pagetypeinfo_op);
...@@ -259,7 +257,6 @@ static const struct file_operations pagetypeinfo_file_ops = { ...@@ -259,7 +257,6 @@ static const struct file_operations pagetypeinfo_file_ops = {
.release = seq_release, .release = seq_release,
}; };
extern const struct seq_operations zoneinfo_op;
static int zoneinfo_open(struct inode *inode, struct file *file) static int zoneinfo_open(struct inode *inode, struct file *file)
{ {
return seq_open(file, &zoneinfo_op); return seq_open(file, &zoneinfo_op);
...@@ -356,7 +353,6 @@ static const struct file_operations proc_devinfo_operations = { ...@@ -356,7 +353,6 @@ static const struct file_operations proc_devinfo_operations = {
.release = seq_release, .release = seq_release,
}; };
extern const struct seq_operations vmstat_op;
static int vmstat_open(struct inode *inode, struct file *file) static int vmstat_open(struct inode *inode, struct file *file)
{ {
return seq_open(file, &vmstat_op); return seq_open(file, &vmstat_op);
......
...@@ -44,6 +44,12 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, ...@@ -44,6 +44,12 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
NR_VM_EVENT_ITEMS NR_VM_EVENT_ITEMS
}; };
extern const struct seq_operations fragmentation_op;
extern const struct seq_operations pagetypeinfo_op;
extern const struct seq_operations zoneinfo_op;
extern const struct seq_operations vmstat_op;
extern int sysctl_stat_interval;
#ifdef CONFIG_VM_EVENT_COUNTERS #ifdef CONFIG_VM_EVENT_COUNTERS
/* /*
* Light weight per cpu counter implementation. * Light weight per cpu counter implementation.
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <linux/limits.h> #include <linux/limits.h>
#include <linux/dcache.h> #include <linux/dcache.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/vmstat.h>
#include <linux/nfs_fs.h> #include <linux/nfs_fs.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/reboot.h> #include <linux/reboot.h>
...@@ -80,7 +81,6 @@ extern int sysctl_drop_caches; ...@@ -80,7 +81,6 @@ extern int sysctl_drop_caches;
extern int percpu_pagelist_fraction; extern int percpu_pagelist_fraction;
extern int compat_log; extern int compat_log;
extern int maps_protect; extern int maps_protect;
extern int sysctl_stat_interval;
extern int latencytop_enabled; extern int latencytop_enabled;
extern int sysctl_nr_open_min, sysctl_nr_open_max; extern int sysctl_nr_open_min, sysctl_nr_open_max;
#ifdef CONFIG_RCU_TORTURE_TEST #ifdef CONFIG_RCU_TORTURE_TEST
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/vmstat.h>
#include <linux/sched.h> #include <linux/sched.h>
#ifdef CONFIG_VM_EVENT_COUNTERS #ifdef CONFIG_VM_EVENT_COUNTERS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment