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=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 A1CA2C47080 for ; Sun, 23 May 2021 19:41:09 +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 9C55A61244 for ; Sun, 23 May 2021 19:41:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C55A61244 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 948B282E6A; Sun, 23 May 2021 21:41:03 +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="H9n9DMMN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B29B382E4E; Sun, 23 May 2021 21:40:57 +0200 (CEST) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 AB5C182D6E for ; Sun, 23 May 2021 21:40:53 +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-qt1-x834.google.com with SMTP id v4so19246710qtp.1 for ; Sun, 23 May 2021 12:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=V6k6FRJ2OlTUrt4CyAkU92JG1hzW0yUFqNji3321Ly8=; b=H9n9DMMNhUuWqZUr2pzxavazidVmz/CYvuWbNf8Khsu1ViJFL+I+wAf7BbAWE01nE2 190AUd+5Jq6PSNggPPOMYu6Agc4b4TtdNQoZC4cu9GwalrdMTBs+5neJnOfGYu9EuGI9 KuYvMbNgJLs132+KpQfvDCDs96g5Rz2yZK+pU= 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=V6k6FRJ2OlTUrt4CyAkU92JG1hzW0yUFqNji3321Ly8=; b=GI8T9+tYAcwukrpgipGNHYcV0PCoVYyDKU0ZPaSBe0S1tNPlSjDZotw/LPTYJuTpY4 XcXLqXxqqdp8Em/B3X1sy97onVjdOW+7H0/DeHxx2Bk5NkOdnvl9eBXayxkUC8tR9P9O NipRAinjip9xyTqENcDvNPjFnvnb6U4rzRFO46c3Oz1anDqTyGpajs20Ho/CXd1b7w7p b1ZdH4nxy8OQw5hjrFyZf8geCny8Q0purgg2PtZdGAOgBVj4yV12VMmYXjV4Purvbskv ctMjJf1YzJ2oknhG2jRWBnFGl4Vmr8uNQjZZxvBhqTN/jyHvZOzSzdBS6Sx7xO6qs4eI 6IQg== X-Gm-Message-State: AOAM532aI+G6J4bU3+/hHsiIqLVtG2x6LbooRSST8aElh/CrQUrBHGNs sXXYNGIyeLQ7+u1qmZ5nKY6kCl7JmLPEbQ== X-Google-Smtp-Source: ABdhPJyA03ZqNXqwmjLNUio7Hsn3oXzvqRY5AM0XGQnZu+db9kDkuQKlKff319WQqk4Wd9BUj8C73g== X-Received: by 2002:a05:622a:1045:: with SMTP id f5mr23178512qte.392.1621798852668; Sun, 23 May 2021 12:40:52 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-9576-eca8-4e25-8149.res6.spectrum.com. [2603:6081:7b01:cbda:9576:eca8:4e25:8149]) by smtp.gmail.com with ESMTPSA id i10sm9506361qko.68.2021.05.23.12.40.51 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 May 2021 12:40:51 -0700 (PDT) Date: Sun, 23 May 2021 15:40:50 -0400 From: Tom Rini To: Heinrich Schuchardt Cc: u-boot@lists.denx.de Subject: Re: [PATCH] include/linux/byteorder: fix cpu_to_be32_array() Message-ID: <20210523194050.GS17669@bill-the-cat> References: <20210520153603.110583-1-xypron.glpk@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Zv14eP0xwNIUqp1r" Content-Disposition: inline In-Reply-To: <20210520153603.110583-1-xypron.glpk@gmx.de> 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.102.4 at phobos.denx.de X-Virus-Status: Clean --Zv14eP0xwNIUqp1r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 20, 2021 at 05:36:03PM +0200, Heinrich Schuchardt wrote: > In cpu_to_be32_array() and be32_to_cpu_array() we should not compare an i= nt > counter to a size_t parameter. Correct the type of the counter. >=20 > Signed-off-by: Heinrich Schuchardt > --- > include/linux/byteorder/generic.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/include/linux/byteorder/generic.h b/include/linux/byteorder/= generic.h > index 8fae186d1a..bee0ff6033 100644 > --- a/include/linux/byteorder/generic.h > +++ b/include/linux/byteorder/generic.h > @@ -190,7 +190,7 @@ static inline void be64_add_cpu(__be64 *var, u64 val) >=20 > static inline void cpu_to_be32_array(__be32 *dst, const u32 *src, size_t= len) > { > - int i; > + size_t i; >=20 > for (i =3D 0; i < len; i++) > dst[i] =3D cpu_to_be32(src[i]); > @@ -198,7 +198,7 @@ static inline void cpu_to_be32_array(__be32 *dst, con= st u32 *src, size_t len) >=20 > static inline void be32_to_cpu_array(u32 *dst, const __be32 *src, size_t= len) > { > - int i; > + size_t i; >=20 > for (i =3D 0; i < len; i++) > dst[i] =3D be32_to_cpu(src[i]); This was fixed in what commit from Linux? Thanks! --=20 Tom --Zv14eP0xwNIUqp1r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmCqr8EACgkQFHw5/5Y0 tyyDEgv+L5x2xoXNBUIN8m9y6/mMfhXCSGKGVDsua3kuJiorT8w8CoCIa1zcqCyy WFyLfEuI0QjBz56cmebgeYBT0lLQpL9FTHAh1cNNsvX3+a98z6GOP0x8vOI9eoLs BVuM/kcMn1jA+qLXmAJKTCERUlN/8KJftIhsBJN7o2KOSWZpcwdLrO0pUvf8dpEs H83zZDXLv4G+fhIZjTNUT3e71kRk4TiVQmg2uz4rBQ6qsTAGbmmyj2W2KvgO49sP ga5D0LT+nt81oVzCusVX6zbgsmsoVkSQjk/XIpURgS1k0eZkCE/H/dJG7OxstFnD 1uAe795jylmYRsmem3kvw3CpAnYAknECwiaxpnZp5koQkm3qOAVND1FCUCV+BFjB VXxcwAAwYSpdTkJT2MtKq5OTtrHe62xAWMYSJLeKHXIQweK5Q1nUZPQBS5j6ejWY 7kocl2S0z5es+MsqMdxafIWPXn79MWhRsnNQ8TqiFgYuVQTheF+UZj/ez0TqFYus dVO0JlhB =sLOT -----END PGP SIGNATURE----- --Zv14eP0xwNIUqp1r--