Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4547596rwr; Mon, 8 May 2023 09:08:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7adPpaLGRZ6utgGAsur86NPYlZGxN9JCpnCXVe9WclqAD4jUPrkaXcs0nSL+bDX0Kpl6eR X-Received: by 2002:a05:6a20:144b:b0:100:d95f:122d with SMTP id a11-20020a056a20144b00b00100d95f122dmr2414988pzi.29.1683562124324; Mon, 08 May 2023 09:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683562124; cv=none; d=google.com; s=arc-20160816; b=JA5EFoG++OlwisEN616ePnOmXcVqLwUmd4+01ERepGUvC8iGfUz8h/JJEDHNKyKpdb FOvSzkq+YokDEGo9twbWR8eMefcdddhnVKeqPeBo+XvrJr9v2rc+qzeiETG7fyZxXmL2 TF+OxIbawdvo9evWKLKBgt7yr9XooaZZaFtxXYuWUfIboTKoe7rNfIEWDDKroL0By3k6 2MWH/qMgIbMhlRlVBx6lqT9QgzYBq0UqYggym2Hk6xtGydfxf0mKuj4b4upoBz9jR5rO DciHld/XjiF+pMLGw+NMaCTYyicUuMwNFx2zF/VdDzmx7QvLPgLDTn6OWZlNkU5VqaWd zFpA== 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=Z7hQKSSGUrPP+ZmgHs4qwxi5MITOzweXFA28IAK2/q4=; b=AXDrWsOJB4VFj2WKHpAIVrFte7K0Yb1Cdj6GyngXwcZPLgs95n9GYypfPvyMe2AabE S8d+++khYFiRScxWqsZ1KEno/DojmDjKas+DN58vLWVjqTZoK/5o9atR7d4D3JV15o+v 6k2YARk/XV5W6Opq7mAlaEPn2ITExvzweFgHBIQNf1yp5mnmmFQvsGSdgi7TmFLoVgMC 5AD0rZ9RUHlNkXvWTCYgB+u/5BxxIbAsPJekuBaZOtGgvtI3AIwhmYdJa0I2sKhTCMd0 Vhj+oIa45CwzLumMvnvgMTQY9PqUyKYcaItrfx7BBj/Lj7mstD7wWkoGcH5n6bp4sI1J Gs6g== 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 c83-20020a624e56000000b0063d2b810fc6si178063pfb.305.2023.05.08.09.08.29; Mon, 08 May 2023 09:08:44 -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 S233204AbjEHQFf (ORCPT + 99 others); Mon, 8 May 2023 12:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbjEHQF3 (ORCPT ); Mon, 8 May 2023 12:05:29 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5472B5596 for ; Mon, 8 May 2023 09:05:27 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:6a18:41e7:fcfe:24c0]) by albert.telenet-ops.be with bizsmtp id uG5R290052WBekD06G5RXE; 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-001XSl-9n; Mon, 08 May 2023 18:05:25 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1pw3Mb-00BTFB-0a; 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 1/2] ARM: perf: Mark all accessor functions inline Date: Mon, 8 May 2023 18:05:18 +0200 Message-Id: <3a7d9bc7470aa2d85696ee9765c74f8c03fb5454.1683561482.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: 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/arm/include/asm/arm_pmuv3.h:110:13: error: ‘write_pmevtypern’ defined but not used [-Werror=unused-function] 110 | static void write_pmevtypern(int n, unsigned long val) | ^~~~~~~~~~~~~~~~ arch/arm/include/asm/arm_pmuv3.h:103:13: error: ‘write_pmevcntrn’ defined but not used [-Werror=unused-function] 103 | static void write_pmevcntrn(int n, unsigned long val) | ^~~~~~~~~~~~~~~ arch/arm/include/asm/arm_pmuv3.h:95:22: error: ‘read_pmevcntrn’ defined but not used [-Werror=unused-function] 95 | static unsigned long read_pmevcntrn(int n) | ^~~~~~~~~~~~~~ Fix this by adding the missing "inline" keywords to the three accessor functions that lack them. Fixes: 009d6dc87a568db6 ("ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM") Signed-off-by: Geert Uytterhoeven --- arch/arm/include/asm/arm_pmuv3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/arm_pmuv3.h b/arch/arm/include/asm/arm_pmuv3.h index 78d3d4b82c6c2598..f4db3e75d75f024e 100644 --- a/arch/arm/include/asm/arm_pmuv3.h +++ b/arch/arm/include/asm/arm_pmuv3.h @@ -92,7 +92,7 @@ #define RETURN_READ_PMEVCNTRN(n) \ return read_sysreg(PMEVCNTR##n) -static unsigned long read_pmevcntrn(int n) +static inline unsigned long read_pmevcntrn(int n) { PMEVN_SWITCH(n, RETURN_READ_PMEVCNTRN); return 0; @@ -100,14 +100,14 @@ static unsigned long read_pmevcntrn(int n) #define WRITE_PMEVCNTRN(n) \ write_sysreg(val, PMEVCNTR##n) -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) -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