Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FAC8C4167B for ; Thu, 7 Dec 2023 14:14:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.649907.1015005 (Exim 4.92) (envelope-from ) id 1rBF92-0002pF-1A; Thu, 07 Dec 2023 14:14:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 649907.1015005; Thu, 07 Dec 2023 14:14:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rBF91-0002p8-U3; Thu, 07 Dec 2023 14:14:27 +0000 Received: by outflank-mailman (input) for mailman id 649907; Thu, 07 Dec 2023 14:14:27 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rBF91-0002p0-7S for xen-devel@lists.xenproject.org; Thu, 07 Dec 2023 14:14:27 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ece2f238-950a-11ee-9b0f-b553b5be7939; Thu, 07 Dec 2023 15:14:25 +0100 (CET) Received: from support.bugseng.com (support.bugseng.com [162.55.131.47]) by support.bugseng.com (Postfix) with ESMTPA id CE5FD4EE073A; Thu, 7 Dec 2023 15:14:24 +0100 (CET) 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: ece2f238-950a-11ee-9b0f-b553b5be7939 MIME-Version: 1.0 Date: Thu, 07 Dec 2023 15:14:24 +0100 From: Nicola Vetrini To: Julien Grall Cc: xen-devel@lists.xenproject.org, consulting@bugseng.com, Andrew Cooper , George Dunlap , Jan Beulich , Stefano Stabellini , Wei Liu Subject: Re: [XEN PATCH v2 3/3] xen/mm: add declaration for first_valid_mfn In-Reply-To: References: <2c02524be7d02064fdf2f5003ef1c507034e4437.1701947290.git.nicola.vetrini@bugseng.com> Message-ID: X-Sender: nicola.vetrini@bugseng.com Organization: BUGSENG s.r.l. Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit On 2023-12-07 14:52, Julien Grall wrote: > Hi, > > On 07/12/2023 11:11, Nicola Vetrini wrote: >> Such declaration is needed to comply with MISRA C Rule 8.4, because a >> compatible declaration is not visible in xen/common/page_alloc.c, >> where the >> variable is defined. That variable can't yet be static because of the >> lack of >> support from ARM and PPC for NUMA. >> >> No functional change. >> >> Signed-off-by: Nicola Vetrini >> --- >> Having this declaration essentially sidesteps the current >> impossibility >> of having a static variable, as described in the comments in >> ARM and PCC's asm/numa.h. > With this change, is there any reason to keep the various declaration > of first_valid_mfn in numa.h? > > Cheers, Good point: no reason comes to mind. I didn't think of it while revising the patch. -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)