Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4547268rwr; Mon, 8 May 2023 09:08:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Wg8r1OnhIhQ6vBE/lXuODlaN1MJgsrx1keRMBIN0nSgCdPlePHSzpXcltEbnD2rl+LHPJ X-Received: by 2002:a17:902:f54b:b0:1aa:fe52:a827 with SMTP id h11-20020a170902f54b00b001aafe52a827mr14862115plf.13.1683562109840; Mon, 08 May 2023 09:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683562109; cv=none; d=google.com; s=arc-20160816; b=U2YNB9QX387+MndAdqF3xn25/GqFbgcoE1VncxHFKlr0LU0rglotrSRXNhhYXG1337 663ehEJI7RYBG5oIvnhfiK8+hBCCTPJuWZPJ93cAREmmZNDNAOe6pX7MI+Nu8PWtW27D iOTdvmslMdpDzHGOQEW7sFGpCacfoWfmE9r9At0loFljTLtGoNh4NZz6xFhFt4N04RKW CeZ3krtjAn3je+bK2qslOrpR0Se3ePPPG3Cwo+zILl2uBKkjhuVGtALPUDgSB8JdWFM4 erIu0HRtHAAJk4cmZFrnYkP0DkAlrsxn23xejZFUyddak1D+Ny0c3szAMWSpQQIQTgHP 1qDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=toN442RdyhtAtCP35/wxZO2uvo3w1BLhcUyBKkZwCg0=; b=Lq4RZwNexamByB4tXfjfbBdvpW8Mef/QsBjhZ7Dt4/8kVKzhMzBvjliQsTI0+JGQk0 fxYGsge5nrBjY5MccvGFKXEn8gWcc5RmIyKrtMgxjrzcRnaE0i5Ot5GioP1ybvPGHgEX YwkK2/ZU0DhGHyscSQDclj5YQJmlaownZpBJjnPrSoxImxSxpCjqBjV33t9k818oqqiK XULZ9BFdAaiQcwxHeyqhX588pFizTTP4Pbo+OfFKWWrb4KkyFvibCGlzgr05VeMN/U6M j21vnZby5CvhsaHCAGLy9k7h5t7mHEoQ1PbLr5oAAAQsXoUGWX7mo2H07lgLYaD9p6E8 AB/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a1709027c0e00b001a637201992si7936039pll.488.2023.05.08.09.08.14; Mon, 08 May 2023 09:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232966AbjEHQFb (ORCPT + 99 others); Mon, 8 May 2023 12:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbjEHQF3 (ORCPT ); Mon, 8 May 2023 12:05:29 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36FB45588 for ; Mon, 8 May 2023 09:05:28 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:6a18:41e7:fcfe:24c0]) by michel.telenet-ops.be with bizsmtp id uG5R290042WBekD06G5Rm6; Mon, 08 May 2023 18:05:25 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1pw3MU-001XSm-9q; Mon, 08 May 2023 18:05:25 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1pw3Mb-00BTFE-1L; Mon, 08 May 2023 18:05:25 +0200 From: Geert Uytterhoeven To: Marc Zyngier , Russell King , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] arm64: perf: Mark all accessor functions inline Date: Mon, 8 May 2023 18:05:19 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: <3a7d9bc7470aa2d85696ee9765c74f8c03fb5454.1683561482.git.geert+renesas@glider.be> References: <3a7d9bc7470aa2d85696ee9765c74f8c03fb5454.1683561482.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When just including : arch/arm64/include/asm/arm_pmuv3.h:31:13: error: ‘write_pmevtypern’ defined but not used [-Werror=unused-function] 31 | static void write_pmevtypern(int n, unsigned long val) | ^~~~~~~~~~~~~~~~ arch/arm64/include/asm/arm_pmuv3.h:24:13: error: ‘write_pmevcntrn’ defined but not used [-Werror=unused-function] 24 | static void write_pmevcntrn(int n, unsigned long val) | ^~~~~~~~~~~~~~~ arch/arm64/include/asm/arm_pmuv3.h:16:22: error: ‘read_pmevcntrn’ defined but not used [-Werror=unused-function] 16 | static unsigned long read_pmevcntrn(int n) | ^~~~~~~~~~~~~~ Fix this by adding the missing "inline" keywords to the three accessor functions that lack them. Fixes: df29ddf4f04b00cf ("arm64: perf: Abstract system register accesses away") Signed-off-by: Geert Uytterhoeven --- arch/arm64/include/asm/arm_pmuv3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/arm_pmuv3.h b/arch/arm64/include/asm/arm_pmuv3.h index d6b51deb7bf0ff2f..18dc2fb3d7b7b2d0 100644 --- a/arch/arm64/include/asm/arm_pmuv3.h +++ b/arch/arm64/include/asm/arm_pmuv3.h @@ -13,7 +13,7 @@ #define RETURN_READ_PMEVCNTRN(n) \ return read_sysreg(pmevcntr##n##_el0) -static unsigned long read_pmevcntrn(int n) +static inline unsigned long read_pmevcntrn(int n) { PMEVN_SWITCH(n, RETURN_READ_PMEVCNTRN); return 0; @@ -21,14 +21,14 @@ static unsigned long read_pmevcntrn(int n) #define WRITE_PMEVCNTRN(n) \ write_sysreg(val, pmevcntr##n##_el0) -static void write_pmevcntrn(int n, unsigned long val) +static inline void write_pmevcntrn(int n, unsigned long val) { PMEVN_SWITCH(n, WRITE_PMEVCNTRN); } #define WRITE_PMEVTYPERN(n) \ write_sysreg(val, pmevtyper##n##_el0) -static void write_pmevtypern(int n, unsigned long val) +static inline void write_pmevtypern(int n, unsigned long val) { PMEVN_SWITCH(n, WRITE_PMEVTYPERN); } -- 2.34.1