Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1552596pxb; Fri, 13 Nov 2020 16:19:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMYCenVUmgg4vd723iikE9QcIxxdVDGSzDHuGwUDHmACH5dLgTWPgUXRrTeGY+JdYCV3Af X-Received: by 2002:aa7:cb4a:: with SMTP id w10mr5253363edt.343.1605313181037; Fri, 13 Nov 2020 16:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605313181; cv=none; d=google.com; s=arc-20160816; b=Eec1Ov9INAu5lrWru/SpSqkJ9mM2LIQVVWwAYTA299Kf11XPaz4kbuCVcHs6rvCAAB 5NlmOhtQgHIxG7iQC67z9lE5FmawiLoPetKjBc7knGdY7LY/CM5HFrgRW0rbZtkzJhWh Ie1zwhL0pV7jftCHbjPY7YkxqGPjjTU3iTYPgZKxM1VWTERRH4ULCXd/ylSPoaF6PUw5 Exg4X9Bzl9WZzGEcDNp90HUVvMj97Xbj82/CltjRZz1n0i87B6a/pWLSSvET6RdwQ7AM 6yeOffH40FypIx1UgRM5iu1VSHNFuDG0bqz5TsTTQthcNkXFhTkiRh7eVR0DRtrrBYj/ mB6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=4Y6QUSct+LSWBUOXnsqzWhiWVdRDh6X544dsTtmbEFI=; b=Uge2+SinAAhsLTQCulsG5aJnXcZtynxsIcGVHDD11Gp8jieXYuZQLNJ2HEBP3yIB+d fk5udjiYwIvK1tsZ1R3ARvpPk0+uYwUNwSMgkGqvYxeWJQyFShc0pwHzgA7TRzgM3d4x T0kE5moqpcchcMHUMeA/WCx2anN0zYfyI097H0kZRrpa9iw9ubUk2EY8r/hUGJS4bAVf ew2Shoz+GZCHonfUTxUTZ6a8RGrMOg5748tXP42gXIBNbuv9bpFxjk2LgI99978rTzm7 2WTWKutXKeqXzDUj2dKfVevYq2vrvKM/E8LFpgccLR0XxYKOtUeMtmXwnBRftZj0aNxL uOWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="O05S74/J"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=n88a1WXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si6788128ejf.670.2020.11.13.16.19.18; Fri, 13 Nov 2020 16:19:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="O05S74/J"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=n88a1WXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726459AbgKNASF (ORCPT + 99 others); Fri, 13 Nov 2020 19:18:05 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:56106 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgKNASE (ORCPT ); Fri, 13 Nov 2020 19:18:04 -0500 Date: Sat, 14 Nov 2020 00:18:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605313082; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Y6QUSct+LSWBUOXnsqzWhiWVdRDh6X544dsTtmbEFI=; b=O05S74/JLuq8kZLHAatrUTEPod+VAklV67nBtVF9999r1K3AkdTGoyXzddhCqAbssdvFHd DF0ADv0SyOCWjiTjaQ9Tcx4NodDScxQZnXZ3OjWRDbYn8tBpmGJiZVoyXTqiJKbofyksw+ h6ahduLL1A0yKiNlquOnTWiSgeHqw6Q45tgt9sVzL7ORGsBja4gVRxYjGNAVptBPun3+3j dBR/My6dUZueOPuuQpb9IWf9tqpwR4uFBiAVOduUBr56xk0lOBRxLXs53hciYn0kA+dNU4 tARu4K/ZpLOmNkzgWTkVgcXBLrDamVTrqneCe03WYI7O+ZlEQQBGgJynYso/Kg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605313082; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Y6QUSct+LSWBUOXnsqzWhiWVdRDh6X544dsTtmbEFI=; b=n88a1WXiueK3i5bVOc2FNT3UgAK1MYE9VxpcBrF1Mb1xYn/vYesuAphM0LlOaLtFtini1G tubk8GsKmtS4+TDg== From: "tip-bot2 for Lukas Bulwahn" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] futex: Remove unused empty compat_exit_robust_list() Cc: Lukas Bulwahn , Thomas Gleixner , Nathan Chancellor , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201113172012.27221-1-lukas.bulwahn@gmail.com> References: <20201113172012.27221-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Message-ID: <160531308152.11244.2917354987036179379.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 AuthorDate: Fri, 13 Nov 2020 18:20:12 +01:00 Committer: Thomas Gleixner 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 Signed-off-by: Thomas Gleixner Reviewed-by: Nathan Chancellor 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 /*