From patchwork Mon Sep 2 12:59:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824689 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp1928642wrs; Mon, 2 Sep 2024 05:59:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCULFS16mxJptjQeVQRK4+2bi/PZJs1ViQlmKvHJSlfaEMDejZjSmW8q6ltZrL5YSK2vPM7uLw==@linaro.org X-Google-Smtp-Source: AGHT+IFIrIQisPFcaTawfqKy4eDHYfkhoEI2lUo1ZsX6zu6CkAIufKDrhaL8saDH/jJZKOWaL9TY X-Received: by 2002:a17:907:940c:b0:a86:8f66:e5cf with SMTP id a640c23a62f3a-a897f79af7emr1161486866b.2.1725281982558; Mon, 02 Sep 2024 05:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725281982; cv=none; d=google.com; s=arc-20240605; b=elqP2x5UIwe4JdS6FCBoQqU4TZIJk6dww2TOUhfloTWBhw0qv8jrT1Qk2oAq64+bQ6 SP801iSFdr/LMxNhCLoxY5lruLnDAWuy3wY/CsgzYGHr2Aa/BFFzrtvuiDaOcnzbmbJc GeBbf7zms0XpbSteCxCOlusKVD5/fprDFqTc12zS05t2bb4asakqewZWVpKxFlE7ZpYV x8ls9sEo1tEoRxBSeKY1Ckui4vJfda/rHcxj0LbfsCboxNd8C6eoGSreIY3g7+T59ZnI Um71NwTVnEzoqYeL7bedKZu33ui+/wEI8bYKttq5zoQM1ZzEtBhcrN8N35F56tLJAwNf eMQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=0/ry+ojZem+NTxvGgSSZu/nQchgSRoEANAxsdwDpC/0=; fh=hyvrW9l2kgnjFUv3cKvH5HkmSPuTBcvKBRFLtdQR84k=; b=c/yFXylPk6HGCCVt1+0jinwBzt83dNy6TuhxbCKfYAinHl015ZJBP/IUeQei7CwK2H xLxT3ZIaszePsh/LEu59QjvkqbNMOTvUsqI6aaavh8C2+ofRvNexxUKFBMtYmUsONqNf /75BLcV+1b+z2hHnbkYuAaqMCrDrhsYYACI1u/PvhITWatzJi2f+/3EPk9wboglJ3GHo sxRmlyyndf/ikqGayuvHAQ9I9SmUGsDN2HJ7D7Jsd6nZRJH1e117MYBLt06IX9naFNxx sTo2+dLsnjJqYsFqlHyMyaSlNlPf38VA+lVY7OUcdEi9J97xVHBa5KfuofBsVSMBgUpy c/vA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XtFa9K6Y; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a89891fcd94si731782666b.1011.2024.09.02.05.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 05:59:42 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XtFa9K6Y; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D06F88A3C; Mon, 2 Sep 2024 14:59:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="XtFa9K6Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8CFF588C19; Mon, 2 Sep 2024 14:59:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9DF9888847 for ; Mon, 2 Sep 2024 14:59:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-42bc19e94bdso19546805e9.3 for ; Mon, 02 Sep 2024 05:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725281977; x=1725886777; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0/ry+ojZem+NTxvGgSSZu/nQchgSRoEANAxsdwDpC/0=; b=XtFa9K6Ysn0bW4ZK/VE0eLZctz6veiUiRXtEvZmjerf6fJOZcFp8He47gnrk39xVPp hFC5LafGWBQCoSmwVNZkUFKfZA9KQ+ibLv/nKeHnieHGkSg722JBpNzC8zUDmrZ7RbE0 Wf626jlHvTTzjSZQpHn7CCTEWk+YjGTjrjjLC8U/TUlZkymMwgyTXiE+TtjYCXuJX8x7 VT/M/5ZMeTRm9JZNVjARZWdqWTks2RekykG1iBxNxbtb7mQCB4fdd24kW6eCKx16EVNG GAhvBgCZb6J2L4cMFcKa91z9QrlEhWlOW+Z17IfOR+h0G6CdpHYX6bT0lN+uIRrHnXQo CpJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725281977; x=1725886777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0/ry+ojZem+NTxvGgSSZu/nQchgSRoEANAxsdwDpC/0=; b=VQ32ToLQbL82j2ab8nCCN6VJvefVapnXO97GtuzVqnkjg4fb0keEbilAjEQk/rHevd tcPJcF2odlcBtiWhamnqt1DrZPew5kat+uIAu3aRKBoGI5Ui9LCnZxL2BAt6ZpFEXctH +b8nHoGpbimgzuV5hTKxiMR5EZDeHBh0EMNhsH7RV9hMsty1hb5wzEfJvOuESeSZH//c ACfKvYM1GFGIrY65Wdl8CASDjHSDwCoahxT81+JyW8ARZvL4pvux+DaiF3798+lvTDcz q47A0j2FMfoGvPhgMxfoJ9MkbF0detnx+I+Yz6F0Vm5eGpAslkcGEEqtt6LUR5oFS35N sKQQ== X-Gm-Message-State: AOJu0YxP+3lACDNhuEIovXBEE+KFFZtwJk4/lavZdY2TEgyxSPrcpLp8 1/3aQvM41Bl060kyJ4i3kXI69Y3EFRkYrinwbgroFKhFZnxOIkIbq5DooMT0L5TxpCqSfqINZUL OpCyTxA== X-Received: by 2002:a05:600c:4fd3:b0:428:1007:6068 with SMTP id 5b1f17b1804b1-42bb01fb0e4mr119722675e9.34.1725281976627; Mon, 02 Sep 2024 05:59:36 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3749ef7e109sm11304424f8f.67.2024.09.02.05.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 05:59:36 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini , Simon Glass , Sean Anderson , Marek Vasut Subject: [PATCH] net: guard call to tftp_start() with #if defined(CONFIG_CMD_TFTPBOOT) Date: Mon, 2 Sep 2024 14:59:16 +0200 Message-Id: <20240902125917.119941-1-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean net_auto_load() cannot call tftp_start() if CONFIG_CMD_TFTPBOOT is disabled. Signed-off-by: Jerome Forissier --- net/net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/net.c b/net/net.c index d9bc9df643f..35961ba1c7d 100644 --- a/net/net.c +++ b/net/net.c @@ -334,6 +334,7 @@ void net_auto_load(void) net_set_state(NETLOOP_SUCCESS); return; } +#if defined(CONFIG_CMD_TFTPBOOT) if (net_check_prereq(TFTPGET)) { /* We aren't expecting to get a serverip, so just accept the assigned IP */ if (IS_ENABLED(CONFIG_BOOTP_SERVERIP)) { @@ -345,6 +346,7 @@ void net_auto_load(void) return; } tftp_start(TFTPGET); +#endif } static int net_init_loop(void)