On Fri, Sep 30, 2022 at 05:38:19PM +0200, Ahmad Fatoum wrote:
> For symmetry with SIZE_MAX, which we already define, define SIZE_MAX as
> well. Definition taken from Linux.
> 
> Signed-off-by: Ahmad Fatoum <[email protected]>
> ---
>  include/linux/limits.h | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

Sascha

> 
> diff --git a/include/linux/limits.h b/include/linux/limits.h
> index e1aa2de84519..eab3848bbf7a 100644
> --- a/include/linux/limits.h
> +++ b/include/linux/limits.h
> @@ -19,6 +19,7 @@
>  #define SIZE_MAX     (~(size_t)0)
>  #define PHYS_ADDR_MAX        (~(phys_addr_t)0)
>  #define UINTPTR_MAX  ULONG_MAX
> +#define SSIZE_MAX    ((ssize_t)(SIZE_MAX >> 1))
>  
>  #define U8_MAX               ((u8)~0U)
>  #define S8_MAX               ((s8)(U8_MAX >> 1))
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Reply via email to