From patchwork Sat Mar 14 12:47:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pragnesh Patel X-Patchwork-Id: 243638 List-Id: U-Boot discussion From: pragnesh.patel at sifive.com (Pragnesh Patel) Date: Sat, 14 Mar 2020 18:17:03 +0530 Subject: [RFC PATCH] cmd: mp: change the command name from cpu to mp Message-ID: <20200314124704.19731-1-pragnesh.patel@sifive.com> when CONFIG_CMD_CPU and CONFIG_MP both are enabled, u-boot compilation gives an error of "multiple definition of `_u_boot_list_2_cmd_2_cpu'" so cpu command(cmd/cpu.c) and mp command(cmd/mp.c) should have different command name. Signed-off-by: Pragnesh Patel --- cmd/mp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/mp.c b/cmd/mp.c index 4c8f5fc3fa..26995c9976 100644 --- a/cmd/mp.c +++ b/cmd/mp.c @@ -68,11 +68,11 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #ifdef CONFIG_SYS_LONGHELP static char cpu_help_text[] = - " reset - Reset cpu \n" - "cpu status - Status of all cpus\n" - "cpu status - Status of cpu \n" - "cpu disable - Disable cpu \n" - "cpu release [args] - Release cpu at with [args]" + "mp reset - Reset cpu \n" + "mp status - Status of all cpus\n" + "mp status - Status of cpu \n" + "mp disable - Disable cpu \n" + "mp release [args] - Release cpu at with [args]" #ifdef CONFIG_PPC "\n" " [args] : \n" \ @@ -90,6 +90,6 @@ static char cpu_help_text[] = #endif U_BOOT_CMD( - cpu, CONFIG_SYS_MAXARGS, 1, cpu_cmd, + mp, CONFIG_SYS_MAXARGS, 1, cpu_cmd, "Multiprocessor CPU boot manipulation and release", cpu_help_text );