Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3159269e authored by Johannes Berg's avatar Johannes Berg Committed by Greg Kroah-Hartman
Browse files

debugfs: provide debugfs_create_x64() when disabled



commit 15b0beaa ("Add x64 support to debugfs") added
debugfs_create_x64(), but forgot to provide it when debugfs is
disabled, causing problems when code tries to use it even then.
Provide the appropriate static inline.

Cc: Huang Ying <ying.huang@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b15a21dd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -192,6 +192,13 @@ static inline struct dentry *debugfs_create_x32(const char *name, umode_t mode,
	return ERR_PTR(-ENODEV);
}

static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode,
						struct dentry *parent,
						u64 *value)
{
	return ERR_PTR(-ENODEV);
}

static inline struct dentry *debugfs_create_size_t(const char *name, umode_t mode,
				     struct dentry *parent,
				     size_t *value)