kernel/arch/xtensa/include/asm/cache.h
.. .. @@ -11,7 +11,7 @@ 11 11 #ifndef _XTENSA_CACHE_H 12 12 #define _XTENSA_CACHE_H 13 13 14 -#include <variant/core.h>14 +#include <asm/core.h>15 15 16 16 #define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH 17 17 #define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE .. .. @@ -31,4 +31,10 @@ 31 31 32 32 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES 33 33 34 +/*35 + * R/O after init is actually writable, it cannot go to .rodata36 + * according to vmlinux linker script.37 + */38 +#define __ro_after_init __read_mostly39 +34 40 #endif /* _XTENSA_CACHE_H */