From: Eric Dumazet <eric.duma...@gmail.com>
Date: Wed, 22 Jul 2015 07:02:00 +0200

> From: Eric Dumazet <eduma...@google.com>
> 
> 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 construct on a !CONFIG_SMP build.
> 
> Remove the warning by using a temporary variable.
> 
> Fixes: 095dc8e0c368 ("tcp: fix/cleanup inet_ehash_locks_alloc()")
> Reported-by: Andrew Morton <a...@linux-foundation.org>
> Signed-off-by: Eric Dumazet <eduma...@google.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to