projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87dbc20
)
sizes.h: add SZ_8G/SZ_16G/SZ_32G macros
author
Huang Shijie
<sjhuang@iluvatar.ai>
Tue, 29 Dec 2020 23:14:52 +0000
(15:14 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 29 Dec 2020 23:36:49 +0000
(15:36 -0800)
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>
include/linux/sizes.h
patch
|
blob
|
history
diff --git
a/include/linux/sizes.h
b/include/linux/sizes.h
index
9874f6f
..
1ac79bc
100644
(file)
--- 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__ */