Commit 68b37641 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] make devfs_put() static to fs/devfs/base.c

Not use anywhere else nor should it.
parent c0802f99
...@@ -916,7 +916,7 @@ static struct devfs_entry *devfs_get (struct devfs_entry *de) ...@@ -916,7 +916,7 @@ static struct devfs_entry *devfs_get (struct devfs_entry *de)
* @de: The handle to the devfs entry. * @de: The handle to the devfs entry.
*/ */
void devfs_put (devfs_handle_t de) static void devfs_put (devfs_handle_t de)
{ {
if (!de) return; if (!de) return;
VERIFY_ENTRY (de); VERIFY_ENTRY (de);
......
...@@ -37,7 +37,6 @@ struct unique_numspace ...@@ -37,7 +37,6 @@ struct unique_numspace
#define UNIQUE_NUMBERSPACE_INITIALISER {SPIN_LOCK_UNLOCKED, 0, 0, 0, NULL} #define UNIQUE_NUMBERSPACE_INITIALISER {SPIN_LOCK_UNLOCKED, 0, 0, 0, NULL}
extern void devfs_put (devfs_handle_t de);
extern devfs_handle_t devfs_register (devfs_handle_t dir, const char *name, extern devfs_handle_t devfs_register (devfs_handle_t dir, const char *name,
unsigned int flags, unsigned int flags,
unsigned int major, unsigned int minor, unsigned int major, unsigned int minor,
...@@ -66,10 +65,6 @@ struct unique_numspace ...@@ -66,10 +65,6 @@ struct unique_numspace
#define UNIQUE_NUMBERSPACE_INITIALISER {0} #define UNIQUE_NUMBERSPACE_INITIALISER {0}
static inline void devfs_put (devfs_handle_t de)
{
return;
}
static inline devfs_handle_t devfs_register (devfs_handle_t dir, static inline devfs_handle_t devfs_register (devfs_handle_t dir,
const char *name, const char *name,
unsigned int flags, unsigned int flags,
......
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