From patchwork Mon Sep 9 13:22:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 826585 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp2002123wrb; Mon, 9 Sep 2024 06:23:35 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUX3le/vVsNyGZOiLEOzDHVwrMNP1kgWtHp8OmQ7deG+WTvUuP8f9aqo5n7WgeQtkNw/xtCEQ==@linaro.org X-Google-Smtp-Source: AGHT+IEP6OSPyQCxcl2ilOqFgRPlAZuqAKXm3qVtvmIwfMe3DTEi3f9O/uSPa83EhjzoWNLHme6O X-Received: by 2002:a05:600c:3b86:b0:42c:bae0:f064 with SMTP id 5b1f17b1804b1-42cbae0f25dmr11380925e9.2.1725888215738; Mon, 09 Sep 2024 06:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725888215; cv=none; d=google.com; s=arc-20240605; b=hQ1oO4gtIxSfPpM7PQ3Dj7rqgLxTdDgmuFDonVdgnSVumt278rAP7ezsIAx+TKbACq E6+E1uZzB62XeBz+Wo1UPxHydPuq2TyMgdbP7KHzs7lWt0MLQjPKzHtbPg7PJNIwi52Y bLnIuywZjiTN+6sXhHsHS19FiMRpa2WOSZzF5VcQfp7Y4lgRYR+v2TsRugXovz6WdXQ4 X4MD43G15a7rHde4zfmE1yjTTEzqD3NABqa4Dhb0bCLB5S5cRXrpfqTxLoLNl9AblOvO fEQUX2LL0vrBjS9USDZE2ok5D9VjA8RoUmSYClXQrRiF8dbhXESliIv1JZcEjH0jo74U Vy+g== 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=K7xMBYaYE2Ibn/0VK+ds2g8ad9Z8O8TKHvpQ7/fYy3g=; fh=mKNcI+Gk/C86yUMQyyoBQxxdnegugoUO8yqSejXoIZg=; b=S+GVtD7SNV/tDEqiFa3nLgd6mRP37Y1Fxm0Y7en93mAj3jceXieMzyl9ZSxQ5pBLj1 49Au4n8taWnl6Fp7wCbMzTaHkBSqMHWh1ursPPsFV7eoc6coUCNxiUPgrIYRBvbSUEtT of2sXFj9rZkNEMbu1xyNHUpiQpMFfunb8+2TPKJTmRUcIQk53o0lz1Krq7qek/yQzLN9 y5pWk0pi8LuzcefFi+eunuD2SM8P3chjfGBDRRn6QW7lxMGgolBtT+rTWocXXlMitO+a u/2tVkmOmBed/uc6cI52iW9CIE03ZDzH3VKUxT0Pguc7kjZ6DqZZlodyzHTrFJBZ2z3K 3dgg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wpbzlxNn; 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 5b1f17b1804b1-42ca7492e73si33051535e9.150.2024.09.09.06.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 06:23:35 -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=wpbzlxNn; 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 4806788D83; Mon, 9 Sep 2024 15:23:34 +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="wpbzlxNn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 191BF88D1F; Mon, 9 Sep 2024 15:23:33 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 21E9E88DEE for ; Mon, 9 Sep 2024 15:23:31 +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-x332.google.com with SMTP id 5b1f17b1804b1-42cb8dac900so7802165e9.3 for ; Mon, 09 Sep 2024 06:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725888208; x=1726493008; 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=K7xMBYaYE2Ibn/0VK+ds2g8ad9Z8O8TKHvpQ7/fYy3g=; b=wpbzlxNnJ4O+/K3XL+4nvkBR4nUlWYHccKUMuEeln6Lj2NFzr4wWhKUFBA5gRl7RQ+ heuMMEG8dnGy/QCF3Jm4YJ6J8k+HsdDfbTRDBklgodee4EpYb+MLqR3K+3vZWvOtr89v fxXPW1jtnAV+q08n9ioJw9aINdVtdZYdgd35qjnftgDY9TglqjCDAFRC3/UBxubWTgox S0nDCe2oh9T5AkycAOX/5uqvUiQpUYceX3auFSguYdCGHusGphDvUQZyG0JHHzD9VtVG sD2IFA4jCVW0ctNeq2/8zwE4tE+cisfQRnQoriimdLuiE4wOTuvMy1IYoQR3DzuzS4Lq laGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725888208; x=1726493008; 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=K7xMBYaYE2Ibn/0VK+ds2g8ad9Z8O8TKHvpQ7/fYy3g=; b=rP5/yQjEajGyyDED7clL2Em3JBXf9fVd5sqFHOJVCmhDf8sbgZqjtwhf8PhtjXDsij 06SLByGAYfg3rY+zagSwM11suZm1VE3/nCUgxQNWO858XclVk79/yfADCiNsfVk2Ty1g s8BPoFcPD3rhVT5DhouwZ6uZMax82mjCXnDSpCciuyO93IKj5kEgpj13Y4TBJhwgBwSj iQZsykTZp0mqV+slFACe5U6mpbhqofm02JsohfnqcqNJ3mICd1v+gfHL6AN4Mas/Fni3 gowEM9jmKQjMdgiTtlJJZWzO9C0l/t7W4hMP4g+L6QpOBlwbyghwK+ql4C2sdIq0CVCW S5Eg== X-Gm-Message-State: AOJu0YxjyovikcR9K0N2bCTxiaEHf/lVVYKBgyMKQf6Rz1AXlx0UDVvR 87AqZP/slaw6oqRF9uweE137ex3E0wgU24kdMu5UB6pKvlSiwU4hP9gfddRaYccaWAsUvXKI0xe HQ5XZqg== X-Received: by 2002:a05:6000:542:b0:374:c57b:a90f with SMTP id ffacd0b85a97d-37889659729mr6399292f8f.42.1725888207546; Mon, 09 Sep 2024 06:23:27 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:4bd0:b9bf:1fda:1d0d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895649bafsm6112189f8f.7.2024.09.09.06.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 06:23:27 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Jerome Forissier , Tom Rini , Simon Glass , Michael Trimarchi , Sean Anderson Subject: [PATCH] spl: ram: fix build warning when neither RAM_DEVICE nor DFU are enabled Date: Mon, 9 Sep 2024 15:22:52 +0200 Message-Id: <20240909132252.3975017-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 Fixes the following warning: common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function] 19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, | ^~~~~~~~~~~~~~~~~ Signed-off-by: Jerome Forissier --- common/spl/spl_ram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c index 71b7a8374bb..1a5874c3949 100644 --- a/common/spl/spl_ram.c +++ b/common/spl/spl_ram.c @@ -16,6 +16,7 @@ #include #include +#if CONFIG_IS_ENABLED(RAM_DEVICE) || CONFIG_IS_ENABLED(DFU) static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, ulong count, void *buf) { @@ -96,6 +97,8 @@ static int spl_ram_load_image(struct spl_image_info *spl_image, return ret; } +#endif + #if CONFIG_IS_ENABLED(RAM_DEVICE) SPL_LOAD_IMAGE_METHOD("RAM", 0, BOOT_DEVICE_RAM, spl_ram_load_image); #endif