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 615C1C43334 for ; Tue, 7 Jun 2022 16:47:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D7D3E84382; Tue, 7 Jun 2022 18:46:50 +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="Oa9AK1lf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C6F558424E; Tue, 7 Jun 2022 18:46:40 +0200 (CEST) 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 8300684344 for ; Tue, 7 Jun 2022 18:46:37 +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-qt1-x82b.google.com with SMTP id c8so13059787qtj.1 for ; Tue, 07 Jun 2022 09:46:37 -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; bh=EimCNqf+u1mboe2t1au56gFSZ9CBb1VqdWD2E7E0zvM=; b=Oa9AK1lfAP3NhefEFX+rHFLuXUpAXk82DkXd3TGwcLI4aCT0l1xGVxsBRPdhN3OSH9 fewSr+H6/KFzWE1RUWbtXfytE7/eHt0TuraYIX3K0jw5k/m6oQHKUBdCAUfHUB3AG66s aPdkYNbJ5GaZANt0LrEGTlgmrVDqzu4LKiqCg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EimCNqf+u1mboe2t1au56gFSZ9CBb1VqdWD2E7E0zvM=; b=nRLmv/QbgV63gn2mViD+5dqPgRNQXsDpdB0EtZsCvSZh0kiARl5xQuPRp3u8Y8T6wZ OsMMc6k/gZX/u+5jq7LuYsUAcjfA0A172SqyUisiLaYE1LoetrBQ5qP1l6ZhFUJIvJfj goFA0H5upYjGqG5F//YrKxH1Sn0Sitzm1UUG/UmBM8nyO8rVgOFI/WZtuCsfQ59zo52q COMlbcUEERNcM1Gmh92oXQ4DVeH4X8vazI1tV8Y47P6A3gq2p1OGOCwQSZTCpegveeLo ZwJYvc7APGuJLsPZAAiNCoIt+V+fSRANki5o7cwbjFFn/8qXaIEMFi6bbB0D4xoldRkS SCsQ== X-Gm-Message-State: AOAM532UpVPgJvYhk4rlQreBJGtAnCKKLv9jLTtxgZ4PNjqpEYHOrvOw 3Jg0TGu1mfXIkbxXUlREsvEnvg== X-Google-Smtp-Source: ABdhPJxUrrMPGJz9zs2yZmVnE3RK0oBjGq0tvZkg5ubZ9B/WhOcB9wJSBV4H8So9BEmTvy8N2h678Q== X-Received: by 2002:ac8:5e4d:0:b0:304:e82f:9423 with SMTP id i13-20020ac85e4d000000b00304e82f9423mr12660182qtx.173.1654620396103; Tue, 07 Jun 2022 09:46:36 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id v12-20020a05620a440c00b006a6a904c0a5sm1318204qkp.107.2022.06.07.09.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 09:46:35 -0700 (PDT) Date: Tue, 7 Jun 2022 12:46:33 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , 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: <20220607164633.GJ2484912@bill-the-cat> References: <20220513202451.3283-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LG0Ll82vYr46+VA1" Content-Disposition: inline In-Reply-To: <20220513202451.3283-1-pali@kernel.org> 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.5 at phobos.denx.de X-Virus-Status: Clean --LG0Ll82vYr46+VA1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 13, 2022 at 10:24:51PM +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 Applied to u-boot/next, thanks! --=20 Tom --LG0Ll82vYr46+VA1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKfgOkACgkQFHw5/5Y0 tyykCAv+O1r9p4mHcd0D2YeAW6OdOcT7UHP1oaSrFEx9+jRElbhiTcKf8TTbL1Fd mwEEEdWjGuMTocq9D0xTj4r+xeOXWMTO4rKGoWhFc6K0TIoyrXEw4LOUwkZVT042 NhQ/VMVLEBKd8SJUCnQscUlr6y29HgmxNL1MP2PeObZWqCgHdMucDTzG5CIHvj3b lwCNwJCv+ktxK6pPPUOVvbwnScOSH9BKsBFDt2Ylwzc5ntZ1SsK9vN7ObimJJ+cg TDB2fBZ/mprxC8/rWXzG9dhEoXhTXflkcu5kP1DFsnvXzUcAxq4IGYOSwyFg96gF 86RdeuANFGQ/PLKx7rNC0fbBfLl6urt6qPSty1w54MpQqlcxqq4S3WXoCeUAcImC dxsQiC57qYrZi63b/0DP+UpxX7M4CvyGGBZnXxl+695KfgYAMrDsnjL3uOKXgyWf MxrGPSxK+OgpMfRgsn7G/nbbPBqGMSCOf01TtBPob0v9END6G71lX/T4E9PhZPlz jFhovtZS =gm+y -----END PGP SIGNATURE----- --LG0Ll82vYr46+VA1--