summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-11-11 12:31:03 +0200
committerStefan Roese <sr@denx.de>2018-11-20 13:08:15 +0100
commitb335e91bd1e92c685c4133671119fa37c4ab43cb (patch)
treeba593378e9141e0d44acfef437c50fb568bb73e7 /include/linux
parent6d4d9bea35f0838a56751b50f48ade414639d372 (diff)
linux/sizes.h: sync from kernel
The kernel added SZ_4G macro in commit f2b9ba871b (arm64/kernel: kaslr: reduce module randomization range to 4 GB). Include linux/const.h for the _AC macro. Drop a local SZ_4G definition in tegra code. Cc: Tom Warren <twarren@nvidia.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sizes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sizes.h b/include/linux/sizes.h
index ce3e8150c1..fbde0bc7e8 100644
--- a/include/linux/sizes.h
+++ b/include/linux/sizes.h
@@ -8,6 +8,8 @@
#ifndef __LINUX_SIZES_H__
#define __LINUX_SIZES_H__
+#include <linux/const.h>
+
#define SZ_1 0x00000001
#define SZ_2 0x00000002
#define SZ_4 0x00000004
@@ -44,4 +46,6 @@
#define SZ_1G 0x40000000
#define SZ_2G 0x80000000
+#define SZ_4G _AC(0x100000000, ULL)
+
#endif /* __LINUX_SIZES_H__ */