From: Linus Torvalds Date: Tue, 27 Jan 2009 03:21:26 +0000 (-0800) Subject: Fix "multiple definition of `debugfs_create_size_t'" X-Git-Tag: v2.6.29-rc3~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5ee810072175042775e39bdd3eaaa68884c27805;p=linux-2.6-omap-h63xx.git Fix "multiple definition of `debugfs_create_size_t'" Introduced by 8adb711f3668b034e7b956fac951ed08b53e0d55 ("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 Acked-by: Greg KH Signed-off-by: Linus Torvalds --- diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 0f5c33b0bd3..af0e01d4c66 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -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) {