2021-04-19 11:40:52

by Jiabing Wan

[permalink] [raw]
Subject: [PATCH] linux/mount.h: Remove duplicate struct declaration

struct path is declared at 85th line.
The declaration here is unnecessary. Remove it.

Signed-off-by: Wan Jiabing <[email protected]>
---
include/linux/mount.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/include/linux/mount.h b/include/linux/mount.h
index 5d92a7e1a742..9ebf8af88bff 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -93,8 +93,6 @@ extern struct vfsmount *mntget(struct vfsmount *mnt);
extern struct vfsmount *mnt_clone_internal(const struct path *path);
extern bool __mnt_is_readonly(struct vfsmount *mnt);
extern bool mnt_may_suid(struct vfsmount *mnt);
-
-struct path;
extern struct vfsmount *clone_private_mount(const struct path *path);
extern int __mnt_want_write(struct vfsmount *);
extern void __mnt_drop_write(struct vfsmount *);
--
2.25.1


2021-04-19 12:24:03

by Christian Brauner

[permalink] [raw]
Subject: Re: [PATCH] linux/mount.h: Remove duplicate struct declaration

On Mon, Apr 19, 2021 at 07:33:04PM +0800, Wan Jiabing wrote:
> struct path is declared at 85th line.
> The declaration here is unnecessary. Remove it.
>
> Signed-off-by: Wan Jiabing <[email protected]>
> ---

Looks good,
Reviewed-by: Christian Brauner <[email protected]>