Skip to content

Commit

Permalink
sizes.h: add SZ_8G/SZ_16G/SZ_32G macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Huang Shijie authored and Linus Torvalds committed Dec 29, 2020
1 parent 87dbc20 commit 8b0fac4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/sizes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit 8b0fac4

Please sign in to comment.