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>
此提交包含在:
@@ -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,
|
||||
};
|
||||
|
新增問題並參考
封鎖使用者