mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
debugfs: take debugfs_short_fops definition out of ifdef
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>
This commit is contained in:
parent
12c9209893
commit
d1433c7ba2
|
|
@ -67,16 +67,16 @@ static const struct file_operations __fops = { \
|
|||
|
||||
typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
|
||||
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
|
||||
struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
|
||||
|
||||
struct debugfs_short_fops {
|
||||
ssize_t (*read)(struct file *, char __user *, size_t, loff_t *);
|
||||
ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *);
|
||||
loff_t (*llseek) (struct file *, loff_t, int);
|
||||
};
|
||||
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
|
||||
struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
|
||||
|
||||
struct dentry *debugfs_create_file_full(const char *name, umode_t mode,
|
||||
struct dentry *parent, void *data,
|
||||
const void *aux,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user