Commit d475dd45 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jeff Garzik

[PATCH] devfs: make devfs_generate_path static

There's just one caller in fs/devfs/base.c left.
parent d9c70898
...@@ -1747,7 +1747,7 @@ void devfs_remove(const char *fmt, ...) ...@@ -1747,7 +1747,7 @@ void devfs_remove(const char *fmt, ...)
* else a negative error code. * else a negative error code.
*/ */
int devfs_generate_path (devfs_handle_t de, char *path, int buflen) static int devfs_generate_path (devfs_handle_t de, char *path, int buflen)
{ {
int pos; int pos;
#define NAMEOF(de) ( (de)->mode ? (de)->name : (de)->u.name ) #define NAMEOF(de) ( (de)->mode ? (de)->name : (de)->u.name )
...@@ -1867,7 +1867,6 @@ EXPORT_SYMBOL(devfs_unregister); ...@@ -1867,7 +1867,6 @@ EXPORT_SYMBOL(devfs_unregister);
EXPORT_SYMBOL(devfs_mk_symlink); EXPORT_SYMBOL(devfs_mk_symlink);
EXPORT_SYMBOL(devfs_mk_dir); EXPORT_SYMBOL(devfs_mk_dir);
EXPORT_SYMBOL(devfs_remove); EXPORT_SYMBOL(devfs_remove);
EXPORT_SYMBOL(devfs_generate_path);
/** /**
......
...@@ -31,7 +31,6 @@ extern devfs_handle_t devfs_mk_dir(const char *fmt, ...) ...@@ -31,7 +31,6 @@ extern devfs_handle_t devfs_mk_dir(const char *fmt, ...)
__attribute__((format (printf, 1, 2))); __attribute__((format (printf, 1, 2)));
extern void devfs_remove(const char *fmt, ...) extern void devfs_remove(const char *fmt, ...)
__attribute__((format (printf, 1, 2))); __attribute__((format (printf, 1, 2)));
extern int devfs_generate_path (devfs_handle_t de, char *path, int buflen);
extern int devfs_register_tape(const char *name); extern int devfs_register_tape(const char *name);
extern void devfs_unregister_tape(int num); extern void devfs_unregister_tape(int num);
extern void devfs_create_partitions(struct gendisk *dev); extern void devfs_create_partitions(struct gendisk *dev);
...@@ -66,11 +65,6 @@ static inline devfs_handle_t devfs_mk_dir(const char *fmt, ...) ...@@ -66,11 +65,6 @@ static inline devfs_handle_t devfs_mk_dir(const char *fmt, ...)
static inline void devfs_remove(const char *fmt, ...) static inline void devfs_remove(const char *fmt, ...)
{ {
} }
static inline int devfs_generate_path (devfs_handle_t de, char *path,
int buflen)
{
return -ENOSYS;
}
static inline int devfs_register_tape (devfs_handle_t de) static inline int devfs_register_tape (devfs_handle_t de)
{ {
return -1; return -1;
......
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