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 7BE63C433EF for ; Tue, 14 Jun 2022 11:13:48 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.348820.575001 (Exim 4.92) (envelope-from ) id 1o14UG-00087J-E8; Tue, 14 Jun 2022 11:13:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 348820.575001; Tue, 14 Jun 2022 11:13:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o14UG-00087C-BI; Tue, 14 Jun 2022 11:13:32 +0000 Received: by outflank-mailman (input) for mailman id 348820; Tue, 14 Jun 2022 11:13:31 +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 1o14UF-000876-0u for xen-devel@lists.xenproject.org; Tue, 14 Jun 2022 11:13:31 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 000b2569-ebd3-11ec-bd2c-47488cf2e6aa; Tue, 14 Jun 2022 13:13:21 +0200 (CEST) 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 C94231424; Tue, 14 Jun 2022 04:13:20 -0700 (PDT) Received: from [10.57.11.30] (unknown [10.57.11.30]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 708563F73B; Tue, 14 Jun 2022 04:13:19 -0700 (PDT) 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: 000b2569-ebd3-11ec-bd2c-47488cf2e6aa Message-ID: <55f45337-2da1-fe8f-b7a5-272577ed4d50@arm.com> Date: Tue, 14 Jun 2022 13:13:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] xen/arm: smpboot: Allocate the CPU sibling/core maps while preparing the CPU Content-Language: en-US To: Julien Grall , xen-devel@lists.xenproject.org Cc: andrew.cooper3@citrix.com, Julien Grall , Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk References: <20220614094119.94720-1-julien@xen.org> <3ed8e44f-293d-958f-c144-466e16d034e2@xen.org> From: Michal Orzel In-Reply-To: <3ed8e44f-293d-958f-c144-466e16d034e2@xen.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 14.06.2022 13:08, Julien Grall wrote: >>> +    unsigned int rc = 0; >> ... here you are setting rc to 0 even though it will be reassigned. >> Furthermore, if rc is used only in case of CPU_UP_PREPARE, why not moving the definition there? > > Because I forgot to replace "return NOTIFY_DONE;" with : > > return !rc ? NOTIFY_DONE : notifier_from_errno(rc); That is what I thought. With these fixes you can add my Rb. > > In this case, we would need to initialize rc to 0 so it doesn't get used initialized. > > Cheers, > Cheers, Michal