diff options
| author | Eric Dumazet <[email protected]> | 2015-07-22 05:02:00 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-22 05:13:13 +0000 |
| commit | 89e478a2aa58af2548b7f316e4d5b6bcc9eade5b (patch) | |
| tree | 59ae3e07a4e444237effc1b00652d733ddb2760c /tools/perf/scripts/python | |
| parent | Merge tag 'wireless-drivers-for-davem-2015-07-20' of git://git.kernel.org/pub... (diff) | |
| download | kernel-89e478a2aa58af2548b7f316e4d5b6bcc9eade5b.tar.gz kernel-89e478a2aa58af2548b7f316e4d5b6bcc9eade5b.zip | |
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 <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
