uaccess: provide a generic TASK_SIZE_MAX definition
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>
This commit is contained in:

committed by
Palmer Dabbelt

parent
eee4e23099
commit
24ce66c04a
@@ -31,6 +31,10 @@ typedef struct {
|
|||||||
/* empty dummy */
|
/* empty dummy */
|
||||||
} mm_segment_t;
|
} mm_segment_t;
|
||||||
|
|
||||||
|
#ifndef TASK_SIZE_MAX
|
||||||
|
#define TASK_SIZE_MAX TASK_SIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
#define uaccess_kernel() (false)
|
#define uaccess_kernel() (false)
|
||||||
#define user_addr_max() (TASK_SIZE_MAX)
|
#define user_addr_max() (TASK_SIZE_MAX)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user