[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK8P3a1mKOt+LMiECJn8uvgbwPkA+DNR9=cJGjKmhsgRP+p9+w@mail.gmail.com>
Date: Thu, 9 Jan 2020 23:19:40 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Miquel Raynal <miquel.raynal@...tlin.com>
Cc: Piotr Sroka <piotrs@...ence.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
kbuild test robot <lkp@...el.com>,
Julia Lawall <julia.lawall@...6.fr>,
YueHaibing <yuehaibing@...wei.com>,
linux-mtd <linux-mtd@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mtd: rawnand: cadence: fix address space mixup
On Thu, Jan 9, 2020 at 8:21 PM Miquel Raynal <miquel.raynal@...tlin.com> wrote:
>
> Hi Arnd,
>
> Arnd Bergmann <arnd@...db.de> wrote on Tue, 10 Dec 2019 20:59:55 +0100:
>
> > dma_addr_t and pointers can are not interchangeable, and can
> > be different sizes:
> >
> > drivers/mtd/nand/raw/cadence-nand-controller.c: In function 'cadence_nand_cdma_transfer':
> > drivers/mtd/nand/raw/cadence-nand-controller.c:1283:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> > (void *)dma_buf, (void *)dma_ctrl_dat,
> > ^
> > drivers/mtd/nand/raw/cadence-nand-controller.c:1283:29: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> > (void *)dma_buf, (void *)dma_ctrl_dat,
> > ^
> >
> > Use dma_addr_t consistently here, which cleans up a couple of casts
> > as a side-effect.
> >
> > Fixes: ec4ba01e894d ("mtd: rawnand: Add new Cadence NAND driver to MTD subsystem")
> > Signed-off-by: Arnd Bergmann <arnd@...db.de>
>
> I just realized that I received three patches for the same issue in a
> very tight timeframe about a month ago, yours was of course entirely
> valid but I choose to apply the one from someone not contributing a lot
> to encourage him, hope you don't mind :)
Sounds good to me, thanks for getting it fixed
Arnd
Powered by blists - more mailing lists