aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
authorSentaro Onizuka <sentaro@amazon.com>2025-01-14 00:14:00 +0900
committerChristian Brauner <brauner@kernel.org>2025-01-16 11:48:06 +0100
commit4f3b63e8a8a28e3dcdcf3ff260f57a732a20b92b (patch)
treebc0533b6e5e4deed36a21397c1a84c8318eb168f /fs/namespace.c
parent344af27715ddbf357cf76978d674428b88f8e92d (diff)
downloadath-4f3b63e8a8a28e3dcdcf3ff260f57a732a20b92b.tar.gz
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 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 23e81c2a1e3fe..5d808778a3aeb 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3835,7 +3835,7 @@ int path_mount(const char *dev_name, struct path *path,
data_page);
}
-long do_mount(const char *dev_name, const char __user *dir_name,
+int do_mount(const char *dev_name, const char __user *dir_name,
const char *type_page, unsigned long flags, void *data_page)
{
struct path path;