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 5A47FC64ED6 for ; Mon, 27 Feb 2023 22:08:49 +0000 (UTC) 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) 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 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.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 --- 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; -- 2.34.1