[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201002003150.GA1286456@nvidia.com>
Date: Thu, 1 Oct 2020 21:31:50 -0300
From: Jason Gunthorpe <jgg@...dia.com>
To: Leon Romanovsky <leon@...nel.org>
CC: Doug Ledford <dledford@...hat.com>,
Leon Romanovsky <leonro@...dia.com>,
Kees Cook <keescook@...omium.org>,
<linux-kernel@...r.kernel.org>,
RDMA mailing list <linux-rdma@...r.kernel.org>
Subject: Re: [PATCH rdma-next] overflow: Include header file with SIZE_MAX
declaration
On Sun, Sep 13, 2020 at 01:29:28PM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@...dia.com>
>
> The various array_size functions use SIZE_MAX define, but missed limits.h
> causes to failure to compile code that needs overflow.h.
>
> In file included from drivers/infiniband/core/uverbs_std_types_device.c:6:
> ./include/linux/overflow.h: In function 'array_size':
> ./include/linux/overflow.h:258:10: error: 'SIZE_MAX' undeclared (first use in this function)
> 258 | return SIZE_MAX;
> | ^~~~~~~~
>
> Fixes: 610b15c50e86 ("overflow.h: Add allocation size calculation helpers")
> Signed-off-by: Leon Romanovsky <leonro@...dia.com>
> ---
> include/linux/overflow.h | 1 +
> 1 file changed, 1 insertion(+)
Applied to rdma for-next, seems other patches need this. Thanks
Jason
Powered by blists - more mailing lists