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

Commit 0e04c7cf authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: fix compilation when CONFIG_DEBUG_FS is disabled"

parents e27bf90b 9aee1eac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -917,7 +917,7 @@ static void mhi_netdev_create_debugfs_dir(void)

#else

static void mhi_netdev_create_debugfs(struct mhi_netdev_private *mhi_netdev)
static void mhi_netdev_create_debugfs(struct mhi_netdev *mhi_netdev)
{
}

+3 −2
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@ static const struct file_operations __fops = { \
	.llseek  = no_llseek,						\
}

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

#if defined(CONFIG_DEBUG_FS)

struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
@@ -75,7 +77,6 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
				      const char *dest);

typedef struct vfsmount *(*debugfs_automount_t)(struct dentry *, void *);
struct dentry *debugfs_create_automount(const char *name,
					struct dentry *parent,
					debugfs_automount_t f,
@@ -204,7 +205,7 @@ static inline struct dentry *debugfs_create_symlink(const char *name,

static inline struct dentry *debugfs_create_automount(const char *name,
					struct dentry *parent,
					struct vfsmount *(*f)(void *),
					debugfs_automount_t f,
					void *data)
{
	return ERR_PTR(-ENODEV);