mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 03:45:04 +07:00
19c233b79d
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>
33 lines
829 B
C
33 lines
829 B
C
/*
|
|
* Copyright (C) 2014 Linaro Ltd.
|
|
*
|
|
* Author: Linus Walleij <linus.walleij@linaro.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2, as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
#include <linux/of_platform.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include "core.h"
|
|
|
|
static const char *const realview_dt_platform_compat[] __initconst = {
|
|
"arm,realview-eb",
|
|
"arm,realview-pb1176",
|
|
"arm,realview-pb11mp",
|
|
"arm,realview-pba8",
|
|
"arm,realview-pbx",
|
|
NULL,
|
|
};
|
|
|
|
DT_MACHINE_START(REALVIEW_DT, "ARM RealView Machine (Device Tree Support)")
|
|
#ifdef CONFIG_ZONE_DMA
|
|
.dma_zone_size = SZ_256M,
|
|
#endif
|
|
.dt_compat = realview_dt_platform_compat,
|
|
.l2c_aux_val = 0x0,
|
|
.l2c_aux_mask = ~0x0,
|
|
MACHINE_END
|