Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5661606rwr; Tue, 9 May 2023 04:53:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TWfObG+iXczS/WGsT+Ydrp6FHO2/6l0CvheRtKuoJJ17JcqPg19PLvfbwOdJ6Up6eqsN2 X-Received: by 2002:a17:902:b085:b0:1aa:fdab:24a5 with SMTP id p5-20020a170902b08500b001aafdab24a5mr12469228plr.10.1683633205319; Tue, 09 May 2023 04:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683633205; cv=none; d=google.com; s=arc-20160816; b=avtqEgwpDLQPVlDJ16SohNgQWPXoHY3nX1N0daJg24pFdHFT4n97baCWCuJDUZET1x XyBy4hwexT+3OTEAzawO1J6j7hnEOU188t5jTt23pTakWx2cj9HbZEGh8tUWrvAvNoe0 2/zzhxSh+dFW9tWK/Ku0hZf4C1g/p1qwadrAQltLRUOqEyrJIwJy+uiGjS63osbNFyQh Dl1m5vfvtJaxRvjNbz3cRbiJxKY77SrzNb2kFs/RczGxcvQm3iNz52s2uS8ccdhas+C/ VHikWUXeGytP+ZAB/r4/iSzwdoFcxWVcxrTsCcWwFqm/6xj5iQZUCu/k3xzVdN+CBpVq iduA== 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=TOvM7WinAB4p8bO2igb4QGdaJsbAvSsHJDquXtlUDtM=; b=VR5AA3ESelX9T3jqEe0V88788/Yq8QsHvrJaBsFViCZP4WvJy+OvAh1Xf34jcgc/bJ k3BiGcK38P7q2uwRhcn5BUTsw7w7Wt7A5+Ex6o9D3XOId3/gpF6nyJ8HyeU3RMMqzbCe T8CYZSlav+Dpc+B3Lg1pqaDeG7BWre4n6AqhUxATMytcqcatsu89gN+WxlypIshuI1Vf 7iRbzni6ttqXKa1hH8C0Yr9ecmzdfzyjyYnx4oaISICyWdGlgk3OSkvr4JCI0GXKe/xq VJiAWt2GmmicUV7iGN6gaVTewKdc4pMqyH52bwjvsetQy3kJ42uumVBZDTw9/4bE3xfz G9Tw== 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 h12-20020a170902f54c00b001a98e569e33si1327293plf.588.2023.05.09.04.53.12; Tue, 09 May 2023 04:53:25 -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 S234919AbjEIL1w (ORCPT + 99 others); Tue, 9 May 2023 07:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234305AbjEIL1v (ORCPT ); Tue, 9 May 2023 07:27:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CADC526AF for ; Tue, 9 May 2023 04:27:49 -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 0EAA0FEC; Tue, 9 May 2023 04:28:34 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.56.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5D1A33F67D; Tue, 9 May 2023 04:27:48 -0700 (PDT) Date: Tue, 9 May 2023 12:27:45 +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 1/2] ARM: 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: <3a7d9bc7470aa2d85696ee9765c74f8c03fb5454.1683561482.git.geert+renesas@glider.be> 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:18PM +0200, Geert Uytterhoeven wrote: > 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 Acked-by: Mark Rutland Mark. > --- > 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 >