| .. | .. |
|---|
| 8 | 8 | */ |
|---|
| 9 | 9 | #ifndef __ASM_SH_CACHE_H |
|---|
| 10 | 10 | #define __ASM_SH_CACHE_H |
|---|
| 11 | | -#ifdef __KERNEL__ |
|---|
| 12 | 11 | |
|---|
| 13 | 12 | #include <linux/init.h> |
|---|
| 14 | 13 | #include <cpu/cache.h> |
|---|
| 15 | 14 | |
|---|
| 16 | 15 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
|---|
| 17 | 16 | |
|---|
| 18 | | -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) |
|---|
| 17 | +#define __read_mostly __section(".data..read_mostly") |
|---|
| 19 | 18 | |
|---|
| 20 | 19 | #ifndef __ASSEMBLY__ |
|---|
| 21 | 20 | struct cache_info { |
|---|
| .. | .. |
|---|
| 44 | 43 | unsigned long flags; |
|---|
| 45 | 44 | }; |
|---|
| 46 | 45 | #endif /* __ASSEMBLY__ */ |
|---|
| 47 | | -#endif /* __KERNEL__ */ |
|---|
| 48 | 46 | #endif /* __ASM_SH_CACHE_H */ |
|---|