[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200114170528.1554-1-miquel.raynal@bootlin.com>
Date: Tue, 14 Jan 2020 18:05:28 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Krzysztof Kozlowski <krzk@...nel.org>,
Kyungmin Park <kyungmin.park@...sung.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 1/3] mtd: onenand: samsung: Fix pointer cast -Wpointer-to-int-cast warnings on 64 bit
On Sun, 2019-12-29 at 18:36:10 UTC, Krzysztof Kozlowski wrote:
> iomem pointers should be casted to unsigned long to avoid
> -Wpointer-to-int-cast warnings when compiling on 64-bit platform (e.g.
> with COMPILE_TEST):
>
> drivers/mtd/nand/onenand/samsung_mtd.c: In function ‘s3c_onenand_readw’:
> drivers/mtd/nand/onenand/samsung_mtd.c:251:6: warning:
> cast from pointer to integer of different size [-Wpointer-to-int-cast]
> if ((unsigned int) addr < ONENAND_DATARAM && onenand->bootram_command) {
> ^
>
> Signed-off-by: Krzysztof Kozlowski <krzk@...nel.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
Powered by blists - more mailing lists