Eric Dumazet
89e478a2aa
tcp: suppress a division by zero warning
...
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 <akpm@linux-foundation.org>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-21 22:13:13 -07:00
..
2015-07-02 17:58:59 +02:00
2015-06-24 02:58:51 -07:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00
2015-07-15 17:25:51 -07:00
2015-07-08 23:34:53 -07:00
2015-05-28 11:23:20 +08:00
2015-06-24 02:15:54 -07:00
2015-06-24 02:15:54 -07:00
2015-06-28 16:47:12 -07:00
2015-06-24 02:15:54 -07:00
2015-04-16 12:11:19 -04:00
2015-05-13 15:59:13 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-05-04 14:49:23 -04:00
2015-05-21 18:55:32 -04:00
2015-07-10 23:25:24 -07:00
2015-04-03 12:11:15 -04:00
2015-07-21 22:13:13 -07:00
2015-05-13 15:21:33 -04:00
2015-05-25 00:08:48 -04:00
2015-07-21 10:29:23 -07:00
2015-04-03 12:11:15 -04:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00
2015-06-15 14:30:32 -07:00
2015-06-24 02:58:51 -07:00
2015-05-14 22:30:54 -04:00
2015-07-08 16:03:09 -07:00
2015-05-28 06:23:32 +02:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-05-17 13:08:29 -04:00
2015-04-07 15:25:55 -04:00
2015-06-11 00:09:12 -07:00
2015-06-11 00:09:12 -07:00
2015-06-16 14:12:34 -04:00
2015-05-01 22:02:47 -04:00
2015-05-09 16:42:32 -04:00
2015-04-13 18:18:05 -04:00
2015-06-24 02:15:54 -07:00
2015-06-07 15:19:52 -07:00
2015-05-30 17:37:44 -07:00
2015-06-14 12:57:45 -07:00
2015-05-31 21:49:14 -07:00
2015-06-10 23:28:33 -07:00
2015-06-15 19:49:22 -07:00
2015-06-23 02:38:10 -07:00
2015-04-29 17:10:38 -04:00
2015-07-15 17:17:21 -07:00
2015-06-07 01:55:01 -07:00
2015-04-07 18:36:39 -04:00
2015-06-01 22:51:30 -07:00
2015-06-11 16:33:10 -07:00
2015-06-11 16:33:11 -07:00
2015-05-17 22:45:48 -04:00
2015-04-29 17:10:38 -04:00
2015-04-29 17:10:38 -04:00
2015-05-05 19:50:09 -04:00
2015-06-24 02:58:51 -07:00
2015-06-15 19:49:22 -07:00
2015-04-03 12:11:15 -04:00
2015-05-11 10:50:18 -04:00
2015-06-04 00:46:26 -07:00
2015-04-07 15:25:55 -04:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00