{"id":1458800,"url":"http://patchwork.ozlabs.org/api/patches/1458800/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/3561ef609d471949454d58f969c036f97f596211.1616765870.git.christophe.leroy@csgroup.eu/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<3561ef609d471949454d58f969c036f97f596211.1616765870.git.christophe.leroy@csgroup.eu>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/3561ef609d471949454d58f969c036f97f596211.1616765870.git.christophe.leroy@csgroup.eu/","date":"2021-03-26T13:44:54","name":"[v3,07/17] hexagon: Convert to GENERIC_CMDLINE","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"7b36675187b68af5fa7fefec0273f82dfbcc395f","submitter":{"id":79086,"url":"http://patchwork.ozlabs.org/api/people/79086/?format=json","name":"Christophe Leroy","email":"christophe.leroy@csgroup.eu"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/3561ef609d471949454d58f969c036f97f596211.1616765870.git.christophe.leroy@csgroup.eu/mbox/","series":[{"id":236020,"url":"http://patchwork.ozlabs.org/api/series/236020/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=236020","date":"2021-03-26T13:44:49","name":"Implement GENERIC_CMDLINE","version":3,"mbox":"http://patchwork.ozlabs.org/series/236020/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/1458800/comments/","check":"success","checks":"http://patchwork.ozlabs.org/api/patches/1458800/checks/","tags":{},"related":[{"id":1461764,"url":"http://patchwork.ozlabs.org/api/patches/1461764/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1180421ba35993f4a533708b91c93f1da07d14dc.1617375802.git.christophe.leroy@csgroup.eu/","msgid":"<1180421ba35993f4a533708b91c93f1da07d14dc.1617375802.git.christophe.leroy@csgroup.eu>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/1180421ba35993f4a533708b91c93f1da07d14dc.1617375802.git.christophe.leroy@csgroup.eu/","date":"2021-04-02T15:18:11","name":"[v4,10/20] hexagon: Convert to GENERIC_CMDLINE","mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1180421ba35993f4a533708b91c93f1da07d14dc.1617375802.git.christophe.leroy@csgroup.eu/mbox/"}],"headers":{"Return-Path":"\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Authentication-Results":["ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org;\n receiver=<UNKNOWN>)","lists.ozlabs.org; spf=pass (sender SPF authorized)\n smtp.mailfrom=csgroup.eu (client-ip=93.17.236.30; helo=pegase1.c-s.fr;\n envelope-from=christophe.leroy@csgroup.eu; receiver=<UNKNOWN>)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4F6NZS4LDXz9sVm\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 27 Mar 2021 00:47:28 +1100 (AEDT)","from boromir.ozlabs.org (localhost [IPv6:::1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4F6NZS3KkBz3dbS\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 27 Mar 2021 00:47:28 +1100 (AEDT)","from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by lists.ozlabs.org (Postfix) with ESMTPS id 4F6NWY3nhLz3btQ\n for <linuxppc-dev@lists.ozlabs.org>; Sat, 27 Mar 2021 00:44:57 +1100 (AEDT)","from localhost (mailhub1-int [192.168.12.234])\n by localhost (Postfix) with ESMTP id 4F6NWT4TPXz9v03D;\n Fri, 26 Mar 2021 14:44:53 +0100 (CET)","from pegase1.c-s.fr ([192.168.12.234])\n by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024)\n with ESMTP id EEqTBNdfHvPX; Fri, 26 Mar 2021 14:44:53 +0100 (CET)","from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192])\n by pegase1.c-s.fr (Postfix) with ESMTP id 4F6NWT3Zrwz9v03B;\n Fri, 26 Mar 2021 14:44:53 +0100 (CET)","from localhost (localhost [127.0.0.1])\n by messagerie.si.c-s.fr (Postfix) with ESMTP id 58E9A8B8C9;\n Fri, 26 Mar 2021 14:44:54 +0100 (CET)","from messagerie.si.c-s.fr ([127.0.0.1])\n by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023)\n with ESMTP id Yai4PS5jsljR; Fri, 26 Mar 2021 14:44:54 +0100 (CET)","from po16121vm.idsi0.si.c-s.fr (unknown [192.168.4.90])\n by messagerie.si.c-s.fr (Postfix) with ESMTP id 0171D8B8C7;\n Fri, 26 Mar 2021 14:44:53 +0100 (CET)","by po16121vm.idsi0.si.c-s.fr (Postfix, from userid 0)\n id 80E9967611; Fri, 26 Mar 2021 13:44:54 +0000 (UTC)"],"X-Virus-Scanned":["Debian amavisd-new at c-s.fr","amavisd-new at c-s.fr"],"Message-Id":"\n <3561ef609d471949454d58f969c036f97f596211.1616765870.git.christophe.leroy@csgroup.eu>","In-Reply-To":"<cover.1616765869.git.christophe.leroy@csgroup.eu>","References":"<cover.1616765869.git.christophe.leroy@csgroup.eu>","From":"Christophe Leroy <christophe.leroy@csgroup.eu>","Subject":"[PATCH v3 07/17] hexagon: Convert to GENERIC_CMDLINE","To":"will@kernel.org, danielwa@cisco.com, robh@kernel.org,\n daniel@gimpelevich.san-francisco.ca.us","Date":"Fri, 26 Mar 2021 13:44:54 +0000 (UTC)","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"linux-arch@vger.kernel.org, devicetree@vger.kernel.org,\n microblaze <monstr@monstr.eu>, linux-xtensa@linux-xtensa.org,\n linux-sh@vger.kernel.org, linux-hexagon@vger.kernel.org, x86@kernel.org,\n linux-kernel@vger.kernel.org, nios2 <ley.foon.tan@intel.com>,\n linux-mips@vger.kernel.org, openrisc@lists.librecores.org,\n sparclinux@vger.kernel.org, linux-riscv@lists.infradead.org,\n linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"This converts the architecture to GENERIC_CMDLINE.\n\nSigned-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>\n---\n arch/hexagon/Kconfig        | 11 +----------\n arch/hexagon/kernel/setup.c | 10 ++--------\n 2 files changed, 3 insertions(+), 18 deletions(-)","diff":"diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig\nindex 44a409967af1..1e69c99bae6b 100644\n--- a/arch/hexagon/Kconfig\n+++ b/arch/hexagon/Kconfig\n@@ -18,6 +18,7 @@ config HEXAGON\n \tselect HAVE_PERF_EVENTS\n \t# GENERIC_ALLOCATOR is used by dma_alloc_coherent()\n \tselect GENERIC_ALLOCATOR\n+\tselect GENERIC_CMDLINE\n \tselect GENERIC_IRQ_SHOW\n \tselect HAVE_ARCH_KGDB\n \tselect HAVE_ARCH_TRACEHOOK\n@@ -91,16 +92,6 @@ config HEXAGON_ARCH_VERSION\n \tint \"Architecture version\"\n \tdefault 2\n \n-config CMDLINE\n-\tstring \"Default kernel command string\"\n-\tdefault \"\"\n-\thelp\n-\t  On some platforms, there is currently no way for the boot loader\n-\t  to pass arguments to the kernel. For these, you should supply some\n-\t  command-line options at build time by entering them here.  At a\n-\t  minimum, you should specify the memory size and the root device\n-\t  (e.g., mem=64M root=/dev/nfs).\n-\n config SMP\n \tbool \"Multi-Processing support\"\n \thelp\ndiff --git a/arch/hexagon/kernel/setup.c b/arch/hexagon/kernel/setup.c\nindex 1880d9beaf2b..be586cea4076 100644\n--- a/arch/hexagon/kernel/setup.c\n+++ b/arch/hexagon/kernel/setup.c\n@@ -13,6 +13,7 @@\n #include <linux/seq_file.h>\n #include <linux/console.h>\n #include <linux/of_fdt.h>\n+#include <linux/cmdline.h>\n #include <asm/io.h>\n #include <asm/sections.h>\n #include <asm/setup.h>\n@@ -22,7 +23,6 @@\n #include <asm/time.h>\n \n char cmd_line[COMMAND_LINE_SIZE];\n-static char default_command_line[COMMAND_LINE_SIZE] __initdata = CONFIG_CMDLINE;\n \n int on_simulator;\n \n@@ -38,8 +38,6 @@ void calibrate_delay(void)\n \n void __init setup_arch(char **cmdline_p)\n {\n-\tchar *p = &external_cmdline_buffer;\n-\n \t/*\n \t * These will eventually be pulled in via either some hypervisor\n \t * or devicetree description.  Hardwiring for now.\n@@ -65,11 +63,7 @@ void __init setup_arch(char **cmdline_p)\n \telse\n \t\ton_simulator = 0;\n \n-\tif (p[0] != '\\0')\n-\t\tstrlcpy(boot_command_line, p, COMMAND_LINE_SIZE);\n-\telse\n-\t\tstrlcpy(boot_command_line, default_command_line,\n-\t\t\tCOMMAND_LINE_SIZE);\n+\tcmdline_build(boot_command_line, external_cmdline_buffer, COMMAND_LINE_SIZE);\n \n \t/*\n \t * boot_command_line and the value set up by setup_arch\n","prefixes":["v3","07/17"]}