Commit eed6b962 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] get_blkdev_list() cleanup

- Move prototype to genhd.h

- It is only needed for /proc
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 06901504
......@@ -38,6 +38,7 @@ static inline int major_to_index(int major)
return major % MAX_PROBE_HASH;
}
#ifdef CONFIG_PROC_FS
/* get block device names in somewhat random order */
int get_blkdev_list(char *p)
{
......@@ -56,6 +57,7 @@ int get_blkdev_list(char *p)
return len;
}
#endif
int register_blkdev(unsigned int major, const char *name)
{
......
......@@ -62,7 +62,6 @@
extern int get_hardware_list(char *);
extern int get_stram_list(char *);
extern int get_chrdev_list(char *);
extern int get_blkdev_list(char *);
extern int get_filesystem_list(char *);
extern int get_exec_domain_list(char *);
extern int get_dma_list(char *);
......
......@@ -218,6 +218,7 @@ static inline void free_disk_stats(struct gendisk *disk)
extern void disk_round_stats(struct gendisk *disk);
/* drivers/block/genhd.c */
extern int get_blkdev_list(char *);
extern void add_disk(struct gendisk *disk);
extern void del_gendisk(struct gendisk *gp);
extern void unlink_gendisk(struct gendisk *gp);
......
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