ARM: appropriate __init annotation for const data

Init data marked const should be annotated with __initconst for
correctness and not __initdata.  In some cases the array gathering
references to that data has to be marked const as well. This fixes
LTO builds that otherwise fail with section mismatch errors.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
此提交包含在:
Nicolas Pitre
2015-07-27 18:27:52 -04:00
提交者 Olof Johansson
父節點 a115681460
當前提交 19c233b79d
共有 40 個檔案被更改,包括 50 行新增50 行删除

查看文件

@@ -23,7 +23,7 @@
#include "r8a7791.h"
#include "rcar-gen2.h"
static const char *r8a7791_boards_compat_dt[] __initdata = {
static const char *const r8a7791_boards_compat_dt[] __initconst = {
"renesas,r8a7791",
NULL,
};