From nobody Mon May 13 02:37:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1686837071277528.2972086151199; Thu, 15 Jun 2023 06:51:11 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.549609.858222 (Exim 4.92) (envelope-from ) id 1q9nN1-0002uN-Nh; Thu, 15 Jun 2023 13:50:39 +0000 Received: by outflank-mailman (output) from mailman id 549609.858222; Thu, 15 Jun 2023 13:50:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q9nN1-0002uG-Ks; Thu, 15 Jun 2023 13:50:39 +0000 Received: by outflank-mailman (input) for mailman id 549609; Thu, 15 Jun 2023 13:50:38 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q9nN0-0002uA-Ps for xen-devel@lists.xenproject.org; Thu, 15 Jun 2023 13:50:38 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 9b458cc1-0b83-11ee-b232-6b7b168915f2; Thu, 15 Jun 2023 15:50:37 +0200 (CEST) Received: from federico.dell.bugseng.com (unknown [37.162.212.93]) by support.bugseng.com (Postfix) with ESMTPSA id D4CF14EE0738; Thu, 15 Jun 2023 15:50:35 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 9b458cc1-0b83-11ee-b232-6b7b168915f2 From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [XEN PATCH] xen/arch/arm/traps: remove inlining of handle_ro_raz() Date: Thu, 15 Jun 2023 15:50:16 +0200 Message-Id: <98c6fb7ace8fce22bc263fe1d7fffac4e8130b57.1686835890.git.federico.serafini@bugseng.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1686837073589100001 Content-Type: text/plain; charset="utf-8" To comply with MISRA C:2012 Rule 8.10 ("An inline function shall be declared with the static storage class"), remove inline function specifier from handle_ro_raz() since asking the compiler to inline such function does not seem to add any kind of value. Signed-off-by: Federico Serafini Acked-by: Julien Grall Reviewed-by: Michal Orzel --- xen/arch/arm/traps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index f6437f6aa9..ef5c6a8195 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -1677,11 +1677,11 @@ void handle_ro_read_val(struct cpu_user_regs *regs, } =20 /* Read only as read as zero */ -inline void handle_ro_raz(struct cpu_user_regs *regs, - int regidx, - bool read, - const union hsr hsr, - int min_el) +void handle_ro_raz(struct cpu_user_regs *regs, + int regidx, + bool read, + const union hsr hsr, + int min_el) { handle_ro_read_val(regs, regidx, read, hsr, min_el, 0); } --=20 2.34.1