Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1553416pxb; Fri, 13 Nov 2020 16:21:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJxHLSN1uh98ERfXpKu0KaD+vgMem8bJhCiqJTVF0ZIbod0lcXVvN0p+7vaZK88cFBZzNu X-Received: by 2002:a50:e183:: with SMTP id k3mr5198589edl.111.1605313286691; Fri, 13 Nov 2020 16:21:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605313286; cv=none; d=google.com; s=arc-20160816; b=E0ASDvZYiqR0ldE1M9ii5mdsFxxDRqHueAk60KdlujborVVxVIcaYHcpRF3YbfsbZc PZWDElPxnpxL81x41cgrUrp22nfxlFC/UNEHqOYObYl+U5qxqj0X+d16910w4L2qJAUB QRqODaYasDp3vvBOhfL+eQ8tLhX1GY0bEP3PpfUZ0g0+JhIF4FjnXy1JHfUyHJa029NM 38NCjB+nMjBc8Lpf2CIVo9ghKgjCrLKWh9iZLv6J26T8gjUMW5CeijIn4soHbNAgN0aR EmaWQdd9hTVLajtcxcmP1f17sOElvG96quRxt4hiyQDZPPZzg6YxEwBKx+YQVwrFmdqr TvAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=vvG8CPWDFDqmJouW/M6yHgJapIxayz7eh5nBkFkA8c4=; b=gy1LyZkV5IRfdn00XnvOnz4hpcTRxCmDPKwrMLgV6Ro6zoHNeufPA6GMPBwrAuHYnu Qcfbg/JLs9H3+NGsbM/cnR0shzr2pv3XQhUNK9ltRqanATp+lIpWWBE67qoo9liuQwoz IDedKGdnnbNOMuCgeFPyIDEZvib+X/GU2j8wkX4bmPPQwNGlBvcI0N0m26NR+VcfhAi0 rjfi2eQtWQsvfBWbHbumnxhsJPsBrGJkirfq4WGwPr396wZZMjGHfWSFukRHgMCVZjdL mTxwx9HRI1D/g/pJUf5cVRHwdfXb855K/sb0wMlSlOBtYCWp0IrtTsqKxt1NqvXKzNG7 n2zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ebNgHyUY; dkim=neutral (no key) header.i=@linutronix.de; 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 l9si7015279ejc.594.2020.11.13.16.21.04; Fri, 13 Nov 2020 16:21:26 -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=ebNgHyUY; dkim=neutral (no key) header.i=@linutronix.de; 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 S1726379AbgKNAPY (ORCPT + 99 others); Fri, 13 Nov 2020 19:15:24 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:56080 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbgKNAPW (ORCPT ); Fri, 13 Nov 2020 19:15:22 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605312920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vvG8CPWDFDqmJouW/M6yHgJapIxayz7eh5nBkFkA8c4=; b=ebNgHyUYFUywCVBAfdi++u8Ip16c7TQ9MSsfGTD4OlyGab5Wp8TcHffNuRvLBKpQnCEbVu ENaN6kWv0mCxTmczlC+pE0T0CO+X1omwqcg3DLK30fmk68Udkcn6obYiB1L4DS6JZFDe5I Kqu8dKySdovmHKIhc1ZR3gVU3Cxrf/tjm++RLRW++cCQ0AeEa39U45PbPBFwQ77RyNYwOO 44MZsiJdYycw8F6xrw0jlVu+vD30hymv8lEs/VqktLA3qN2o/Rt70FHMI8wSATqzsNHdE2 h7yPvNRwV3Jh1CopYfCSJhq4FFPVzp6WUJ46c8e9/MM6TPn9hL/MQZQCbmtNkg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605312920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vvG8CPWDFDqmJouW/M6yHgJapIxayz7eh5nBkFkA8c4=; b=KkzSDYyz98uOLLLLOjGhIEocYgIkFVPnE9Dq9uFXryq+tUkoINGEmiTW5c9q3YpCuPzhym 24Az12AKesLJT8DQ== To: Lukas Bulwahn , 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: Re: [PATCH] futex: remove unused empty compat_exit_robust_list() In-Reply-To: <20201113172012.27221-1-lukas.bulwahn@gmail.com> References: <20201113172012.27221-1-lukas.bulwahn@gmail.com> Date: Sat, 14 Nov 2020 01:15:20 +0100 Message-ID: <87ima8bxpj.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lukas, On Fri, Nov 13 2020 at 18:20, Lukas Bulwahn wrote: > 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. While I agree with the removal, I disagree with the reasoning. The real argument is that the stub function is useless. Addressing the warning is a side effect of the removal, nothing else. Thanks, tglx