Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp963174pxb; Wed, 3 Mar 2021 22:42:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEwCEpm4J8wCz93WHTYmU6I4IyU+CAhJeqLUNKdC7gDL0xVDERDR8sGne4aV2c+DYMg324 X-Received: by 2002:aa7:c3c4:: with SMTP id l4mr2623290edr.335.1614840157948; Wed, 03 Mar 2021 22:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614840157; cv=none; d=google.com; s=arc-20160816; b=k6I+j3YcrptEE6OOqT7pNxMUQmlBkBNBP+RPWevEQKNod6qA7oS4BU1WyUVl+of5o2 NFMNsMvUMzVvqJK0EJLVtduV8FYxreiRV26nTapqdQIs7yU2G0gJrAHcZuG0DfzKwODz uuP0he0g+dVWcGTAPXy76gbasJII9v6dxH46VRNdl+xelYw34W6pW/eNgMvANPiCHRRx z+IpOeVbhKkaWRgwP+Xt6fY+V3Tz+lqz9AP4MD+hjUr3FYI4MwHt6PcOtZ7chDWhxlfS wHTP3ogjuMWYi8JfoyfkmorCDTnSHVIM6HkEi7+UYU4RJGhBUxBwtaO8d8a14y9O8c9K LKRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:message-id; bh=Wz8pKOMIabYDC9TguDRo7clKvXxN02+yN3Vn9Zv/hf4=; b=fQgwWqozstHp+BbK2NvXheuYhPfHkREmnLllGa81KpK7mcJ1e+qH6QzkkYvgd+sgo8 DcmilJCeYM0d8uJhnrw5KxV3PGwouZNzcsU0YbSqIJYIX2gL0Jm4v1WRhnGHn9COonKT asXKicqrOhd26ddLBrnBpcMnlN2Jaqwf1hhuYAPTg/t+NFg6OQx3OwTfkmuG0TxoLOfu +A9sDelDB15FizAsZDLIbBWw9100BaK0tv9YWmzIvZAR7QOLSQLz1qg2cxr04htqH3cT MwfaAaQOdupahEK8CcyD+TzJWZ9SS4tX7rrw2bbb71f7n2WkncdkK3q9CsZdORTNCKkm MjoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si11311100edv.220.2021.03.03.22.42.15; Wed, 03 Mar 2021 22:42:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837319AbhCBUvO (ORCPT + 99 others); Tue, 2 Mar 2021 15:51:14 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:13051 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352009AbhCBRvJ (ORCPT ); Tue, 2 Mar 2021 12:51:09 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4DqkXq2Y55z9v1By; Tue, 2 Mar 2021 18:25:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 3XK1Ji_IwYa7; Tue, 2 Mar 2021 18:25:15 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4DqkXq139Yz9v1Bx; Tue, 2 Mar 2021 18:25:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D6D058B7B5; Tue, 2 Mar 2021 18:25:16 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id fhn6Nsk8d_7h; Tue, 2 Mar 2021 18:25:16 +0100 (CET) Received: from po16121vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 81F848B75F; Tue, 2 Mar 2021 18:25:16 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 0) id 41160674A2; Tue, 2 Mar 2021 17:25:16 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v2 0/7] Improve boot command line handling To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , danielwa@cisco.com, robh@kernel.org, daniel@gimpelevich.san-francisco.ca.us Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, devicetree@vger.kernel.org Date: Tue, 2 Mar 2021 17:25:16 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this series is to improve and enhance the handling of kernel boot arguments. It is first focussed on powerpc but also extends the capability for other arches. This is based on suggestion from Daniel Walker Christophe Leroy (7): cmdline: Add generic function to build command line. drivers: of: use cmdline building function powerpc: convert to generic builtin command line cmdline: Add capability to prepend the command line powerpc: add capability to prepend default command line cmdline: Gives architectures opportunity to use generically defined boot cmdline manipulation powerpc: use generic CMDLINE manipulations arch/powerpc/Kconfig | 37 ++----------------- arch/powerpc/kernel/prom_init.c | 35 +++--------------- drivers/of/fdt.c | 23 ++---------- include/linux/cmdline.h | 65 +++++++++++++++++++++++++++++++++ init/Kconfig | 56 ++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+), 83 deletions(-) create mode 100644 include/linux/cmdline.h -- 2.25.0