Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965035AbeAJDIQ (ORCPT + 1 other); Tue, 9 Jan 2018 22:08:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34386 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753512AbeAJDIO (ORCPT ); Tue, 9 Jan 2018 22:08:14 -0500 Date: Wed, 10 Jan 2018 11:08:04 +0800 From: Dave Young To: "Kirill A. Shutemov" Cc: Baoquan He , Ingo Molnar , Mike Galbraith , Andrew Morton , "Kirill A. Shutemov" , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Cyrill Gorcunov , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , linux-mm@kvack.org, Vivek Goyal , kexec@lists.infradead.org Subject: Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y Message-ID: <20180110030804.GB1744@dhcp-128-110.nay.redhat.com> References: <20171222084623.668990192@linuxfoundation.org> <20171222084625.007160464@linuxfoundation.org> <1515302062.6507.18.camel@gmx.de> <20180108160444.2ol4fvgqbxnjmlpg@gmail.com> <20180108174653.7muglyihpngxp5tl@black.fi.intel.com> <20180109001303.dy73bpixsaegn4ol@node.shutemov.name> <20180109010927.GA2082@dhcp-128-65.nay.redhat.com> <20180109054131.GB1935@localhost.localdomain> <20180109072440.GA6521@dhcp-128-65.nay.redhat.com> <20180109090552.45ddfk2y25lf4uyn@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109090552.45ddfk2y25lf4uyn@node.shutemov.name> User-Agent: Mutt/1.8.2 (2017-04-18) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 10 Jan 2018 03:08:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 09, 2018 at 12:05:52PM +0300, Kirill A. Shutemov wrote: > On Tue, Jan 09, 2018 at 03:24:40PM +0800, Dave Young wrote: > > On 01/09/18 at 01:41pm, Baoquan He wrote: > > > On 01/09/18 at 09:09am, Dave Young wrote: > > > > > > > As for the macro name, VMCOREINFO_SYMBOL_ARRAY sounds better. > > Yep, that's better. > > > > I still think using vmcoreinfo_append_str is better. Unless we replace > > > all array variables with the newly added macro. > > > > > > vmcoreinfo_append_str("SYMBOL(mem_section)=%lx\n", > > > (unsigned long)mem_section); > > > > I have no strong opinion, either change all array uses or just introduce > > the macro and start to use it from now on if we have similar array > > symbols. > > Do you need some action on my side or will you folks take care about this? I think Baoquan was suggesting to update all array users in current code, if you can check every VMCOREINFO_SYMBOL and update all the arrays he will be happy. But if can not do it easily I'm fine with a VMCOREINFO_SYMBOL_ARRAY changes only now, we kdump people can do it later as well. > > -- > Kirill A. Shutemov Thanks Dave