Re: [PATCH net] tcp: suppress a division by zero warning

2015-07-21 Thread David Miller
From: Eric Dumazet Date: Wed, 22 Jul 2015 07:02:00 +0200 > From: Eric Dumazet > > Andrew Morton reported following warning on one ARM build > with gcc-4.4 : > > net/ipv4/inet_hashtables.c: In function 'inet_ehash_locks_alloc': > net/ipv4/inet_hashtables.c:617: warning: division by zero > > Ev

[PATCH net] tcp: suppress a division by zero warning

2015-07-21 Thread Eric Dumazet
From: Eric Dumazet Andrew Morton reported following warning on one ARM build with gcc-4.4 : net/ipv4/inet_hashtables.c: In function 'inet_ehash_locks_alloc': net/ipv4/inet_hashtables.c:617: warning: division by zero Even guarded with a test on sizeof(spinlock_t), compiler does not like current