From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71F1CC433FE for ; Fri, 4 Dec 2020 10:00:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03F8022795 for ; Fri, 4 Dec 2020 10:00:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 03F8022795 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QjwaDclnjABe5bDL2FXGAGjBS/iowDGSBWowxwiUasY=; b=o2RqPOECFOmh0xXMlG6j7SH0c ebt+FRks6E49soia36im4OgY1dpCgQBdatUeyqLEsH4bn2eVVEvDsOZRvuecY0cl5Yru2fpYVQgmF +EJG0HAZZ5nirmilXG3RjB0KnaYpXKjP/+wpPCOOV38qih2CgZtT76akjtBO0UZ3KoBRi7RaTc5dY tRVSqr1ZUE2/o53KqKqF7ncsXhXolKN3u3+IrXxpEyB0pNvQJTZhizE+6R41kG7U4JzfBt3WE8C/e 7m7G4lDZaJFlijcKv+YX75PoDOiVR6cS0vAjSGecoHLJRoakVosUEV0QFDtn6AtuFlBiPiwVlLxdf MgiXbTNZg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kl7s4-0005E4-CL; Fri, 04 Dec 2020 09:59:24 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kl7rw-0005Br-UJ for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2020 09:59:21 +0000 Date: Fri, 4 Dec 2020 09:59:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607075955; bh=eTDLlwNPvwWPy8dSGHo/qizkZsw89ufbibXjcv+b2Is=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=kUQ3oQG4CW9V97oGyQFm3HYJe0oRoVdgnprgaAsiTQDy772ZmyFoez0NjlMhmLsHb YF0RCsiDjalvmpo5Mf71U8g+vkP3GdrMT4WQ3KPtQpBkgjRN92Dqfvbc53d7VVxRxv AMBV3SfdDFhLO+BuSgOM1IUvruyMsLlGa4Em2qylwg6/mg0QNgkDU5O+ru3gUleO41 2SxyEDrAdEubV9gKZYFasRJEC9UN7X5t4a6tXEtkBeMHctc+Auh9w40KiIMZ85L7f3 u3yfQpjlMyObgX3sW9A0XUnHWpKx0WgUUbNkD16M+oY6Y3ocmR1gV333r4/NfWuXfH 9RDytO1hfaRgQ== From: Will Deacon To: Arnd Bergmann Subject: Re: [PATCH] arm64: cpufeature: fix unused function warning Message-ID: <20201204095909.GC461@willie-the-truck> References: <20201203223217.1238899-1-arnd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201203223217.1238899-1-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201204_045917_130332_086E3F37 X-CRM114-Status: GOOD ( 14.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Arnd Bergmann , Anshuman Khandual , Catalin Marinas , Suzuki K Poulose , linux-kernel@vger.kernel.org, Kristina Martsenko , Mark Brown , Amit Daniel Kachhap , Ionela Voinescu , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Dec 03, 2020 at 11:32:11PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The __system_matches_cap() function is now only used in an #ifdef > section: > > arch/arm64/kernel/cpufeature.c:2649:13: error: unused function '__system_matches_cap' [-Werror,-Wunused-function] > > Move it into that #ifdef section. > > Fixes: 7cf283c7bd62 ("arm64: uaccess: remove redundant PAN toggling") > Signed-off-by: Arnd Bergmann > --- > arch/arm64/kernel/cpufeature.c | 36 ++++++++++++++++------------------ > 1 file changed, 17 insertions(+), 19 deletions(-) Acked-by: Will Deacon We can probably go further and remove the helper altogether as I don't think it really helps has_generic_auth(), but this should fix the warning. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel