From e823008b84855ffce271e4e3f10346a7be96c3e8 Mon Sep 17 00:00:00 2001 From: weishu Date: Tue, 7 May 2024 20:17:42 +0800 Subject: [PATCH] Fix compile --- kernel/core_hook.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 6719f7ee5def..37e35eb0ed5d 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -437,7 +437,7 @@ static bool should_umount(struct path *path) return false; } -static int ksu_umount_mnt(struct path *path, int flags) +static void ksu_umount_mnt(struct path *path, int flags) { int err = path_umount(path, flags); if (err) { @@ -463,10 +463,7 @@ static void try_umount(const char *mnt, bool check_mnt, int flags) return; } - err = ksu_umount_mnt(&path, flags); - if (err) { - pr_warn("umount %s failed: %d\n", mnt, err); - } + ksu_umount_mnt(&path, flags); } int ksu_handle_setuid(struct cred *new, const struct cred *old)