summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHuang Shijie <sjhuang@iluvatar.ai>2020-12-29 15:14:52 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-29 15:36:49 -0800
commit8b0fac44bd1ff17016502b3c3533f5abb8456c65 (patch)
treebf372147c6a6ffd973fd0b793b34dea3d86d68d0 /include/linux
parent87dbc209ea04645fd2351981f09eff5d23f8e2e9 (diff)
downloadlinux-8b0fac44bd1ff17016502b3c3533f5abb8456c65.tar.gz
linux-8b0fac44bd1ff17016502b3c3533f5abb8456c65.tar.bz2
linux-8b0fac44bd1ff17016502b3c3533f5abb8456c65.zip
sizes.h: add SZ_8G/SZ_16G/SZ_32G macros
Add these macros, since we can use them in drivers. Link: https://lkml.kernel.org/r/20201229072819.11183-1-sjhuang@iluvatar.ai Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sizes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sizes.h b/include/linux/sizes.h
index 9874f6f67537..1ac79bcee2bb 100644
--- a/include/linux/sizes.h
+++ b/include/linux/sizes.h
@@ -44,6 +44,9 @@
#define SZ_2G 0x80000000
#define SZ_4G _AC(0x100000000, ULL)
+#define SZ_8G _AC(0x200000000, ULL)
+#define SZ_16G _AC(0x400000000, ULL)
+#define SZ_32G _AC(0x800000000, ULL)
#define SZ_64T _AC(0x400000000000, ULL)
#endif /* __LINUX_SIZES_H__ */