[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <160531308152.11244.2917354987036179379.tip-bot2@tip-bot2>
Date: Sat, 14 Nov 2020 00:18:01 -0000
From: "tip-bot2 for Lukas Bulwahn" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Lukas Bulwahn <lukas.bulwahn@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Nathan Chancellor <natechancellor@...il.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: locking/core] futex: Remove unused empty compat_exit_robust_list()
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 932f8c64d38bb08f69c8c26a2216ba0c36c6daa8
Gitweb: https://git.kernel.org/tip/932f8c64d38bb08f69c8c26a2216ba0c36c6daa8
Author: Lukas Bulwahn <lukas.bulwahn@...il.com>
AuthorDate: Fri, 13 Nov 2020 18:20:12 +01:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Sat, 14 Nov 2020 01:15:35 +01:00
futex: Remove unused empty compat_exit_robust_list()
Commit ba31c1a48538 ("futex: Move futex exit handling into futex code")
introduced compat_exit_robust_list() with a full-fledged implementation for
CONFIG_COMPAT, and an empty-body function for !CONFIG_COMPAT.
However, compat_exit_robust_list() is only used in futex_mm_release() under
#ifdef CONFIG_COMPAT.
Hence for !CONFIG_COMPAT, make CC=clang W=1 warns:
kernel/futex.c:314:20:
warning: unused function 'compat_exit_robust_list' [-Wunused-function]
There is no need to declare the unused empty function for !CONFIG_COMPAT.
Simply remove it.
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@...il.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Nathan Chancellor <natechancellor@...il.com>
Link: https://lore.kernel.org/r/20201113172012.27221-1-lukas.bulwahn@gmail.com
---
kernel/futex.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/futex.c b/kernel/futex.c
index ac32887..aee6ce2 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -310,8 +310,6 @@ static inline bool should_fail_futex(bool fshared)
#ifdef CONFIG_COMPAT
static void compat_exit_robust_list(struct task_struct *curr);
-#else
-static inline void compat_exit_robust_list(struct task_struct *curr) { }
#endif
/*
Powered by blists - more mailing lists