Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5725636ybp; Tue, 15 Oct 2019 04:13:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJy7RKaTRt2HwaHp3j+tKghpH891noMqJe60W2bW1EA9YYM7JQ/hKPRXFrSyBhsm3jXxsI X-Received: by 2002:a17:906:3949:: with SMTP id g9mr3809755eje.171.1571138013749; Tue, 15 Oct 2019 04:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571138013; cv=none; d=google.com; s=arc-20160816; b=xIzCr0J5W+9jw2k9N4N0gbjykdaRAmyy5K1hfuxfO0ElQs+Ru431Jffzq6o8cv+bBr Cwa9NAn+Kyci5jjeaB/DLQWLgEyK34UHkp+J/LlCKUvmtRoX2r63P5AAarlvc8xRVYqd wdzKF53lfZyNc0h63putliSzLFzOVCcpXBA1hmBscIjdXT97+azYqdkp7Ojkz51BKAQV r/q2Zs39fja8majvesxUIRQ9DS42Wvdh2j8YpotPbdVrJlZoi1qEyJAOrcQ9itCh5hZf vUPX+5mYubRrNxO6WJlKoku/p0k9p432MYlu4h5oCS+7Orjnwae+wxLhYhSZ8rOrYZcd RANQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=ONJZCSUPDBHP6McYhDvwfOOEFm5ImLjB/eKq9nYDs9c=; b=FTFETBFCRftglHE5lxYW+l2oLSnVJtUO0PgZXnvS+s+7bBmZqc7T0jFCIcvJz4yFRZ r0H0lLNlBcljXiK6ruewPxhPJdV0tN+woSl/lG+cgMjc6zz+xxMLbxXrh1tBcdA5REg1 j1RPYCkGB3TdWg3I2fHmdD8uWcNitXkuQp4uBQVhEMmEv+9xy712CEOC3dPJB2+kLjSa OHqITDAPKIHGsRhtUDx08YG+rDJBCtV7wy+ra/ieD3OvYj8MwyVSzmXcCLgumAcy73FB AVznbBxKZxAwuCBu43CM5SigeY5QaXCzv90/NOksacxhXQoAp3r37esOhQOlpa1/KOsv o0cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si12842024ejp.418.2019.10.15.04.13.10; Tue, 15 Oct 2019 04:13:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbfJOIiV (ORCPT + 99 others); Tue, 15 Oct 2019 04:38:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3716 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726275AbfJOIiV (ORCPT ); Tue, 15 Oct 2019 04:38:21 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9B850CAF8BBCA47091DA; Tue, 15 Oct 2019 16:38:18 +0800 (CST) Received: from [127.0.0.1] (10.202.227.179) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 15 Oct 2019 16:38:10 +0800 Subject: Re: [PATCH 2/3] arm64: configs: unset CMDLINE_FORCE To: Anders Roxell , , References: <20190926193030.5843-1-anders.roxell@linaro.org> <20190926193030.5843-4-anders.roxell@linaro.org> CC: , , Arnd Bergmann , Olof Johansson , "Guohanjun (Hanjun Guo)" , From: John Garry Message-ID: Date: Tue, 15 Oct 2019 09:38:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20190926193030.5843-4-anders.roxell@linaro.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.179] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/09/2019 20:30, Anders Roxell wrote: > When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig > CONFIG_CMDLINE_FORCE gets enabled. Which forces the user to pass the > full cmdline to CONFIG_CMDLINE="...". > > Rework so that we disable CONFIG_CMDLINE_FORCE in the defconfig file so > we don't have to pass in the CONFIG_CMDLINE="..." when building an > allmodconfig kernel. Since CONFIG_CMDLINE_FORCE is unset default, so > when doing 'make savedefconfig' CONFIG_CMDLINE_FORCE will be dropped. > > Signed-off-by: Anders Roxell > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index 52a32b53b2ed..878f379d8d84 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -854,3 +854,4 @@ CONFIG_MAGIC_SYSRQ=y > CONFIG_DEBUG_KERNEL=y > # CONFIG_SCHED_DEBUG is not set > CONFIG_MEMTEST=y > +# CONFIG_CMDLINE_FORCE is not set This was my initial idea for an alternative Kconfig change: --->8--- According to the comment for CMDLINE, we should at least have the root device defined. So if CMDLINE is "", then it can not be defined so disallow CMDLINE_FORCE in this scenario. diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 950a56b71ff0..6f3bff2f385e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1580,6 +1580,7 @@ config CMDLINE config CMDLINE_FORCE bool "Always use the default kernel command string" + depends on CMDLINE != "" help Always use the default kernel command string, even if the boot loader passes other arguments to the kernel. >