Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggnQX-0005MC-0H for kexec@lists.infradead.org; Tue, 08 Jan 2019 09:12:02 +0000 Date: Tue, 8 Jan 2019 17:11:52 +0800 From: Dave Young Subject: Re: [PATCH V2] x86/kexec: fix a kexec_file_load failure Message-ID: <20190108091152.GA715@dhcp-128-65.nay.redhat.com> References: <20181228011247.GA9999@dhcp-128-65.nay.redhat.com> <20190108052440.GA17983@MiWiFi-R3L-srv> <20190108084657.GA32321@dhcp-128-65.nay.redhat.com> <20190108085157.GB17983@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190108085157.GB17983@MiWiFi-R3L-srv> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Baoquan He Cc: x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro , Ingo Molnar , Borislav Petkov , "Eric W. Biederman" , Andrew Morton , Thomas Gleixner , Vivek Goyal On 01/08/19 at 04:51pm, Baoquan He wrote: > On 01/08/19 at 04:46pm, Dave Young wrote: > > > Wondering why this place doesn't need the initialization assignment. > > > Isn't it to assign in all places before kexec_add_buffer() calling? > > > > C designated initializers will make sure to initialize it as zero. > > We set KEXEC_BUF_MEM_UNKNOWN as 0 so it just works. > > Got it, it works, thanks. People may need check code to find out > KEXEC_BUF_MEM_UNKNOWN is 0, then realize this fact. Agreed, it is not very clear now. It's better to improve it with some explict initial value since we have the macro. But since this is a regression I suggest to fix the bug first, I can send a patch later for the improvement. Thanks! > > Other than this, it looks good to me, ack it. > > Acked-by: Baoquan He > > Thanks > Baoquan _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec