diff options
author | Florian Westphal <fw@strlen.de> | 2020-08-01 17:39:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-01 21:52:55 +0300 |
commit | 7126bd5c8bcbc015cf89864cf71d750e8f33f924 (patch) | |
tree | 6819266d7ae3d0bb39789db40d73b139e78c1586 /drivers/gpu/drm/panel/panel-simple.c | |
parent | 8b66a6fd34f519f4ad42c4ab0152c3c0782a7dbd (diff) | |
download | linux-7126bd5c8bcbc015cf89864cf71d750e8f33f924.tar.xz |
mptcp: fix syncookie build error on UP
kernel test robot says:
net/mptcp/syncookies.c: In function 'mptcp_join_cookie_init':
include/linux/kernel.h:47:38: warning: division by zero [-Wdiv-by-zero]
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
I forgot that spinock_t size is 0 on UP, so ARRAY_SIZE cannot be used.
Fixes: 9466a1ccebbe54 ("mptcp: enable JOIN requests even if cookies are in use")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
0 files changed, 0 insertions, 0 deletions