]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/cache.h
add missing include
[bcachefs-tools-debian] / include / linux / cache.h
1 #ifndef __TOOLS_LINUX_CACHE_H
2 #define __TOOLS_LINUX_CACHE_H
3
4 #define L1_CACHE_BYTES          64
5 #define SMP_CACHE_BYTES         L1_CACHE_BYTES
6
7 #define L1_CACHE_ALIGN(x)       __ALIGN_KERNEL(x, L1_CACHE_BYTES)
8
9 #define __read_mostly
10 #define __ro_after_init
11
12 #define ____cacheline_aligned   __attribute__((__aligned__(SMP_CACHE_BYTES)))
13 #define ____cacheline_aligned_in_smp ____cacheline_aligned
14
15 #endif /* __TOOLS_LINUX_CACHE_H */
16