Skip to content

Commit d1433c7

Browse files
Al Virogregkh
authored andcommitted
debugfs: take debugfs_short_fops definition out of ifdef
Signed-off-by: Al Viro <[email protected]> Reviewed-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 12c9209 commit d1433c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/debugfs.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ static const struct file_operations __fops = { \
6767

6868
typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
6969

70-
#if defined(CONFIG_DEBUG_FS)
71-
72-
struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
73-
7470
struct debugfs_short_fops {
7571
ssize_t (*read)(struct file *, char __user *, size_t, loff_t *);
7672
ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *);
7773
loff_t (*llseek) (struct file *, loff_t, int);
7874
};
7975

76+
#if defined(CONFIG_DEBUG_FS)
77+
78+
struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
79+
8080
struct dentry *debugfs_create_file_full(const char *name, umode_t mode,
8181
struct dentry *parent, void *data,
8282
const void *aux,

0 commit comments

Comments
 (0)