Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1314332pxb; Fri, 13 Nov 2020 09:25:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5XKqt4scPXUOAYz/Mb+O1UZ5+oxXVFVUF+Sba4yJU5bl5HPt9Brzy9yURDybcPDbJKBK/ X-Received: by 2002:a50:aa84:: with SMTP id q4mr3756205edc.331.1605288305621; Fri, 13 Nov 2020 09:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605288305; cv=none; d=google.com; s=arc-20160816; b=QGa/+/GG4XKXZtbMf3dmnipG8cSpS7Jh+tpC6y/Yz4y4w90ud5FxV+xgNx16NdVK51 v1dmyCwpNG8SVeM5yBoHQ1J31yrKER8mfHIP+ySB7+Qv6kPGKK7o8nNXpxRlGQQ13oCy gfT94APTtCe8viKHjkpCAhJKgDuNlh4SFMviaPkfkjEg/YTR6wS6gqofLSCX2L9Vsbwb xdONsqND7swdG4fzdhj9FE4OKAQh+PRVl9edn13vpeWQ2Qtfbjg7zL6dC5jal/6h7YTZ W5YT+dOK7Lsy3aKZ+cIlpzWU09Hg4onQlNOODIxjoOOZ2ZzDxD3qizQO2DQWqWws9uaS aCsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=sjc8KniBtNjED/lBoWeTXk5F0n8iK1Duyq0rjSX4Y94=; b=M9P46kDqXCkYDgW02JjcblOYO26AY3PNkp9WyHYbDy0Xanu+L/ZMT3eyv440QVt3CJ 3BvRiLsVwsC1TFu0IswGqtsaTTJoS2qjzJeKk1aqvHjjExJWARmbz9XALMxdBgkAjg1m lQdBRfCaZ02Fz235DR8pww9SAVR6nxD+ZgyyeI4OOV9vX3YEyFkEn4nF0f9JFv0s4HUF BFfOkorTtu+XrVHiAWwR1OM6Qr+qg4ZbsWoETogsLnO0cAazZeiUx20kU+jtb3Kf+Un7 c12N8sXuAO6zqSmP2329wkOSmjJ9IDdRSnrwRiocckVWvcWOYSFhg117xYiAw7dfQXcc RNpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hRL+SO3M; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si6886063ejd.242.2020.11.13.09.24.40; Fri, 13 Nov 2020 09:25:05 -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=@gmail.com header.s=20161025 header.b=hRL+SO3M; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgKMRUR (ORCPT + 99 others); Fri, 13 Nov 2020 12:20:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgKMRUK (ORCPT ); Fri, 13 Nov 2020 12:20:10 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEDCDC0613D1; Fri, 13 Nov 2020 09:20:22 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id y17so8905332ejh.11; Fri, 13 Nov 2020 09:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=sjc8KniBtNjED/lBoWeTXk5F0n8iK1Duyq0rjSX4Y94=; b=hRL+SO3Mj1STQTn+Ism6mIuT45SR6dDFOrEjt4N15P6O2reg/rJDNIK9fqNVqQLz3Q 0tsRjJfVKWjz5uunupGeIj9HAuUqz7tZkXzXMO6PRaS2OCgpw1vi0EDqT5oosN1bQIP9 k0stku+xCMVMVIDTM165rS6MXyIMF/mSM1JS/7fcys2/Qe/49Px/6tjjXdzlswoxg+E2 siAN/gGlmRdeeD/B8b+HKFNd2mCbvalL4NHo0c44UboKIoanBlJPeOcF1d1aYp6gzgAH ftgB/1bmlL14c6xROWIZhZ62UDA+0MdLvm1KldI9Y5aEL28CwU1HBDputuX0PrB7d7Tl HUvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sjc8KniBtNjED/lBoWeTXk5F0n8iK1Duyq0rjSX4Y94=; b=BnuBvAeJsTQEmCDxfwvJ40kubj31vBIn31h+7sCV7XM3fQQbZ5lX8GpKinKqPyJHG7 quprPmP/chgkVnAmIDydZL9QpJq43ihgZedbhYZ2uHzDQ3JSAz0261PdVNZCYBY/O7DO tPzc9lW3bMH8vj9SZTFV0GJgyvnNtY2M2zxVlV/Mz3q783pP6+Vh731HYvJWsqo1XXAL LBv9J2U6PGi+UcwSlAa2wEvsRGl00Dnq4slN3guVehT2clZpTdGJnNwfBghbJZi81D57 k3ncD0kav+EYL7phWzQot1qongnRnazbVTXs3DFTib8euT2PdBpFFPGoWiEUcX7e6wNY GkJg== X-Gm-Message-State: AOAM532qQUzjDRbvBs5BGVKUf+LHWDapgSt3NjeWFdWBGl0lnh4pSFZS N84k7LrU2s40/maidYK7YmwlcItiXfEH5VUn X-Received: by 2002:a17:906:3813:: with SMTP id v19mr3050721ejc.462.1605288021328; Fri, 13 Nov 2020 09:20:21 -0800 (PST) Received: from felia.fritz.box ([2001:16b8:2de6:6700:3137:43ab:602a:9934]) by smtp.gmail.com with ESMTPSA id rv19sm4152379ejb.38.2020.11.13.09.20.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 09:20:20 -0800 (PST) From: Lukas Bulwahn To: Thomas Gleixner , Ingo Molnar , Peter Zijlstra Cc: Darren Hart , Arnd Bergmann , Tom Rix , Nathan Chancellor , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH] futex: remove unused empty compat_exit_robust_list() Date: Fri, 13 Nov 2020 18:20:12 +0100 Message-Id: <20201113172012.27221-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 to address the -Wunused-function warning. Signed-off-by: Lukas Bulwahn --- applies cleanly on current master and next-20201113 Thomas, please pick this minor non-urgent clean-up patch. kernel/futex.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/futex.c b/kernel/futex.c index 00259c7e288e..c47d1015d759 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 /* -- 2.17.1