Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5663589rwr; Tue, 9 May 2023 04:55:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Xmee3EI50UrM9Y3Pf9cT9cPrvR3rAK7Zt+8RQk1WssecRg8jRme+UxmifKG1CkNJFKNNO X-Received: by 2002:a05:6a20:8f13:b0:101:2160:ff89 with SMTP id b19-20020a056a208f1300b001012160ff89mr3717304pzk.38.1683633318606; Tue, 09 May 2023 04:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683633318; cv=none; d=google.com; s=arc-20160816; b=Mw5lTJTO8gMAppYm2/ZdljcfgpN46EYKjPxZ1QPkSC+0HNzgRhyXXytVu4KTmQ0Bub oMPe5po2d6Mwm2eTlj6rHqmMqF00MQQrUr5eDCg3uo7Dp3CQRa+ET98tUV21dfyGMsyU G0Gn5Y9m/Qjs015e6HFIShLRZuNi6MJGbh/BvJ/b8B3bFjI2iWIFL/5RxrV5W9xnqNKC v/DM3szGzWHQ1hLF7/QNe5yJhx8JyLar+HctjhcWGf+1a0hRQtwErHJLG/129F9gSWp0 lxhWtfzZfeD/jV5ZUPtRWD/En4Xej0UV6zf1Ht4lY407o1auF/7DceJR+JCdEjAFNQCy JMSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4WEjtljI2R9Kp68KosVxnNMDNz1Cfgu3oBx7ZZ1V968=; b=WK13MIhWINPbn9Dm/2o86eQUWJZzmG4XwB8kocSiAwMW1lYv+SO6vRsR60oaHYr2zQ 73kU7oSnMiV9CN7/8cZo/P9K0EI09W7rPIZ4hsqvVoixJaNSPQrebI0pEgHfGGfs9cIU QRRnBeZesnbeXXB7HR/abwC3gXWyMXjKy9S9hxLXFDxoi6rn1Iuk3dgmiAAyzTyrMmmE ZTUyqh1enG/6GJCkRDcUYGMpoOuqKf60EzjXdEHHSURDOzqTDD8SyHX5HEOnX551Zlrj UkDve/gTk9aFN1dN2aFzhGhOJy41cjBUIhHjdN6OQAZxS5tb6QIvZzMBetM4NFyCazdM PErA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g126-20020a636b84000000b0052c9d173ef6si1260992pgc.852.2023.05.09.04.55.06; Tue, 09 May 2023 04:55:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235068AbjEIL2N (ORCPT + 99 others); Tue, 9 May 2023 07:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235342AbjEIL2M (ORCPT ); Tue, 9 May 2023 07:28:12 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEE972D49 for ; Tue, 9 May 2023 04:28:10 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 05BAEFEC; Tue, 9 May 2023 04:28:55 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.56.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 53A493F67D; Tue, 9 May 2023 04:28:09 -0700 (PDT) Date: Tue, 9 May 2023 12:28:06 +0100 From: Mark Rutland To: Geert Uytterhoeven Cc: Marc Zyngier , Russell King , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: perf: Mark all accessor functions inline Message-ID: References: <3a7d9bc7470aa2d85696ee9765c74f8c03fb5454.1683561482.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 On Mon, May 08, 2023 at 06:05:19PM +0200, Geert Uytterhoeven wrote: > 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 Acked-by: Mark Rutland Mark. > --- > 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 >