Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5448697rwr; Tue, 9 May 2023 01:22:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Gt/j5yLhAqXNNFDXX/0ywCaeoSLXiLfNavs5alR3yWEXKTi2+fMjA7pqlixJs7gxWVm4r X-Received: by 2002:a05:6a20:938b:b0:d9:6650:ef14 with SMTP id x11-20020a056a20938b00b000d96650ef14mr17500534pzh.31.1683620537147; Tue, 09 May 2023 01:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683620537; cv=none; d=google.com; s=arc-20160816; b=zpp79EyabRa8xjb0P5q+S3C/HilA82DMhqLAL5dObmLJgLSDvPzUvWHn1lCxpv09al U57ve380eYIbus3mWRqp0hvZtcp5OjYqA9uO/aoxLMAhk8kzltZ4M0RAOcWRpccKlEQI oJXdSehc1LEuVZmlXN+nQVbfES6Bj0sfmClJg74Lbcvx4YzcTe0E9tPAPvgUCKc+0I5g BvdEhqovLYlPbl8g2eAs5nvrav7I9qugBT7S2PaU7BNHUjt/VzWSEmGlOMJP+WlbNyJY Z1Ni8hoP0ENEzKfQOlOQ9XLUs+BBFx29Bm3jqhpkNPTKsIUnC2Hw+qqhwm1u47WBKaUP P8bg== 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 :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=JusbUiJsl6rZ+MO25U2nd4ntwMP2Kgpb5RyKwwmZVU0=; b=kYOcNmr0yLoyoFVCDkriAC9aRoMRaxPEy2AqOudmuOcqN2lzcEFgk9Fmo3sui06lpX XCHFLbi1NWIQ192XL2dzW8F63E+JqAcauZesQfrD7icNIKDVVTLExolzcweEXw4wNJzy Oi+QgdC9luAPtGAaapfQxl+TSH9T0Dz+KysVrIy0b5QrpeJimG4fg3OQ3+xShHgedn7j P/84Mk5vsb6oxRF3RTOcDpsDcFv+UVgKe0Qh5J7nu67PESGCt0Izdf04pPibfwtkf3lv kGGnjrezk1Kia0JGkDg5eKOoCCJUYQ41SXS8e03dympjqfUJqBTqOA8me6bI9ujByqKP CoOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="avh9vw/Y"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a637b01000000b00502d825633asi933633pgc.639.2023.05.09.01.22.04; Tue, 09 May 2023 01:22:17 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="avh9vw/Y"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234799AbjEIIDx (ORCPT + 99 others); Tue, 9 May 2023 04:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235041AbjEIIDZ (ORCPT ); Tue, 9 May 2023 04:03:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18AC106DF for ; Tue, 9 May 2023 01:02:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9A9561825 for ; Tue, 9 May 2023 07:56:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3465C433A7; Tue, 9 May 2023 07:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683618961; bh=mwtNdR8idA2DbPRgzw3PrtbTC2Z2A+y43aEyF1Zi2SY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=avh9vw/YFfASfIGXxo6N17tOFfJzRCwKHdeCY0M3a2aqc3bKMbaKsPGfDPvQgwtJa 4jl24qGir4wV6zxN44LbSyCThco5cu8gFpeCjgPIebKsvDyEQtpn85Lb2TGTjQTtvc kBf/g6k43HcWP2/6M+U+JhbogWuJ4cSnSk2HGMYSNByyNFnuiNsaOOy+Quy7ZzKfSu s5O2OhaXyPxSMe0xzhF4cK7zIskAycnmgqAo3gHL/qrUFYRU+ReEOXVNTIrgNJqBaC HHr+XIZHaN9wewy0jq5mxmj2HMWZr7frsEThjia46Sn3hr0PLLSQt/UJ8/aqlEK0O1 XQt+UpjgeXuUw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pwICV-00Dp5r-LD; Tue, 09 May 2023 08:55:59 +0100 Date: Tue, 09 May 2023 08:55:59 +0100 Message-ID: <863546ndkg.wl-maz@kernel.org> From: Marc Zyngier To: Geert Uytterhoeven Cc: 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 In-Reply-To: References: <3a7d9bc7470aa2d85696ee9765c74f8c03fb5454.1683561482.git.geert+renesas@glider.be> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: geert+renesas@glider.be, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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, 08 May 2023 17:05:19 +0100, Geert Uytterhoeven wrote: >=20 > When just including : >=20 > arch/arm64/include/asm/arm_pmuv3.h:31:13: error: =E2=80=98write_pmevt= ypern=E2=80=99 defined but not used [-Werror=3Dunused-function] > 31 | static void write_pmevtypern(int n, unsigned long val) > | ^~~~~~~~~~~~~~~~ > arch/arm64/include/asm/arm_pmuv3.h:24:13: error: =E2=80=98write_pmevc= ntrn=E2=80=99 defined but not used [-Werror=3Dunused-function] > 24 | static void write_pmevcntrn(int n, unsigned long val) > | ^~~~~~~~~~~~~~~ > arch/arm64/include/asm/arm_pmuv3.h:16:22: error: =E2=80=98read_pmevcn= trn=E2=80=99 defined but not used [-Werror=3Dunused-function] > 16 | static unsigned long read_pmevcntrn(int n) > | ^~~~~~~~~~~~~~ >=20 > Fix this by adding the missing "inline" keywords to the three accessor > functions that lack them. Looks reasonable to me. Each of these accessors is used exactly once in the PMUv3 driver, so the inlining doesn't result in extra bloat. Reviewed-by: Marc Zyngier M. --=20 Without deviation from the norm, progress is not possible.