[PATCH] devfs (7/7) - make devfs_generate_path static

Christoph Hellwig (hch@lst.de)
Fri, 18 Apr 2003 18:13:11 +0200


There's just one caller in fs/devfs/base.c left.

diff -Nru a/fs/devfs/base.c b/fs/devfs/base.c
--- a/fs/devfs/base.c Fri Apr 18 15:59:17 2003
+++ b/fs/devfs/base.c Fri Apr 18 15:59:17 2003
@@ -1747,7 +1747,7 @@
* 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;
#define NAMEOF(de) ( (de)->mode ? (de)->name : (de)->u.name )
@@ -1867,7 +1867,6 @@
EXPORT_SYMBOL(devfs_mk_symlink);
EXPORT_SYMBOL(devfs_mk_dir);
EXPORT_SYMBOL(devfs_remove);
-EXPORT_SYMBOL(devfs_generate_path);


/**
diff -Nru a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
--- a/include/linux/devfs_fs_kernel.h Fri Apr 18 15:59:17 2003
+++ b/include/linux/devfs_fs_kernel.h Fri Apr 18 15:59:17 2003
@@ -31,7 +31,6 @@
__attribute__((format (printf, 1, 2)));
extern void devfs_remove(const char *fmt, ...)
__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 void devfs_unregister_tape(int num);
extern void devfs_create_partitions(struct gendisk *dev);
@@ -65,11 +64,6 @@
}
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)
{
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/