* inet_hashtables.c: warning: division by zero
@ 2015-08-19 15:24 Meelis Roos
2015-08-19 16:14 ` Eric Dumazet
0 siblings, 1 reply; 2+ messages in thread
From: Meelis Roos @ 2015-08-19 15:24 UTC (permalink / raw)
To: netdev
Noticed this while compiling 4.2-rc7+git on i386 with gcc 4.9.2:
CC net/ipv4/inet_hashtables.o
In file included from include/linux/list.h:8:0,
from include/linux/module.h:9,
from net/ipv4/inet_hashtables.c:16:
net/ipv4/inet_hashtables.c: In function ‘inet_ehash_locks_alloc’:
net/ipv4/inet_hashtables.c:632:24: warning: division by zero [-Wdiv-by-zero]
2 * L1_CACHE_BYTES / sizeof(spinlock_t),
^
include/linux/kernel.h:769:17: note: in definition of macro ‘max_t’
type __max1 = (x); \
^
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: inet_hashtables.c: warning: division by zero
2015-08-19 15:24 inet_hashtables.c: warning: division by zero Meelis Roos
@ 2015-08-19 16:14 ` Eric Dumazet
0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2015-08-19 16:14 UTC (permalink / raw)
To: Meelis Roos; +Cc: netdev
On Wed, 2015-08-19 at 18:24 +0300, Meelis Roos wrote:
> Noticed this while compiling 4.2-rc7+git on i386 with gcc 4.9.2:
>
> CC net/ipv4/inet_hashtables.o
> In file included from include/linux/list.h:8:0,
> from include/linux/module.h:9,
> from net/ipv4/inet_hashtables.c:16:
> net/ipv4/inet_hashtables.c: In function ‘inet_ehash_locks_alloc’:
> net/ipv4/inet_hashtables.c:632:24: warning: division by zero [-Wdiv-by-zero]
> 2 * L1_CACHE_BYTES / sizeof(spinlock_t),
> ^
> include/linux/kernel.h:769:17: note: in definition of macro ‘max_t’
> type __max1 = (x); \
> ^
>
This warning was fixed :
http://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=89e478a2aa58af2548b7f316e4d5b6bcc9eade5b
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-19 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-19 15:24 inet_hashtables.c: warning: division by zero Meelis Roos
2015-08-19 16:14 ` Eric Dumazet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.