Skip to content

Commit 77b5a25

Browse files
author
Desnes Nunes
committed
debugfs: take debugfs_short_fops definition out of ifdef
JIRA: https://issues.redhat.com/browse/RHEL-78931 commit d1433c7 Author: Al Viro <viro@zeniv.linux.org.uk> Date: Sun, 12 Jan 2025 08:06:50 +0000 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: Christian Brauner <brauner@kernel.org> Link: https://lore.kernel.org/r/20250112080705.141166-6-viro@zeniv.linux.org.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Desnes Nunes <desnesn@redhat.com>
1 parent bf2fbcc commit 77b5a25

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)