Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 10D82C636D6 for ; Wed, 22 Feb 2023 19:28:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A970D85A58; Wed, 22 Feb 2023 20:28:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="nCIRKsjY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D2AD85AE1; Wed, 22 Feb 2023 20:28:05 +0100 (CET) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DA20485A82 for ; Wed, 22 Feb 2023 20:28:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=041759f153=patrick.delaunay@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31MELqZY002461; Wed, 22 Feb 2023 20:27:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=CT0jx/9HDRGWkq0nrjNSTe4folJ+Z6NUp41RD8unqi8=; b=nCIRKsjYGyYYIkcZ6eMYMm351oRnmnWVISwWFogS9Z6eiwquXjN65YeVCy06iX/dGLsr bm3eZUDcbNsPsLpB5iKYy1neR21ChcVf/IqiMXPmX//mAuTMJ4U/u2f/z5/kFGhWGAXl pt0AKIbWxmf60RJDenKePHbVbf4u1E+jqXO43b14EIsTj3pYCIQTcFtPcix3k00hAEG8 vLh7iaKv5BRCeCTQajHFZLYDQn/WhAwIHHGl2wrRu824pbH0AzexbYgEbLLmuj4wTVKB pwxVt/c5BkWOvUkcr71jmGbzlxGX/e4HK6kxSfYS/BcPFYDcMyX3ofPzDANPZ9LDC2bC Ww== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3ntpw6jcfw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Feb 2023 20:27:58 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5BF29100034; Wed, 22 Feb 2023 20:27:57 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 418FB22AFEE; Wed, 22 Feb 2023 20:27:57 +0100 (CET) Received: from [10.48.0.157] (10.48.0.157) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 22 Feb 2023 20:27:56 +0100 Message-ID: Date: Wed, 22 Feb 2023 20:27:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] fastboot: Only call the bootm command if it is enabled Content-Language: en-US To: Samuel Holland , CC: Mattijs Korpershoek , Sean Anderson , Simon Glass References: <20230220061458.43549-1-samuel@sholland.org> From: Patrick DELAUNAY In-Reply-To: <20230220061458.43549-1-samuel@sholland.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.0.157] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-22_08,2023-02-22_02,2023-02-09_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi, On 2/20/23 07:14, Samuel Holland wrote: > This fixes an error with trying to link against do_bootm() when > CONFIG_CMD_BOOTM is disabled. > > Signed-off-by: Samuel Holland > --- > > drivers/fastboot/fb_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c > index 57b6182c46a..20aa80838ae 100644 > --- a/drivers/fastboot/fb_common.c > +++ b/drivers/fastboot/fb_common.c > @@ -135,7 +135,7 @@ void fastboot_boot(void) > s = env_get("fastboot_bootcmd"); > if (s) { > run_command(s, CMD_FLAG_ENV); > - } else { > + } else if (IS_ENABLED(CONFIG_CMD_BOOTM)) { > static char boot_addr_start[20]; > static char *const bootm_args[] = { > "bootm", boot_addr_start, NULL Reviewed-by: Patrick Delaunay Thanks Patrick