mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
When __ioremap_caller() was replaced by ioremap_prot(), the __ref annotation added in commitaf1415314a("sh: Flag __ioremap_caller() __init_refok.") was removed, causing a modpost warning: WARNING: modpost: vmlinux: section mismatch in reference: ioremap_prot+0x88 (section: .text) -> ioremap_fixed (section: .init.text) ioremap_prot() calls ioremap_fixed() (which is marked __init), but only before mem_init_done becomes true, so this is safe. Hence fix this by re-adding the lost __ref. Link: https://lkml.kernel.org/r/[email protected] Fixes:0453c9a780("sh: mm: convert to GENERIC_IOREMAP") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Baoquan He <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Cc: Rich Felker <[email protected]> Cc: Yoshinori Sato <[email protected]> Signed-off-by: Andrew Morton <[email protected]>