From: Christoph Hellwig Date: Mon, 7 Sep 2020 05:58:18 +0000 (+0200) Subject: uaccess: provide a generic TASK_SIZE_MAX definition X-Git-Tag: v5.10-rc1~24^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24ce66c04a06a678f156cf575128246f3d214b4a;p=thirdparty%2Fkernel%2Flinux.git uaccess: provide a generic TASK_SIZE_MAX definition Define TASK_SIZE_MAX as TASK_SIZE if not otherwise defined. Signed-off-by: Christoph Hellwig Signed-off-by: Palmer Dabbelt --- diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index 70073c802b48e..d0e43761c708d 100644 --- 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)