projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee4e23
)
uaccess: provide a generic TASK_SIZE_MAX definition
author
Christoph Hellwig
<hch@lst.de>
Mon, 7 Sep 2020 05:58:18 +0000
(07:58 +0200)
committer
Palmer Dabbelt
<palmerdabbelt@google.com>
Sun, 4 Oct 2020 17:25:35 +0000
(10:25 -0700)
Define TASK_SIZE_MAX as TASK_SIZE if not otherwise defined.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
include/linux/uaccess.h
patch
|
blob
|
history
diff --git
a/include/linux/uaccess.h
b/include/linux/uaccess.h
index
70073c8
..
d0e4376
100644
(file)
--- a/
include/linux/uaccess.h
+++ b/
include/linux/uaccess.h
@@
-31,6
+31,10
@@
typedef struct {
/* empty dummy */
} mm_segment_t;
+#ifndef TASK_SIZE_MAX
+#define TASK_SIZE_MAX TASK_SIZE
+#endif
+
#define uaccess_kernel() (false)
#define user_addr_max() (TASK_SIZE_MAX)