Subject: Re: [PATCH net] rhashtable: avoid large lock-array allocations

From: Florian Westphal <[email-masked]>
Date: Fri, 12 Aug 2016 04:31:39 +0200

kbuild test robot <[email-masked]> wrote:
> Hi Florian,
> 
> [auto build test WARNING on net/master]
> 
> url:    https://github.com/0day-ci/linux/commits/Florian-Westphal/rhashtable-avoid-large-lock-array-allocations/20160812-101458
> config: x86_64-randconfig-x015-201632 (attached as .config)
> compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
> 
> All warnings (new ones prefixed by >>):
> 
>    In file included from lib/rhashtable.c:18:0:
>    lib/rhashtable.c: In function 'rhashtable_init':
> >> lib/rhashtable.c:34:30: warning: division by zero [-Wdiv-by-zero]
>               2 * L1_CACHE_BYTES / sizeof(spinlock_t), 1)

I will send a v2 tomorrow, perhaps its better to just go for
32UL instead of this construct after all.