ARM: EXYNOS: Annotate iomem and pm_data pointers __ro_after_init
The pointers to __iomem sysram and exynos_pm_data are set only during initcalls. Later the pointers itself are used only in read-only way so we can mark them __ro_after_init to increase code safeness. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
@@ -45,8 +45,8 @@ static struct platform_device exynos_cpuidle = {
|
||||
.id = -1,
|
||||
};
|
||||
|
||||
void __iomem *sysram_base_addr;
|
||||
void __iomem *sysram_ns_base_addr;
|
||||
void __iomem *sysram_base_addr __ro_after_init;
|
||||
void __iomem *sysram_ns_base_addr __ro_after_init;
|
||||
|
||||
void __init exynos_sysram_init(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user