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 E4E07C433EF for ; Sun, 15 May 2022 10:22:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5C5A9839CC; Sun, 15 May 2022 12:22:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=nic.cz 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; secure) header.d=nic.cz header.i=@nic.cz header.b="hp7fchBI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D1A283F68; Sun, 15 May 2022 12:22:00 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8FDB58017A for ; Sun, 15 May 2022 12:21:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPS id B0E2614003F; Sun, 15 May 2022 12:21:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1652610117; bh=ldnGAd4ynqJL8AmQLxjg6iDVta68LaRm4hgIErt4Fdo=; h=Date:From:To:Cc:Subject:From; b=hp7fchBIth7T5nThbazJAY+qPz8pHyCDsd7r6kgcn++cMmabqaNlW9aqG3AF+MZTf cWvZOttpRc1W/J69kj9K5wvqUdLglv+R0PJn3xvPlLI06vvhGucNPotbmOYcpjRhh0 Vopqg4d0A+4vVKpx+FPQT4VS6X6d8msYbuMEUcYs= Date: Sun, 15 May 2022 12:21:56 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Heinrich Schuchardt , Jagan Teki , Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH] mtd: mtdpart: Change size type from fdt_addr_t to fdt_size_t Message-ID: <20220515122156.09cd7401@thinkpad> In-Reply-To: <20220513202451.3283-1-pali@kernel.org> References: <20220513202451.3283-1-pali@kernel.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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.5 at phobos.denx.de X-Virus-Status: Clean On Fri, 13 May 2022 22:24:51 +0200 Pali Roh=C3=A1r wrote: > Set correct type for 3rd argument of ofnode_get_addr_size_index_notrans() > function. It expects fdt_size_t * and not fdt_addr_t *. >=20 > When these two types do not have same size then U-Boot throw compile > warning: >=20 > drivers/mtd/mtdpart.c: In function =E2=80=98add_mtd_partitions_of=E2= =80=99: > drivers/mtd/mtdpart.c:906:57: warning: passing argument 3 of =E2=80= =98ofnode_get_addr_size_index_notrans=E2=80=99 from incompatible pointer ty= pe [-Wincompatible-pointer-types] > offset =3D ofnode_get_addr_size_index_notrans(child, 0, &size); > ^~~~~ > In file included from include/dm/device.h:13, > from include/linux/mtd/mtd.h:26, > from include/ubi_uboot.h:28, > from drivers/mtd/mtdpart.c:27: > include/dm/ofnode.h:530:25: note: expected =E2=80=98fdt_size_t *=E2= =80=99 {aka =E2=80=98long long unsigned int *=E2=80=99} but argument is of = type =E2=80=98fdt_addr_t *=E2=80=99 {aka =E2=80=98long unsigned int *=E2=80= =99} > fdt_size_t *size); > ~~~~~~~~~~~~^~~~ >=20 > Signed-off-by: Pali Roh=C3=A1r Reviewed-by: Marek Beh=C3=BAn