Skip to content
Commit 7e4a494c authored by Roger Quadros's avatar Roger Quadros Committed by Dario Binacchi
Browse files

mtd: rawnand: omap_gpmc: Fix build warning on 64-bit platforms



Pointer size cannot be assumed to be 32-bit, so use
use uintptr_t instead of uint32_t.

Fixes the below build warning on 64-bit builds.

drivers/mtd/nand/raw/omap_gpmc.c:439:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  head = ((uint32_t) buf) % 4;

Signed-off-by: default avatarRoger Quadros <rogerq@kernel.org>
Reviewed-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Link: https://lore.kernel.org/all/20221011115012.6181-4-rogerq@kernel.org


Signed-off-by: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
parent 472229fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment