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 3E4B2C7618D for ; Wed, 5 Apr 2023 23:50:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E2AA85FE8; Thu, 6 Apr 2023 01:49:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="DtGk8six"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 595B185FC2; Thu, 6 Apr 2023 01:49:17 +0200 (CEST) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (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 2F59785FC0 for ; Thu, 6 Apr 2023 01:49:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-545e907790fso592744277b3.3 for ; Wed, 05 Apr 2023 16:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1680738549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=eoFU5OfXoJKJmyzqveXD4p0G3pgH1NPCcK9Bw+Kzvxs=; b=DtGk8sixtffV1qi9to6PYt5c3GpcIsGkBgNvjuzgr7N9RjsvrZ9VGjOgNYWGSlrOaS ze3P8ZpGkLGU3lTN/kWdhVf3oh4iYEbpPnonSVJJOdYeIhhWoeAvw8iRT1d3MC1e1ozL VoGR1lQMbN2regyK4v8IdFOI2mbAM7PYzEp/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680738549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eoFU5OfXoJKJmyzqveXD4p0G3pgH1NPCcK9Bw+Kzvxs=; b=O517wI6HXIO2MB2s2umKw1Oa4iDbHiMJQzHWbKpuStyTCxws6A1e4fMJ6oswl5nBA1 g/Vm4femZf6o+25LVwsW/kW8hmU/1lmNc/dRJrLocvIRk16h3Cr9kDju1TET+hTSckjn K02d7HZ060NJfRQ/i1KKBmsYF88oBYCV+TZCYRJuscvfgycxgIyYKt2cSl9EEeUhi2ar OElxV8MMf8FyU0EEJfjMWB8lNRdlNoAQh3GHBR48FRm0ir9W2VH7UFRdSL9lfA7z2C9B JsjhYtyjNi0EwPPG2dpTOWbHAX7Bz9iBNzqx6qcPO3Ri00v5G9O4V4Ezuw0WnxGlcOSR 2dXw== X-Gm-Message-State: AAQBX9c+j84OsYw4B8HSoc/giOqB/UtDuO1rwt4FN9Cy9dqVuv30xIxO Tvgd3RdYxM6tep97Bs8+5T3JKXECNq/FSjyShGKWXw== X-Google-Smtp-Source: AKy350ZfggoW72vje/O5eLTtLk9T6+aS85JbR0wyW8J7Q6Ff1OCA6FmsJAOoetGG841brNW1FFtJ9w== X-Received: by 2002:a0d:da02:0:b0:549:29db:733b with SMTP id c2-20020a0dda02000000b0054929db733bmr7122762ywe.23.1680738549474; Wed, 05 Apr 2023 16:49:09 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-acff-1005-f218-7c24.res6.spectrum.com. [2603:6081:7b00:6400:acff:1005:f218:7c24]) by smtp.gmail.com with ESMTPSA id l33-20020a81ad61000000b00545a08184b1sm4215448ywk.65.2023.04.05.16.49.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 16:49:09 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 6/9] boot/image-board.c: Silence warning in select_ramdisk Date: Wed, 5 Apr 2023 19:48:56 -0400 Message-Id: <20230405234859.1446811-7-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230405234859.1446811-1-trini@konsulko.com> References: <20230405234859.1446811-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 When building with clang we get a warning that rdaddr could be uninitialized in one case. While this cannot functionally happen, we can easily silence the warning. Signed-off-by: Tom Rini --- boot/image-board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/image-board.c b/boot/image-board.c index c602832249e3..d500da1b4b91 100644 --- a/boot/image-board.c +++ b/boot/image-board.c @@ -328,7 +328,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a bool done_select = !select; bool done = false; int rd_noffset; - ulong rd_addr; + ulong rd_addr = 0; char *buf; if (CONFIG_IS_ENABLED(FIT)) { -- 2.34.1