From patchwork Mon Jul 2 20:50:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10502375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C73460362 for ; Mon, 2 Jul 2018 20:50:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78B4828C5D for ; Mon, 2 Jul 2018 20:50:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6905828D51; Mon, 2 Jul 2018 20:50:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DF7528C5D for ; Mon, 2 Jul 2018 20:50:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbeGBUuZ (ORCPT ); Mon, 2 Jul 2018 16:50:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40926 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752789AbeGBUuY (ORCPT ); Mon, 2 Jul 2018 16:50:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dzHWSirdhjaVou+XhDBieBh2mLdaXme8EDgluBGNq+g=; b=UTk+TTV8CjQ5dsMfDvpzgshGN QAjQ5nY4k1kar36X009kg8UA+u/PA0iblkJHuL6WVcpLBJ3IVU38G2YEDbSE3h1YzMfVkJd55OySK 67LQb9TaA8ZbNxXttwJUvmirxxEJdcd+DemEIPC/hyr0kF41HJm3abm4J9+0akoMMnhYAyvg6E5Kc iROHhPk1yip9Q7Sg04p/1eqouzGGeK2kqHLSpdAr0hPqSu8cS5IlGPoz3aowWpgK4vb3NsvwyAZJB WAK1NlbbuOVFgEWZ9nvEu8C43veap9XlwcAIHUXkU8ASqAkLaWLGHVmGmgVxKk8ixr0XM0fQXZgU/ eUuaUwsYQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fa5mC-0002Ol-3p; Mon, 02 Jul 2018 20:50:24 +0000 Subject: Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig From: Randy Dunlap To: Christoph Hellwig , Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180702144711.22111-1-hch@lst.de> <20180702144711.22111-2-hch@lst.de> <43b9a29d-27fc-1b6e-6f90-9187749bf338@infradead.org> Message-ID: <7f7dfd3d-6d4b-fc64-956b-1defc5c5a7c3@infradead.org> Date: Mon, 2 Jul 2018 13:50:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <43b9a29d-27fc-1b6e-6f90-9187749bf338@infradead.org> Content-Language: en-US Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 07/02/18 13:41, Randy Dunlap wrote: > --- linux-next-20180702.orig/init/Kconfig > +++ linux-next-20180702/init/Kconfig > @@ -1717,6 +1717,12 @@ config PROFILING > config TRACEPOINTS > bool > > +# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig > +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS > +# before the default value is found in arch/Kconfig. > + > +source "arch/$(SRCARCH)/Kconfig" > + > source "arch/Kconfig" > > endmenu # General setup > except that the endmenu should be moved up a few lines so that the Processor type and features menu is not part of the General setup menu. v2 patch is below. --- From: Randy Dunlap Present "General setup" before "Processor type and features". This is done by sourcing arch/$(SRCARCH)/Kconfig before arch/Kconfig inside init/Kconfig. Signed-off-by: Randy Dunlap --- v2: move General setup's endmenu before the $ARCH Kconfigs. Kconfig | 2 -- init/Kconfig | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20180702.orig/Kconfig +++ linux-next-20180702/Kconfig @@ -9,8 +9,6 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" -source "arch/$(SRCARCH)/Kconfig" - source "init/Kconfig" source "kernel/Kconfig.freezer" --- linux-next-20180702.orig/init/Kconfig +++ linux-next-20180702/init/Kconfig @@ -1717,10 +1717,16 @@ config PROFILING config TRACEPOINTS bool -source "arch/Kconfig" - endmenu # General setup +# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS +# before the default value is found in arch/Kconfig. + +source "arch/$(SRCARCH)/Kconfig" + +source "arch/Kconfig" + config RT_MUTEXES bool