Commit a0db701a authored by Adrian Bunk's avatar Adrian Bunk Committed by Jens Axboe

block/genhd.c: proper externs

This patch adds proper externs for two structs in include/linux/genhd.h
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent bec41940
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/swap.h> #include <linux/swap.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/genhd.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -377,7 +378,6 @@ static int stram_read_proc(char *page, char **start, off_t off, ...@@ -377,7 +378,6 @@ static int stram_read_proc(char *page, char **start, off_t off,
#endif #endif
#ifdef CONFIG_BLOCK #ifdef CONFIG_BLOCK
extern const struct seq_operations partitions_op;
static int partitions_open(struct inode *inode, struct file *file) static int partitions_open(struct inode *inode, struct file *file)
{ {
return seq_open(file, &partitions_op); return seq_open(file, &partitions_op);
...@@ -389,7 +389,6 @@ static const struct file_operations proc_partitions_operations = { ...@@ -389,7 +389,6 @@ static const struct file_operations proc_partitions_operations = {
.release = seq_release, .release = seq_release,
}; };
extern const struct seq_operations diskstats_op;
static int diskstats_open(struct inode *inode, struct file *file) static int diskstats_open(struct inode *inode, struct file *file)
{ {
return seq_open(file, &diskstats_op); return seq_open(file, &diskstats_op);
......
...@@ -22,6 +22,9 @@ extern struct device_type part_type; ...@@ -22,6 +22,9 @@ extern struct device_type part_type;
extern struct kobject *block_depr; extern struct kobject *block_depr;
extern struct class block_class; extern struct class block_class;
extern const struct seq_operations partitions_op;
extern const struct seq_operations diskstats_op;
enum { enum {
/* These three have identical behaviour; use the second one if DOS FDISK gets /* These three have identical behaviour; use the second one if DOS FDISK gets
confused about extended/logical partitions starting past cylinder 1023. */ confused about extended/logical partitions starting past cylinder 1023. */
......
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