Files
twx-linux/include/linux
Leon Romanovsky ef058c0c6b overflow: Include header file with SIZE_MAX declaration
[ Upstream commit a4947e84f2 ]

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: 610b15c50e ("overflow.h: Add allocation size calculation helpers")
Link: https://lore.kernel.org/r/20200913102928.134985-1-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:05:39 +01:00
..
2019-11-25 09:53:14 +01:00
2020-09-03 11:21:21 +02:00
2020-04-02 17:20:27 +02:00
2020-04-02 17:20:40 +02:00
2020-03-20 09:07:43 +01:00
2020-04-24 07:58:54 +02:00
2020-04-02 17:20:39 +02:00
2020-05-20 08:15:37 +02:00
2020-04-02 17:20:39 +02:00