Skip to content

Commit

Permalink
Fix "multiple definition of `debugfs_create_size_t'"
Browse files Browse the repository at this point in the history
Introduced by 8adb711 ("debugfs:
introduce stub for debugfs_create_size_t() when DEBUG_FS=n") and due to
a simple missing "static inline".

Reported-and-tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Acked-by: Greg KH <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed Jan 27, 2009
1 parent 5376071 commit 5ee8100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static inline struct dentry *debugfs_create_x32(const char *name, mode_t mode,
return ERR_PTR(-ENODEV);
}

struct dentry *debugfs_create_size_t(const char *name, mode_t mode,
static inline struct dentry *debugfs_create_size_t(const char *name, mode_t mode,
struct dentry *parent,
size_t *value)
{
Expand Down

0 comments on commit 5ee8100

Please sign in to comment.