diff options
| author | Baruch Siach <[email protected]> | 2024-02-08 10:34:18 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2024-02-26 10:26:21 +0000 |
| commit | 3884f03edd34887514a0865a80769cd5362d5c3b (patch) | |
| tree | 35722c8168bc3d57c4c2336e793f5f6d314935bc /drivers/fpga/altera-fpga2sdram.c | |
| parent | mtd: flashchip: explicitly include <linux/wait.h> (diff) | |
| download | kernel-3884f03edd34887514a0865a80769cd5362d5c3b.tar.gz kernel-3884f03edd34887514a0865a80769cd5362d5c3b.zip | |
mtd: maps: physmap-core: fix flash size larger than 32-bit
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 <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/9fbf3664ce00f8b07867f1011834015f21d162a5.1707388458.git.baruch@tkos.co.il
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions
