Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2267502imm; Thu, 27 Sep 2018 09:58:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Wa3Z+ADQvCSWm4DVYKdwyR1DbbM3prF4WBzlBaAPtEgNAUPE/0YSostL3aERSjVuB5lVl X-Received: by 2002:a17:902:46a4:: with SMTP id p33-v6mr12072215pld.205.1538067507936; Thu, 27 Sep 2018 09:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538067507; cv=none; d=google.com; s=arc-20160816; b=bSWcLrvABryDa0qtoDSSytW8+vAPx4HVAWkUwgM8gg52gjos5jQoe3pZ7ngCWNhvbl IE9/jJp2AuUoXILq0SgdE0kftargV7uyhsrd5jSe9Hf4yQiNQ0NGHgShVk7v960kl79Z YsAGXs/D5HrADSbe2LZeBZzBvtIYAlaCNiVk58Vw6hNpS1pi2qoF1c+wqW8xgIZfR637 dArgpp4fOae7lGvCTAQA9p2syWe5CP4Zl1bJzAxmNtpiAlahsFaYIiXpRat1QlmltvOs Z85vb8t0Htr/wInyrMQTpBG4yVWVlSmA6bPyG9Wsijc+Q3Z/vco0WP8HfkP5XVm89DP1 q2CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Ftajp3MRZ0PhsPnNocPMO/7ah4Nv3Xl7uHwrfu4Kndc=; b=HK58K/bSJSdLRWXAgWRkC26MtFNf+l8L3aXpSPz5egUOc86b6zF+T2HG6h6xUU1nsT Dc3/c9/x1mwYKwWhrShTYINaraHJkcZsk9sYU7eytxygFJGa3sfMrkoi9ZB7xn1Q+S6j K/ul4S7g9UvZWg0umMKb3ihJFc6w51+ccSETAhChaVhXzXxbPFgZLGjv6wgMRsAUfpVt W6TVR2MZX98VQdRCwLMOcxnAfn+0tdZEbO0vKUsnpKuEh4r9t9w/EYXEjHXlX8GdjE1N hV0Ut5M+fXrHlINBvjrytmhD4eY/+Q7yxJbVm/KTMqsBSvTHXz1JBQhIAcnmq0bfVSVo lkMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=Tr5QfC4u; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11-v6si2323753plv.434.2018.09.27.09.57.58; Thu, 27 Sep 2018 09:58:27 -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; dkim=pass header.i=@globallogic.com header.s=google header.b=Tr5QfC4u; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728581AbeI0XQG (ORCPT + 99 others); Thu, 27 Sep 2018 19:16:06 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40569 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728152AbeI0XQF (ORCPT ); Thu, 27 Sep 2018 19:16:05 -0400 Received: by mail-lj1-f195.google.com with SMTP id r83-v6so3102374ljr.7 for ; Thu, 27 Sep 2018 09:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=from:to:cc:subject:date:message-id; bh=Ftajp3MRZ0PhsPnNocPMO/7ah4Nv3Xl7uHwrfu4Kndc=; b=Tr5QfC4ulzLivT/RK6l9+szS4DC34X0yNF40LAwMEddez8neCYlpVfTFImS5MUem0I NEoiJWx4ZrsyGlgkd4e1058sqTfFtkrKShKuy6ou0DPu1HPRASOpI8VL3+FE1O6AR1Wh qSAvWrGNYwmaM+6NnwqrKJC6MtcDfAOq+EMt0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ftajp3MRZ0PhsPnNocPMO/7ah4Nv3Xl7uHwrfu4Kndc=; b=X62qMtyRuoaPRITInppuWxv4SqF+wVbnzrjRD9PeXXhhcv5DS51gcd4bvOCjS7uxw2 EM9lZ2PyjqTDYD4OA4tgEi2Mh0A71JlquDkeNd4afdarMj4/BIptZGm/JB+dNdDcrxWF t6HtoqEfAlOi/5pDCNd5POZmBpjvwpr0UAEgv1/9paCp+LSpdB4DkwBi4/szmHT6WmhY ihY5KXZpCTpzMvJ3nrOUbZoeOb3XOWvJceDN0UvCl2tKy7ExX8lThz/t5aA4rpn9BTrJ vI+8N23bp3FC6TIWs6pc/yEZYheCajBEdmOyRV9RnNY0ghNlRnGvDUlSTi946Lh3N+DU otuQ== X-Gm-Message-State: ABuFfoiM++AupZMPsMfVsg94sxP28A8dtLcmaItpSsoQflIbqmeLiO6o tDq+bj01vMPEOBVca8Yw24Vkug== X-Received: by 2002:a2e:2942:: with SMTP id u63-v6mr8258880lje.28.1538067413445; Thu, 27 Sep 2018 09:56:53 -0700 (PDT) Received: from kbp1-lhp-f55466.synapse.com ([195.238.92.77]) by smtp.gmail.com with ESMTPSA id i9-v6sm388653ljg.43.2018.09.27.09.56.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Sep 2018 09:56:52 -0700 (PDT) From: Maksym Kokhan To: Catalin Marinas , Will Deacon , Ard Biesheuvel Cc: Daniel Walker , Daniel Walker , Andrii Bordunov , Ruslan Bilovol , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Subject: [PATCH 6/8] arm64: convert to generic builtin command line Date: Thu, 27 Sep 2018 19:56:48 +0300 Message-Id: <1538067408-5967-1-git-send-email-maksym.kokhan@globallogic.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Walker This updates the arm64 code to use the CONFIG_GENERIC_CMDLINE option. Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Maksym Kokhan --- arch/arm64/Kconfig | 17 +---------------- arch/arm64/kernel/setup.c | 3 +++ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1b1a0e9..e596414 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -166,6 +166,7 @@ config ARM64 select SWIOTLB select SYSCTL_EXCEPTION_TRACE select THREAD_INFO_IN_TASK + select GENERIC_CMDLINE help ARM 64-bit (AArch64) Linux support. @@ -1231,22 +1232,6 @@ config ARM64_ACPI_PARKING_PROTOCOL protocol even if the corresponding data is present in the ACPI MADT table. -config CMDLINE - string "Default kernel command string" - default "" - help - Provide a set of default command-line options at build time by - entering them here. As a minimum, you should specify the the - root device (e.g. root=/dev/nfs). - -config CMDLINE_FORCE - bool "Always use the default kernel command string" - help - Always use the default kernel command string, even if the boot - loader passes other arguments to the kernel. - This is useful if you cannot or don't want to change the - command-line options your boot loader passes to the kernel. - config EFI_STUB bool diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 5b4fac4..33b929b 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -295,6 +296,8 @@ void __init setup_arch(char **cmdline_p) setup_machine_fdt(__fdt_pointer); + cmdline_add_builtin(boot_command_line, NULL, COMMAND_LINE_SIZE); + parse_early_param(); /* -- 2.7.4