From patchwork Mon Feb 27 22:08:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749171 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=bhHGWPyq; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZQp1TSxz1yXC for ; Tue, 28 Feb 2023 09:09:06 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DEE9D8523A; Mon, 27 Feb 2023 23:08:50 +0100 (CET) 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="bhHGWPyq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 44EDA85AA5; Mon, 27 Feb 2023 23:08:46 +0100 (CET) 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-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 506F6830E9 for ; Mon, 27 Feb 2023 23:08:42 +0100 (CET) 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-qt1-x833.google.com with SMTP id h19so8452901qtk.7 for ; Mon, 27 Feb 2023 14:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535721; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=B0gzpne/OQiqKXwczo53PGnC+6CP70kZAA/WvtAhAAo=; b=bhHGWPyq+0Tnc2ir8avFY5HIXkDNtTjHBUNPk3MP09rm4K9c3BKZnxwarm8gFxAUF5 yysbSBlu1jZrkFFPoCSBzpCRYl2Xvu++DSt3Up5UM5rlcDWKf2kiE5/8ymcV0CkjzW1i jJ8EcQol7PtXuVHf2UrJo1NkmEv7q9JoJY3lU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535721; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B0gzpne/OQiqKXwczo53PGnC+6CP70kZAA/WvtAhAAo=; b=jAzYfVBr0cdU6LuHGJFZ/p4Jb09tnu/6kYP77hwiHskRXkAmGpLXrJN2ZEaoUFRHG2 GegOPcSOxdRpjs3X8nqXmf440ITnvP9VqVOzWxqGiOYhLtn74bDK/mmnIUoGCxUTTnFy kd0a3n/ZdFZcMCGzVBSg8iSu61k0nOXorFu9ft8fA1ttEcY1YWGOro6Bl+4+x5KlYkBp T7rpq3AX9g9L0j8bvQetwHlMl7YF58K0PGFml2gPaiG7OMOtRWRZkmluCWJVZ8ctGCDv +DlmkhMnK6SETy0R0WUXEMAHFkRWT8XKqF5IxCxtHh0Y9uDgMBPruVKkFJWoxJ3TArZx T4Xw== X-Gm-Message-State: AO0yUKWdid4LLBYNtHoiM52TWfY5uvt9j+j3jqb2porG2CH3D3+TacLm MvytNe3PctkKRKbQ1sEec0PmxqA9oCkzo6zU/Hw= X-Google-Smtp-Source: AK7set9NLypH3XQRp+9Gy4stfhCzow4w9E6089v1gf6T1Y19hjF1LxxSA0Z81DwQBz3P6LOl1UrPsA== X-Received: by 2002:ac8:5c06:0:b0:3bf:c5d8:d94 with SMTP id i6-20020ac85c06000000b003bfc5d80d94mr1377490qti.2.1677535720754; Mon, 27 Feb 2023 14:08:40 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:40 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 1/7] global: Disable deprecated-non-prototype warning with clang Date: Mon, 27 Feb 2023 17:08:33 -0500 Message-Id: <20230227220839.2519733-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.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.6 at phobos.denx.de X-Virus-Status: Clean We have a number of places in the code which use the following syntax: void func(a, b, c) int a; /* Does a */ something_t *b; /* Pointer to b */ int c; /* Does c */ { ... } Which while not what we document as our coding style, this is also code which we have imported from other projects, and would like to re-sync with in the future. While the biggest example of this is the zlib code, there are other places as well. For now, we will silence this warning. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 54f894dab841..d2c132be6e09 100644 --- a/Makefile +++ b/Makefile @@ -790,6 +790,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # See modpost pattern 2 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) +KBUILD_CFLAGS += $(call cc-disable-warning, deprecated-non-prototype) endif # These warnings generated too much noise in a regular build. From patchwork Mon Feb 27 22:08:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749170 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=Wf/oLDwB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZQW4dNrz1yXC for ; Tue, 28 Feb 2023 09:08:51 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2401685AA5; Mon, 27 Feb 2023 23:08:47 +0100 (CET) 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="Wf/oLDwB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 665DF85AAB; Mon, 27 Feb 2023 23:08:45 +0100 (CET) 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-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 A7DB4851B1 for ; Mon, 27 Feb 2023 23:08:42 +0100 (CET) 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-qt1-x82b.google.com with SMTP id ay9so8446162qtb.9 for ; Mon, 27 Feb 2023 14:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535721; 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=ph6DPIYOfQjgzrR6BMQAVG3sNJwFfH/+ikRMJaVDVfg=; b=Wf/oLDwBCvVfpm4GLEi+dVw127A0a1inAH/sWJ256Pnd1yq+JvPigJ9Coun9M6pkCT vOztfkfdBfo7c7pmKXcEDa2j62jB3tXXILNGAunpzT91jBFnG3qwi8Lhz0Hx9NfehAes CBks6W0LZqLDhum/2AoXgKm4MaBq0zu3I3bnM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535721; 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=ph6DPIYOfQjgzrR6BMQAVG3sNJwFfH/+ikRMJaVDVfg=; b=5A011GiAekLYvwe6Py5AY+73aRuzNi9uWf9AsIwxc0zlPfBOMEcGO+wcAbzLWqGtW+ SENcCE5kHw5c+Lq/skqRa/CqD3zhpUqQb8Zi6OjlwAX/vgy4/NvvGxJzjHYQJ6kZbn4V n9q689tB2bxS/Qqeto1QyZj3J1NkjJd6gB/0eZkVI7aPXLcV9AnKQzgbwgRuFUF6w0yP nrr8++Np29umxai4Il+bB5T/1dDy6oGZrM9M2sPcScLjTDm4MxBEWmpcTdXaQcpRgJn9 HRaVJulr+DrCW25n3OysiSeVwyovCKoBAD+7vsYZAIom+R+g9IrOsmmyIfaT7sfmcL0y Mqog== X-Gm-Message-State: AO0yUKXCG13qy5lzW/I1KBqe5kZBwkV1lnJtmAghx9rw57MQX0055HhS 3qS4I0wV9JOSQ5Gps0D7hA6TsX2sYHuCJ5WvPVk= X-Google-Smtp-Source: AK7set8MV8hqfLSE1yXENvUeD13Sfwj177IDEsInrTlmv7N+cRa4gz4eQVHc3MNovJ9WU+LqagU0CA== X-Received: by 2002:ac8:5c43:0:b0:3b8:60b9:e75b with SMTP id j3-20020ac85c43000000b003b860b9e75bmr1741212qtj.3.1677535721379; Mon, 27 Feb 2023 14:08:41 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:41 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 2/7] dlmalloc: Fix a warning with clang-15 Date: Mon, 27 Feb 2023 17:08:34 -0500 Message-Id: <20230227220839.2519733-2-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> 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.6 at phobos.denx.de X-Virus-Status: Clean With clang-15 we now will get warnings such as: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] And it is easy enough to address this warning here, as we aren't concerned with re-syncing with an upstream. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- common/dlmalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 41c7230424cc..0f9b7262d512 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -80,7 +80,7 @@ GmListElement* makeGmListElement (void* bas) return this; } -void gcleanup () +void gcleanup (void) { BOOL rval; assert ( (head == NULL) || (head->base == (void*)gAddressBase)); @@ -2340,7 +2340,7 @@ size_t malloc_usable_size(mem) Void_t* mem; /* Utility to update current_mallinfo for malloc_stats and mallinfo() */ #ifdef DEBUG -static void malloc_update_mallinfo() +static void malloc_update_mallinfo(void) { int i; mbinptr b; @@ -2397,7 +2397,7 @@ static void malloc_update_mallinfo() */ #ifdef DEBUG -void malloc_stats() +void malloc_stats(void) { malloc_update_mallinfo(); printf("max system bytes = %10u\n", @@ -2418,7 +2418,7 @@ void malloc_stats() */ #ifdef DEBUG -struct mallinfo mALLINFo() +struct mallinfo mALLINFo(void) { malloc_update_mallinfo(); return current_mallinfo; From patchwork Mon Feb 27 22:08:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749173 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=MB21ea0d; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZRN2gcvz1yXC for ; Tue, 28 Feb 2023 09:09:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CBD2885AB9; Mon, 27 Feb 2023 23:08:54 +0100 (CET) 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="MB21ea0d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A118A85AB1; Mon, 27 Feb 2023 23:08:47 +0100 (CET) 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-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 5B78C8546E for ; Mon, 27 Feb 2023 23:08:43 +0100 (CET) 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-qt1-x82c.google.com with SMTP id w23so8467744qtn.6 for ; Mon, 27 Feb 2023 14:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H2TmdE6NJdyyojKgYyymlJrc5aQld3CFR/P6IrVQcJg=; b=MB21ea0dKpctcbj8arfwEVK9h3xAxmKc+tQK2VW82TPgpqsG7D5n/ekWCWnno6NmTc StZLeYRa9gLglM36SPbvGCQGxMxDNE48dR7FLiCV93bBU1+dXhuhV0Iuqx7OmOWgsDMe zcTGB3i0BbpL2ZjVAV0dLCtKW2Q1IAvWyzFKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535722; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H2TmdE6NJdyyojKgYyymlJrc5aQld3CFR/P6IrVQcJg=; b=N1FK54sZgA6dGjAuYoSjDzvF52/UcM0XcjnkDiE+P4JbA5hLDHCjufBt0MViVUyE3m QJA51hcBZR1DAgFJ2wnls5IzsJWZQ5o9OoEZ5I5p69U/5cle7eZH2y3JNCRip5TLJRVY sApaKwCUIfcIEEZah/urkIi8j4p0NroSQXe8+O7oq89o9Nre105X1h6Ie4bobECeh3og s5kXtFZh2rG2LyQne8DJv6VyX7V3x1NTmUi4zOUtl+HYVMdaWo/hHaEOheDcSO3dOIbG tIyJ7rVTrkShqwu8sqp1S610Ga4Xeekdlib9aaKwb1oQ3C5O5pC2VqmIIbZ+DzfNFLmZ 8vfg== X-Gm-Message-State: AO0yUKVsTuzr052VYuI2Sa8tNJJBs23j6mhXlTsceUw+OHTDxXkY2hGn HTVUkmVpTzmsh1D8cYuJXYcMf9F6XwQI70Y0ZBg= X-Google-Smtp-Source: AK7set/er0nR1oxfqnbIy5M3M3zECeJBYGeWSSDHuCK1HzCHoyBAA8KoLGF0LY+D0becx01iMJuUTQ== X-Received: by 2002:a05:622a:189a:b0:3b9:bc8c:c210 with SMTP id v26-20020a05622a189a00b003b9bc8cc210mr18342485qtc.27.1677535722056; Mon, 27 Feb 2023 14:08:42 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:41 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Igor Opaniuk Subject: [PATCH 3/7] libavb: Fix a warning with clang-15 Date: Mon, 27 Feb 2023 17:08:35 -0500 Message-Id: <20230227220839.2519733-3-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> 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.6 at phobos.denx.de X-Virus-Status: Clean With clang-15 we now will get warnings such as: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] And it is easy enough to address this warning here, as we aren't concerned with re-syncing with an upstream. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- Cc: Igor Opaniuk --- lib/libavb/avb_cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libavb/avb_cmdline.c b/lib/libavb/avb_cmdline.c index cb54e658c487..a58ce6c48c01 100644 --- a/lib/libavb/avb_cmdline.c +++ b/lib/libavb/avb_cmdline.c @@ -394,7 +394,7 @@ out: return ret; } -AvbCmdlineSubstList* avb_new_cmdline_subst_list() { +AvbCmdlineSubstList* avb_new_cmdline_subst_list(void) { return (AvbCmdlineSubstList*)avb_calloc(sizeof(AvbCmdlineSubstList)); } From patchwork Mon Feb 27 22:08:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749172 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=aTa+zcCG; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZR64hRGz1yXC for ; Tue, 28 Feb 2023 09:09:22 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C15ED85A97; Mon, 27 Feb 2023 23:08:52 +0100 (CET) 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="aTa+zcCG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C04AF8546E; Mon, 27 Feb 2023 23:08:47 +0100 (CET) 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-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (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 CE72785A71 for ; Mon, 27 Feb 2023 23:08:43 +0100 (CET) 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-qt1-x82d.google.com with SMTP id ay9so8446228qtb.9 for ; Mon, 27 Feb 2023 14:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535722; 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=UIfGSwGRnqygde31m8II5NubNkNOnhVX0HYnTwgusU4=; b=aTa+zcCGo1z2JDgfeZ6VPFLqneATBwgLuuc3yOMkIjQLdQHvABlx945OKam2LE798t vwGRx7W6HvQlc5luFZTD3DpkwnpSmcLsLkmVZATSo8ta0YSuOzTslkGXuel065kb/PtU Qv3QkvvvZ9HeIbAyqG3nBEw3ycc7PjEhwmOU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535722; 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=UIfGSwGRnqygde31m8II5NubNkNOnhVX0HYnTwgusU4=; b=6vHSQKeGIGLB3PMyqQDP05FbOqaGtZrjoOfaJah1aQy6EDLi2nMuJ39xBfu9amZDn2 vi+XJ9cq1Plt9Sj8OoqT9VcNMVcemeLTi/k/j4alg5ouvabL3ZzWes+mEMLWPuMn0jNT zD7RInsykQMDfRQMQNUgMYCa9WbXpmBL2S05f86xZ4ZWkZAyho34TkxbSEAm/wubMM2c eGjaULbF2C2epVWTnxDxtPuUsRAttosFdn7ws4q7tJpcQU2/HGF/IPQhl0vcwsF8jK56 cTX58DKcVJ/eqavwdMYsxBZ4vtv5Uhg0GKqGKDShG0AtChHsRMiFJB+Hl01tf48buv4G OWiw== X-Gm-Message-State: AO0yUKUAjF4Q/CFJd5sW68eaW5AXqadm7gwmHUOzro84ujMsXrppWFYg qt2pib3+D8Wr41HGm10Yitl40IDmo2xYb9lIcMo= X-Google-Smtp-Source: AK7set/MBb/oQJFQCl5Bb5Y3w9uYO2uQpS51GYOV5RzklMhMP9EJa5fnNM6Sd+vxMUD/Tj8suzWMXw== X-Received: by 2002:ac8:7f42:0:b0:3b3:7707:9b92 with SMTP id g2-20020ac87f42000000b003b377079b92mr1504496qtk.15.1677535722536; Mon, 27 Feb 2023 14:08:42 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:42 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 4/7] zlib: trees.c: Fix a warning with clang-15 Date: Mon, 27 Feb 2023 17:08:36 -0500 Message-Id: <20230227220839.2519733-4-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> 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.6 at phobos.denx.de X-Virus-Status: Clean With clang-15 we now will get warnings such as: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] And it is easy enough to address this warning here, even if we would like to stay in sync more with upstream as it's a single location. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- lib/zlib/trees.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zlib/trees.c b/lib/zlib/trees.c index 970bc5dbc64e..e040617686a1 100644 --- a/lib/zlib/trees.c +++ b/lib/zlib/trees.c @@ -237,7 +237,7 @@ local void send_bits(s, value, length) /* =========================================================================== * Initialize the various 'constant' tables. */ -local void tr_static_init() +local void tr_static_init(void) { #if defined(GEN_TREES_H) || !defined(STDC) static int static_init_done = 0; From patchwork Mon Feb 27 22:08:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749174 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=Mfeyk5/S; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZRf4hb4z1yXC for ; Tue, 28 Feb 2023 09:09:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 727E285AB1; Mon, 27 Feb 2023 23:08:56 +0100 (CET) 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="Mfeyk5/S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8011E85958; Mon, 27 Feb 2023 23:08:48 +0100 (CET) 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=unavailable autolearn_force=no version=3.4.2 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 05ABA85A92 for ; Mon, 27 Feb 2023 23:08:44 +0100 (CET) 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-qt1-x82c.google.com with SMTP id w23so8467818qtn.6 for ; Mon, 27 Feb 2023 14:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8qbK/N8hoX9FvzLX5Kiu/65OA0zosvnmAlqNd6QgWZU=; b=Mfeyk5/S3qMHipoRXZXgwvA2s7AvJSwrd7PSqStW44lw41DhfWntTr4YgIjH1YWFPP DiN+u6zzLLNBXH+eEkTdDWZWHM3B3/63e4cpIDOhRfIhGo59W0Oru30C6zySMuQk79SC or3DFd7YKHH3K4ln+PO4UPlZ9Q8k0oA94I4qw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8qbK/N8hoX9FvzLX5Kiu/65OA0zosvnmAlqNd6QgWZU=; b=bHinWzFNWWZ4+tOS5iR+nhCr4o5ZkKaenGtK1ySxJN03igW0YqZcqHsTK1lk+m6i7Q BB26AiLeOlzMVPFmMKPqt5HsyxjzyIlP2P9NrdOj+oPaDSNg9lJYNZdsX3BnFE69wys0 mlIgxQDE6zf5WMUKxGS58jPFnfVBLNPTPYd5z7rQoSq2w/axxYCz30LECQPjB4mpBXf9 utBXENmemmBsTLM5LsObU9f0iv4rvlCMJMciKVAtnS530qjHT1kDDabm1CVjDEstuCxx OR3xKaB8fCTPMfeQlSRLyy4m0DLRnKdYelfeOHiwxl/uJKjdWCt5NzMK5Z7BRimsHqe4 Xg9A== X-Gm-Message-State: AO0yUKXrf5h/o/2ejZzvlfup0hQpGuY13LkhT0KUgzFNSWnk089Q33mK be3RRSrnH4/1SdXUcSE9xNc4HfhLqnjJBjUe4pI= X-Google-Smtp-Source: AK7set9e36zmtfav9uOkngKmY9U9TzdnWjy2ErYE+PS80rgmDcZ7ES8zaRkyefApnXhLxFGigrXM7Q== X-Received: by 2002:a05:622a:1306:b0:3bd:1835:b001 with SMTP id v6-20020a05622a130600b003bd1835b001mr1686817qtk.20.1677535723450; Mon, 27 Feb 2023 14:08:43 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:43 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Peng Fan , Mikhail Ilin , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Subject: [PATCH 5/7] imx8image: Remove unused cont_img_count variable Date: Mon, 27 Feb 2023 17:08:37 -0500 Message-Id: <20230227220839.2519733-5-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> 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.6 at phobos.denx.de X-Virus-Status: Clean With clang-15, it is now reported that cont_img_count is unused. This is true as the code will increment / reset this counter, but never functionally use it. Remove it. Signed-off-by: Tom Rini Reviewed-by: Simon Glass Reviewed-by: Fabio Estevam Reviewed-by: Peng Fan --- Cc: Peng Fan Cc: Mikhail Ilin Cc: Stefano Babic Cc: Fabio Estevam Cc: "NXP i.MX U-Boot Team" --- tools/imx8image.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index 395d5c64bdf0..c25ea84e25c5 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -829,7 +829,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size, int ret; int container = -1; - int cont_img_count = 0; /* indexes to arrange the container */ memset((char *)&imx_header, 0, sizeof(imx_header_v3_t)); @@ -879,7 +878,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size, img_sp->src = file_off; file_off += ALIGN(sbuf.st_size, sector_size); - cont_img_count++; break; case SECO: @@ -899,7 +897,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size, img_sp->src = file_off; file_off += sbuf.st_size; - cont_img_count++; break; case NEW_CONTAINER: @@ -908,8 +905,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size, CONTAINER_ALIGNMENT, CONTAINER_FLAGS_DEFAULT, fuse_version); - /* reset img count when moving to new container */ - cont_img_count = 0; scfw_flags = 0; break; From patchwork Mon Feb 27 22:08:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749175 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=Fpf+raG0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZRt5QWVz1yXC for ; Tue, 28 Feb 2023 09:10:02 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1BE3F85B83; Mon, 27 Feb 2023 23:08:58 +0100 (CET) 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="Fpf+raG0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7D0428546E; Mon, 27 Feb 2023 23:08:48 +0100 (CET) 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-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 97CEE85AA0 for ; Mon, 27 Feb 2023 23:08:44 +0100 (CET) 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-qt1-x833.google.com with SMTP id h19so8453047qtk.7 for ; Mon, 27 Feb 2023 14:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6wY1FeCUbjisXke3c+GFUYblp4GrWcer0YDYDlRXiUQ=; b=Fpf+raG0T7R66hvSNIbd41q1CTNIjJyM81Cb60juGhp+iUG+oI33mUxpRhTr1y/+N/ B5SrzzPVL7jC9Q0VeWAl+uMnM8UKDfpUehaf01exiAhix9qHaO/NxLw7QocVyG7YchaU hz8m9B5kdbtBl18RUQcwLS+ahqMtIAG7ianZI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6wY1FeCUbjisXke3c+GFUYblp4GrWcer0YDYDlRXiUQ=; b=fGClGHrYKr0jRXsRyPJ+VM7wwhDGqU9rySQiJk5P2O3iuTpxMqU+5+6MjRemCLksde BDXQwt/ZTGKSnjhfL3Aw13ZRBwNm3GqheCV7T+/2BoJEEl1gxILE5I6SSMh9Q5jOKUx2 tKjbEprGlJqgPYQ9bTd2y+6STMRfqyCNG62fghiXx79rwgakvbLMPc+RnRQqmIBF25+n 98z5z58/l/98h5mfR1oytZqkXZeFqnR/UAVkIULdCBJKxv0JlUoG8T5FCvFh1ROsQfSM zYuPc6iESWQwaRb+pEWId+t+ufEiAjxqI8j2N6kK/ASf3jXhqBvTplRb6hWICR3+P/mF jcHA== X-Gm-Message-State: AO0yUKXw8krPuFD/BBX6SHDZVT3AdPXcmjBd3JXJwU8wTpVQjV84TK4g e7u6IDZhiviAY6my4SJqLKlqoo2ESeGmNqS59UQ= X-Google-Smtp-Source: AK7set+RMp+hk2+gPWNhCu4eTSGJwkhmskriChtjZSQgmrUjEbdUHwZxTXZn+BKVCGn3lD5hivN6IQ== X-Received: by 2002:a05:622a:216:b0:3bf:b82d:1686 with SMTP id b22-20020a05622a021600b003bfb82d1686mr1378806qtx.40.1677535724160; Mon, 27 Feb 2023 14:08:44 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:43 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Simon Glass Subject: [PATCH 6/7] proftool: Remove unused variables in make_flame_tree Date: Mon, 27 Feb 2023 17:08:38 -0500 Message-Id: <20230227220839.2519733-6-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> 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.6 at phobos.denx.de X-Virus-Status: Clean With clang-15 we now get reported that in the make_flame_tree function, neither the missing_count nor depth variables are used, only incremenete/decremented. Remove these. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- Cc: Simon Glass --- tools/proftool.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/tools/proftool.c b/tools/proftool.c index 089360428c2c..101bcb63334e 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -1713,18 +1713,11 @@ static int make_flame_tree(enum out_format_t out_format, struct flame_state state; struct flame_node *tree; struct trace_call *call; - int missing_count = 0; - int i, depth; + int i; /* maintain a stack of start times, etc. for 'calling' functions */ state.stack_ptr = 0; - /* - * The first thing in the trace may not be the top-level function, so - * set the initial depth so that no function goes below depth 0 - */ - depth = -calc_min_depth(); - tree = create_node("tree"); if (!tree) return -1; @@ -1736,16 +1729,10 @@ static int make_flame_tree(enum out_format_t out_format, ulong timestamp = call->flags & FUNCF_TIMESTAMP_MASK; struct func_info *func; - if (entry) - depth++; - else - depth--; - func = find_func_by_offset(call->func); if (!func) { warn("Cannot find function at %lx\n", text_offset + call->func); - missing_count++; continue; } From patchwork Mon Feb 27 22:08:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749176 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=d/fKL3iL; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZS76kzdz1yWy for ; Tue, 28 Feb 2023 09:10:15 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B1BF185AC5; Mon, 27 Feb 2023 23:08:59 +0100 (CET) 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="d/fKL3iL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC7A58546E; Mon, 27 Feb 2023 23:08:50 +0100 (CET) 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-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 252EC8523A for ; Mon, 27 Feb 2023 23:08:46 +0100 (CET) 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-qt1-x830.google.com with SMTP id d7so8411635qtr.12 for ; Mon, 27 Feb 2023 14:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535725; 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=3o4CRrA6UVzq46H3Bjk6MTdJq9l+S+VdhJKGwoKGADc=; b=d/fKL3iLD3vbkGv4MpHHUUDwIlbQMZ5lPV1m8LtViQcCK/j0EUeLH0kGw8c26dlm1u hkyidjEEaEfmG29YyPAP2a6+ZkFP34qvtd9LtW/oS8GzKSzp8aSBm+/m0K58E0JPPMJf X3/lp02MxBk0wf3KEPFmguFphcMMByMJkJB9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535725; 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=3o4CRrA6UVzq46H3Bjk6MTdJq9l+S+VdhJKGwoKGADc=; b=RYYKPdmX2D0qAq0vaXQHuEsmLYCwLbHCstnHW0tH2QgYHrdsowM1RmYnL1gZyX8h0t oxgFL4N4cwqM2yALlg/6tD75w17r3LwVD15vfVskVsom9doP9q43QHdgiR3KudlkC9tb /iUp5ovH+MtoVW6ATqvprYEEapipMJQX4piX6ReRXkG28GdIZVmM6pyoqeG+pPo4IIaa yAaj2m+4jQ2D8psrxCuX5iyPD3WFCRysXHu0GJVqLVxtD4xUIbV7QyY3p2+1vbGoZNht vBHGFnhWQLUYiH/c0yCWD+f8iK6ltlsQ+VKxVCetKW287aoRgpldQv4b4bV9hNmqwtPJ TspQ== X-Gm-Message-State: AO0yUKWGUmPSceBhUIgPekCPnFpR97ynQ05wKPQLOGEVP2f5oXtzp66w hBi4yUjGOBi0NHkeZjBaNhkZpBZpxmovNWpp8I8= X-Google-Smtp-Source: AK7set+RLY8LPksscRCR+QRtaSF+0Ebj1WKa0U/PLrSNASN7+ug4RxqbILMUgSeI5LRjhxH6xG608A== X-Received: by 2002:a05:622a:3c8:b0:3bf:d069:6f96 with SMTP id k8-20020a05622a03c800b003bfd0696f96mr1593515qtx.7.1677535724748; Mon, 27 Feb 2023 14:08:44 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:44 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 7/7] CI: Move to clang-15 Date: Mon, 27 Feb 2023 17:08:39 -0500 Message-Id: <20230227220839.2519733-7-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> 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.6 at phobos.denx.de X-Virus-Status: Clean As this is now the stable release, move to using that now for our tests. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- .azure-pipelines.yml | 6 +++--- .gitlab-ci.yml | 4 ++-- tools/docker/Dockerfile | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 30025ff7517e..59629b39265c 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -2,7 +2,7 @@ variables: windows_vm: windows-2019 ubuntu_vm: ubuntu-22.04 macos_vm: macOS-12 - ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20230126-17Feb2023 + ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20230126-27Feb2023 # Add '-u 0' options for Azure pipelines, otherwise we get "permission # denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer", # since our $(ci_runner_image) user is not root. @@ -244,7 +244,7 @@ stages: TEST_PY_BD: "sandbox" sandbox_clang: TEST_PY_BD: "sandbox" - OVERRIDE: "-O clang-14" + OVERRIDE: "-O clang-15" sandbox_nolto: TEST_PY_BD: "sandbox" BUILD_ENV: "NO_LTO=1" @@ -498,7 +498,7 @@ stages: OVERRIDE: "-a ASAN" sandbox_clang_asan: BUILDMAN: "sandbox" - OVERRIDE: "-O clang-14 -a ASAN" + OVERRIDE: "-O clang-15 -a ASAN" samsung_socfpga: BUILDMAN: "samsung socfpga" sun4i: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e320a24ef31e..068f39eb1114 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ # Grab our configured image. The source for this is found # in the u-boot tree at tools/docker/Dockerfile -image: trini/u-boot-gitlab-ci-runner:jammy-20230126-17Feb2023 +image: trini/u-boot-gitlab-ci-runner:jammy-20230126-27Feb2023 # We run some tests in different order, to catch some failures quicker. stages: @@ -260,7 +260,7 @@ sandbox test.py: sandbox with clang test.py: variables: TEST_PY_BD: "sandbox" - OVERRIDE: "-O clang-14" + OVERRIDE: "-O clang-15" <<: *buildman_and_testpy_dfn sandbox without LTO test.py: diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index c367bb482b4d..99da8cd38cae 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -12,7 +12,7 @@ ENV DEBIAN_FRONTEND=noninteractive # Add LLVM repository RUN apt-get update && apt-get install -y gnupg2 wget xz-utils && rm -rf /var/lib/apt/lists/* RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - -RUN echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-14 main | tee /etc/apt/sources.list.d/llvm.list +RUN echo deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main | tee /etc/apt/sources.list.d/llvm.list # Manually install the kernel.org "Crosstool" based toolchains for gcc-12.2.0 RUN wget -O - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/x86_64-gcc-12.2.0-nolibc-aarch64-linux.tar.xz | tar -C /opt -xJ @@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y \ binutils-dev \ bison \ build-essential \ - clang-14 \ + clang-15 \ coreutils \ cpio \ cppcheck \