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 53B6EC433F5 for ; Wed, 24 Nov 2021 17:51:43 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.230486.398427 (Exim 4.92) (envelope-from ) id 1mpwQW-0001Nx-BI; Wed, 24 Nov 2021 17:51:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 230486.398427; Wed, 24 Nov 2021 17:51:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mpwQW-0001Nq-80; Wed, 24 Nov 2021 17:51:24 +0000 Received: by outflank-mailman (input) for mailman id 230486; Wed, 24 Nov 2021 17:51:22 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mpwQU-0001Ne-QA for xen-devel@lists.xenproject.org; Wed, 24 Nov 2021 17:51:22 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mpwQU-00049s-LB; Wed, 24 Nov 2021 17:51:22 +0000 Received: from 54-240-197-231.amazon.com ([54.240.197.231] helo=[192.168.24.101]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mpwQU-0005bP-FZ; Wed, 24 Nov 2021 17:51:22 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=9/OAstWZhdrJPHZds0bfMhWSk/RKknvR96WFds8HWS4=; b=y2Kzb7EcZHj1o6R+du/8lnhuB0 o8cucFCyD1qyCrCwDrheDDoPkEJh+/4m4xxDPWVZ2auLJYo6V1y5LNv8TQSaBiCXTIGjPb8Jz3PD+ NW4Vcg1aJoTKlnB6LdzXrCLgxUsX5vUktbTj2lyxCj8gi2SFELifP1N7Z8cEiidZbMeo=; Message-ID: <04fb338e-bbfe-7203-7c9f-fd31194a6d27@xen.org> Date: Wed, 24 Nov 2021 17:51:20 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH v3 05/10] xen/arm: add ASSERT_UNREACHABLE in allocate_static_memory To: Penny Zheng , xen-devel@lists.xenproject.org, sstabellini@kernel.org Cc: Bertrand.Marquis@arm.com, Wei.Chen@arm.com References: <20211116063155.901183-1-penny.zheng@arm.com> <20211116063155.901183-6-penny.zheng@arm.com> From: Julien Grall In-Reply-To: <20211116063155.901183-6-penny.zheng@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Penny, On 16/11/2021 06:31, Penny Zheng wrote: > Helper allocate_static_memory is not meant to be reachable when built with ^ The helper... > !CONFIG_STATIC_MEMORY, so this commit adds ASSERT_UNREACHABLE in it to catch > potential misuse. > > Signed-off-by: Penny Zheng Acked-by: Julien Grall Cheers, -- Julien Grall