summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Genoud <[email protected]>2026-01-23 12:44:59 +0100
committerMichael Trimarchi <[email protected]>2026-02-03 21:45:21 +0100
commite41e5ae4b5e7fa8d9d08c5cdfba793632321dbf6 (patch)
tree3e2260bdff5fe4743aba27017ff92638d3296b80 /scripts
parent7d1de98011519ebbb128f76f368724b62f3bc6eb (diff)
mtd: rawnand: sunxi_spl: Fix cast to pointer from integer warnings
Fix a cast to pointer from integer warning on ARM64 On 64bits platform, the casts done in {read,write}l() give that kind of warnings: drivers/mtd/nand/raw/sunxi_nand_spl.c: In function ‘check_value_inner’: ./arch/arm/include/asm/io.h:110:43: warning: cast to pointer from \ integer of different size [-Wint-to-pointer-cast] 110 | #define __raw_readl(a) (*(volatile unsigned int *)(a)) | ^ [...] drivers/mtd/nand/raw/sunxi_nand_spl.c:81:27: note: in expansion of \ macro ‘readl’ 81 | int val = readl(offset) & expected_bits; Introduce {read,write}l_nfc inline function to do the right cast and push the base address (SUNXI_NFC_BASE) into those functions, making the code more readable. Signed-off-by: Richard Genoud <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions