hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/sh/include/asm/cache.h
....@@ -8,14 +8,13 @@
88 */
99 #ifndef __ASM_SH_CACHE_H
1010 #define __ASM_SH_CACHE_H
11
-#ifdef __KERNEL__
1211
1312 #include <linux/init.h>
1413 #include <cpu/cache.h>
1514
1615 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
1716
18
-#define __read_mostly __attribute__((__section__(".data..read_mostly")))
17
+#define __read_mostly __section(".data..read_mostly")
1918
2019 #ifndef __ASSEMBLY__
2120 struct cache_info {
....@@ -44,5 +43,4 @@
4443 unsigned long flags;
4544 };
4645 #endif /* __ASSEMBLY__ */
47
-#endif /* __KERNEL__ */
4846 #endif /* __ASM_SH_CACHE_H */