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 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 14ADFEB64DD for ; Fri, 21 Jul 2023 23:35:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8EE56867B2; Sat, 22 Jul 2023 01:34:46 +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="ayUec3MO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 37292863E8; Sat, 22 Jul 2023 01:34:37 +0200 (CEST) Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) (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 E24AE863B9 for ; Sat, 22 Jul 2023 01:34:34 +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-x112f.google.com with SMTP id 00721157ae682-570877f7838so28706457b3.0 for ; Fri, 21 Jul 2023 16:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689982473; x=1690587273; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=p6CM8MhZJXTiCPrdGh6xaKbme5azKnFBrLmFvb0g99c=; b=ayUec3MOZfLg4bbDtz8V6LXYh+N3jBMxl9KWc1eVpjaBUtlMMSoO/QpKY+p22i/QRW IarnaZaO2wuRzZEnkFIawNkOnM5HajVJlb23jcSjJKZzTxW4yAveobPiCchVGzDf3x3D ZmjayKpPo9aloi7wPkMalE2kBuGxKGkLtdLSg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689982473; x=1690587273; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=p6CM8MhZJXTiCPrdGh6xaKbme5azKnFBrLmFvb0g99c=; b=ETpbn1ktDj30r7IZujFCi0Zau6GzSfVx82QBzC/xz4XH4cXsstfzhge9tK8sWyPwkK ltMjy+M+zSA1bHK+GBNJ0YI71BloRLMitAeK3faZijcmXtqDrrVa58HqZ378x5BYeVX1 tQljZLvTBoI+z+VZqQnTw+Uvn3AQ5hM3A0BWjPm2h7RRLDejbunF0iRnLRnrmKatVBpX c8/KNM/wv8jIhXcQ3divxhkzx7tC/yA97yj9pcR5eKJx3nkGm0aSP2UXiM/DBdVRHmPg IBc1SwmJXV7idw7rIwOyxzXE7iXBnLq6+vno/0cfAZdBoEMR0uw6BY2fns2cY8fNmwNo jCcg== X-Gm-Message-State: ABy/qLbf4Yj0ggRLESSRBH6MC2aDSt3WgUWPLTXysvKMy7k8zZL6faxR CY6YSugRMOunSwG9t7lFytffNg== X-Google-Smtp-Source: APBJJlFoqwUin4yb2R/jY2dGjGZoNI3bjiC7VP2nVHizCnQB/D2n/XqL5yssKfYxNCTJk3azWTbvtg== X-Received: by 2002:a0d:d8ca:0:b0:569:feee:3950 with SMTP id a193-20020a0dd8ca000000b00569feee3950mr1489333ywe.2.1689982473669; Fri, 21 Jul 2023 16:34:33 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-81e1-2dbc-e68b-5ea0.res6.spectrum.com. [2603:6081:7b00:6400:81e1:2dbc:e68b:5ea0]) by smtp.gmail.com with ESMTPSA id g197-20020a0dddce000000b00583a8754bbcsm407822ywe.108.2023.07.21.16.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 16:34:33 -0700 (PDT) Date: Fri, 21 Jul 2023 19:34:31 -0400 From: Tom Rini To: Nikhil M Jain Cc: u-boot@lists.denx.de, devarsht@ti.com, vigneshr@ti.com, nsekhar@ti.com, sjg@chromium.org Subject: Re: [PATCH V2 2/2] common: splash_source: Fix type casting errors Message-ID: <20230721233431.GI3630934@bill-the-cat> References: <20230621105953.49533-1-n-jain1@ti.com> <20230621105953.49533-3-n-jain1@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t3Qk2SUWrRungRu4" Content-Disposition: inline In-Reply-To: <20230621105953.49533-3-n-jain1@ti.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --t3Qk2SUWrRungRu4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 21, 2023 at 04:29:53PM +0530, Nikhil M Jain wrote: > During compilation splash_source puts out below warning for type > conversion in splash_load_fit for bmp_load_addr and fit_header. > Change their type to uintptr_t to fix the warnings. >=20 > common/splash_source.c: In function =E2=80=98splash_load_fit=E2=80=99: > common/splash_source.c:366:22: warning: cast to pointer from integer of d= ifferent size [-Wint-to-pointer-cast] > 366 | img_header =3D (struct legacy_img_hdr *)bmp_load_addr; > | ^ > common/splash_source.c:376:49: warning: cast from pointer to integer of d= ifferent size [-Wpointer-to-int-cast] > 376 | res =3D splash_storage_read_raw(location, (u32)fit_header= , fit_size); > | ^ > common/splash_source.c:401:25: warning: cast to pointer from integer of d= ifferent size [-Wint-to-pointer-cast] > 401 | memmove((void *)bmp_load_addr, internal_splash_da= ta, internal_splash_size); >=20 > The above warnings are generated if CONFIG_FIT is enabled. >=20 > Signed-off-by: Nikhil M Jain Applied to u-boot/master, thanks! --=20 Tom --t3Qk2SUWrRungRu4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmS7FgcACgkQFHw5/5Y0 tyxlcQv+MVG86C4Xo3ejMm46jGCShAGXZLakGfdE4rJ8h2eDRPJ4UZIhL5yOAF4z AzpPcHH32fZz6gPKyRiB99hJBheV5Fye/4j69TClqBAJMLpsRVXbt3k37D3TwIx1 e6Eq0APCrpVo/aUW4I9ZYHJvk9/xpnxrozsEkVTb1I3u6DvyXEgxsJnlPYMjrC8g F9SDDYMo1K0oVfc7iFAsnrYmhu31R1kPoz+8agwpW6PpGLkho14rdeTVNz/WGblP MBOwwr9VNyy1zQu89WtXMUUAoF2P+uSHN6kAemoccjnAscUFjaJnBCsiASzYe0mD IpjXFmTPv6meDKkqZJYcG+Tn/l9p/Ed4vYdpJ6l0Ku/6nvSAD574Jfk9zVXG4ogg MRb1xDU9WeCHDKouN2+POSTXMFGKRhYRrnIY814qWRjlOEJdDgYKmZl2P2LB55KK A34/WIVyK6w+udplAUhf0FH98vRFPXJan10ZtVU5EQRJcH5SJBdqeIKbXRCMuyVo UitGlYOv =s3/2 -----END PGP SIGNATURE----- --t3Qk2SUWrRungRu4--