From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EFCCC07E95 for ; Wed, 7 Jul 2021 17:34:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C957961CC8 for ; Wed, 7 Jul 2021 17:34:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C957961CC8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EEA0E82E88; Wed, 7 Jul 2021 19:34:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="n9XZdZ72"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 63EBC82E7D; Wed, 7 Jul 2021 19:34:05 +0200 (CEST) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 844D182E88 for ; Wed, 7 Jul 2021 19:34:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf36.google.com with SMTP id g6so501138qvu.0 for ; Wed, 07 Jul 2021 10:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Gzq3xXoBCWGCaC0qMFvqsN+kjLrohs4O1NYG0c99pBw=; b=n9XZdZ72CybIJ9Vh3FY42rnb0TFSsMABfjWpYcqqtvJL458xAo6xKySvd1LHZNZ2Tf YTmXznRIPzIQmE6rIrK0x0qEKPJqTJFMA85ZLgNrBU/i5Dfj6P0+g/PbDk8c4dRnAMTs okzuOXQu8hXm+0EoLvQzPzuR7nqANaNPNCk0U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Gzq3xXoBCWGCaC0qMFvqsN+kjLrohs4O1NYG0c99pBw=; b=MHKR3s81euSK7YUvoEWNqZ9Ytu3VEWMJUeWAob4rJhvJ+e3FCbnz2VlZ5MPoLpTXY6 eax1Gqzzzu8PJf3zDCajy/U1/pOXC8p4sCYYE3/l1SFrZ5MXa7DkkH0Yyh9aEtJ8GTE4 gCeMdNWFu25Rp/TaNxC9Qvl7hUOwvLg++u1RW1yRP6I1EweuBCzPL9k5/KuweI18weAg Q7FGE9b7l4OFJVIoOGEK4lLlcxci7ilqWkl8KrMIG4Co+FFPeNwTeVBg+lH6cPrFLHvU Ay0g9Xfh1yxpwHJVwdEaOLtiklnSfAtIPtPIaISg57hNcvkxkXx+YfZ/PtqM57NehmNI jV7g== X-Gm-Message-State: AOAM532ga4UKaFsh+c8UhYgHmYQXTTGJuZd2ong7lgWrY+0W2QQO7q8w 9r6vEC9TbKvgjVPDohUUZLuXL0LNhn1kzg== X-Google-Smtp-Source: ABdhPJyHJY1sOHqke3bSpyMPK0wG/jFefMCcyEaSDm7frl+PBbipbQKRwZrWFBryacbH3idQt4ZrrA== X-Received: by 2002:a0c:ff25:: with SMTP id x5mr25187522qvt.39.1625679239240; Wed, 07 Jul 2021 10:33:59 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-5120-5dda-66b4-5098.res6.spectrum.com. [2603:6081:7b01:cbda:5120:5dda:66b4:5098]) by smtp.gmail.com with ESMTPSA id x3sm6189559qkj.105.2021.07.07.10.33.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Jul 2021 10:33:57 -0700 (PDT) Date: Wed, 7 Jul 2021 13:33:56 -0400 From: Tom Rini To: u-boot@lists.denx.de Subject: Re: [RFC 1/7] ARM: mvebu: a38x: Correct mismatched bound warnings Message-ID: <20210707173356.GD9516@bill-the-cat> References: <20210503204859.18756-1-trini@konsulko.com> <20210503204859.18756-2-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+yrps2w1jHU1l29Y" Content-Disposition: inline In-Reply-To: <20210503204859.18756-2-trini@konsulko.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --+yrps2w1jHU1l29Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 03, 2021 at 04:48:53PM -0400, Tom Rini wrote: > With gcc-11 we see: > drivers/ddr/marvell/a38x/ddr3_debug.c:672:47: error: argument 2 of type '= u32[5]' {aka 'unsigned int[5]'} with mismatched bound [-Werror=3Darray-para= meter=3D] > 672 | int ddr3_tip_read_adll_value(u32 dev_num, u32 pup_values[MAX_INTE= RFACE_NUM * MAX_BUS_NUM], > | ~~~~^~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from drivers/ddr/marvell/a38x/ddr3_training_ip_engine.h:= 10, > from drivers/ddr/marvell/a38x/ddr3_init.h:17, > from drivers/ddr/marvell/a38x/ddr3_debug.c:6: > drivers/ddr/marvell/a38x/ddr3_training_ip_flow.h:116:47: note: previously= declared as 'u32[]' {aka 'unsigned int[]'} >=20 > And similar warnings. Correct these by updating the prototype. Remove > the prototype for ddr3_tip_read_pup_value as it is unused. >=20 > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! --=20 Tom --+yrps2w1jHU1l29Y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmDl5YMACgkQFHw5/5Y0 tyxcaAv/fBr0FuPx0+bSJDU0Qdbj70rn7gfqwbXP37F6H63yWbJxcuCSSKP37PUZ 9gaW5ESUzQrh9XYh3QI7KD1okCGSO+WSUh48UHY51X9WUsxzfuobXXcFy9yn9fR+ +ZyEe7Yuo66XpJy/IFc7IiKb+HZn/mWZHOy0vifN9B3rFPA++vSsmzq/+5lYjn1I NaKracootOt4/Od2J7JjICh2OOIFCnjBI20EvSKhiZA8nYjsLVGCTDIpNjefOyUI 4u4aQdd9/29sANOt8jaXrrNn3wCQE2XZo6rwFGoTPdPY+f9auPdXZlxmYtUrANd0 KkIEX/H4ImhFwYX7+YGI80qwG+riTkSmcp50aTiqtoNPdX5Bq9XdbrDacpQQtJh4 DB/23wXI6/1+ESRErkQdjC0niKD8rzUNwKShst882mT52PQYCkBa94JeDNBrtIyC 69NS88z18sSiHUtnHMFO35kCDA71Hgwc6gshTWRMqVWf64OrHOHD8DcL8wRlp9QT shv6ZecF =TnNd -----END PGP SIGNATURE----- --+yrps2w1jHU1l29Y--