summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSentaro Onizuka <sentaro@amazon.com>2025-01-13 18:14:00 +0300
committerChristian Brauner <brauner@kernel.org>2025-01-16 13:48:06 +0300
commit4f3b63e8a8a28e3dcdcf3ff260f57a732a20b92b (patch)
treebc0533b6e5e4deed36a21397c1a84c8318eb168f /include/linux
parent344af27715ddbf357cf76978d674428b88f8e92d (diff)
downloadlinux-4f3b63e8a8a28e3dcdcf3ff260f57a732a20b92b.tar.xz
fs: Fix return type of do_mount() from long to int
Fix the return type of do_mount() function from long to int to match its ac tual behavior. The function only returns int values, and all callers, inclu ding those in fs/namespace.c and arch/alpha/kernel/osf_sys.c, already treat the return value as int. This change improves type consistency across the filesystem code and aligns the function signature with its existing impleme ntation and usage. Signed-off-by: Sentaro Onizuka <sentaro@amazon.com> Link: https://lore.kernel.org/r/20250113151400.55512-1-sentaro@amazon.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h
index 33f17b6e8732..a7b472faec2c 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -114,7 +114,7 @@ extern struct vfsmount *kern_mount(struct file_system_type *);
extern void kern_unmount(struct vfsmount *mnt);
extern int may_umount_tree(struct vfsmount *);
extern int may_umount(struct vfsmount *);
-extern long do_mount(const char *, const char __user *,
+int do_mount(const char *, const char __user *,
const char *, unsigned long, void *);
extern struct vfsmount *collect_mounts(const struct path *);
extern void drop_collected_mounts(struct vfsmount *);