kernel_samsung_a53x/drivers/mtd/maps
Baruch Siach d08f03c188 mtd: maps: physmap-core: fix flash size larger than 32-bit
[ Upstream commit 3884f03edd34887514a0865a80769cd5362d5c3b ]

mtd-ram can potentially be larger than 4GB. get_bitmask_order() uses
fls() that is not guaranteed to work with values larger than 32-bit.
Specifically on aarch64 fls() returns 0 when all 32 LSB bits are clear.
Use fls64() instead.

Fixes: ba32ce95cbd987 ("mtd: maps: Merge gpio-addr-flash.c into physmap-core.c")
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/9fbf3664ce00f8b07867f1011834015f21d162a5.1707388458.git.baruch@tkos.co.il
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:54 +01:00
..
amd76xrom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cfi_flagadm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ck804xrom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dc21285.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
esb2rom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ichxrom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
impa7.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_vr_nor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ixp4xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
l440gx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lantiq-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
map_funcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netsc520.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nettel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcmciamtd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-bt1-rom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-bt1-rom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-core.c mtd: maps: physmap-core: fix flash size larger than 32-bit 2024-11-19 08:44:54 +01:00
physmap-gemini.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-gemini.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-ixp4xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-ixp4xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-versatile.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
physmap-versatile.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pismo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plat-ram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmcmsp-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa2xx-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rbtx4939-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sa1100-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbc_gxx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sc520cdp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scb2_flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scx200_docflash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
solutionengine.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sun_uflash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ts5500_flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsunami_flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uclinux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmu-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00