From patchwork Tue Jul 30 10:26:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 11065537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF4AF912 for ; Tue, 30 Jul 2019 10:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF31F28796 for ; Tue, 30 Jul 2019 10:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D05A3287BA; Tue, 30 Jul 2019 10:26:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7C79C28796 for ; Tue, 30 Jul 2019 10:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=l5myXhBPKTCp5shEgzvvmPJkm830+mIiwL+ZFZaBauo=; b=NKReeifIrP/S+5 ocYS7elYFSViIZzRiZVoB83oJKtREH5DMzqdpFli39nno5s/GDWLQg+vh3ewf6QjBVSXR+OliNBcd NLO+wwUocWynPeRchXsu8D9YBnbtwzCvl0uB1z9HiCLZ2bP5L/SdVpFDd0kXlq4rnjIe6ZvZT9lXI 3vHlk1x10NYfziRsFvdhiNbXZgIkDFbodsMx1+W24QnQBFVrq+LgZGU3IGlw6iHHYmeB5MxW0EoP0 R6e0vF4zF2DkRPmoC5WsCtBwoRUpoyMuetzcFZfTDP0gS3wSm4P99I7jXeNjWUw9rw/6B8z+8D2Pj 3LVS3uVgw5wnYcOkEg6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hsPL9-0000Kg-1D; Tue, 30 Jul 2019 10:26:43 +0000 Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hsPL5-0000KI-SS for linux-arm-kernel@lists.infradead.org; Tue, 30 Jul 2019 10:26:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Oq65KDnY9XqFo6m1/tHdeW5VvhuWjCwDoJglK6ltgPM=; b=LgK3wXeEmDLxBFCqxf9YuI43x YKM94LmHs2ECngNxFCRvmkPJmCSG3iwuKSHlkaqR8lYwYR0s9ZnVeUpPjr2sBe9QtfQqozlsK8buN deisiDOdcNpL+eaEA+Z7QD/O/fzrwQWAJMgRZUBX0zgUCLa9Y+5FlMrnnIEKO5u34ltkw=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hsPL3-00075W-7Y; Tue, 30 Jul 2019 10:26:37 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 4E9EA2742CB5; Tue, 30 Jul 2019 11:26:36 +0100 (BST) From: Mark Brown To: Catalin Marinas , Will Deacon Subject: [PATCH] arm64: Remove unused cpucap_multi_entry_cap_cpu_enable() Date: Tue, 30 Jul 2019 11:26:31 +0100 Message-Id: <20190730102631.6218-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190730_032639_918968_2B26BC87 X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. 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 Brown , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The function cpucap_multi_entry_cap_cpu_enable() is unused, remove it to avoid any confusion reading the code and potential for bit rot. Signed-off-by: Mark Brown --- arch/arm64/include/asm/cpufeature.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index 407e2bf23676..74295194759f 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -362,21 +362,6 @@ cpucap_multi_entry_cap_matches(const struct arm64_cpu_capabilities *entry, return false; } -/* - * Take appropriate action for all matching entries in the shared capability - * entry. - */ -static inline void -cpucap_multi_entry_cap_cpu_enable(const struct arm64_cpu_capabilities *entry) -{ - const struct arm64_cpu_capabilities *caps; - - for (caps = entry->match_list; caps->matches; caps++) - if (caps->matches(caps, SCOPE_LOCAL_CPU) && - caps->cpu_enable) - caps->cpu_enable(caps); -} - extern DECLARE_BITMAP(cpu_hwcaps, ARM64_NCAPS); extern struct static_key_false cpu_hwcap_keys[ARM64_NCAPS]; extern struct static_key_false arm64_const_caps_ready;