Willy Tarreau <[email protected]> wrote: > > +#if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) > +# define MAX_MSEC_OFFSET \ > + (ULONG_MAX - (MSEC_PER_SEC / HZ) + 1) That generates numbers which don't fit into unsigned ints, yielding vast numbers of include/linux/jiffies.h: In function `msecs_to_jiffies': include/linux/jiffies.h:310: warning: comparison is always false due to limited range of data type include/linux/jiffies.h: In function `usecs_to_jiffies': include/linux/jiffies.h:323: warning: comparison is always false due to limited range of data type - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 1/3] 2.6.14-rc2-mm1: fixes for overflow msec_to_jiffies()
- From: Willy Tarreau <[email protected]>
- Re: [PATCH 1/3] 2.6.14-rc2-mm1: fixes for overflow msec_to_jiffies()
- References:
- [patch] sys_epoll_wait() timeout saga ...
- From: Davide Libenzi <[email protected]>
- Re: [patch] sys_epoll_wait() timeout saga ...
- From: Willy Tarreau <[email protected]>
- Re: [patch] sys_epoll_wait() timeout saga ...
- From: Nish Aravamudan <[email protected]>
- Re: [patch] sys_epoll_wait() timeout saga ...
- From: Willy Tarreau <[email protected]>
- Re: [patch] sys_epoll_wait() timeout saga ...
- From: Nishanth Aravamudan <[email protected]>
- Re: [patch] sys_epoll_wait() timeout saga ...
- From: Davide Libenzi <[email protected]>
- [PATCH 0/3] fixes for overflow in poll(), epoll(), and msec_to_jiffies()
- From: Willy Tarreau <[email protected]>
- [PATCH 1/3] 2.6.14-rc2-mm1: fixes for overflow msec_to_jiffies()
- From: Willy Tarreau <[email protected]>
- [patch] sys_epoll_wait() timeout saga ...
- Prev by Date: minibug: 'mv' -> 'mv -f ' in main Makefile
- Next by Date: Re: [PATCH 3/3 htlb-acct] Demand faulting for huge pages
- Previous by thread: [PATCH 1/3] 2.6.14-rc2-mm1: fixes for overflow msec_to_jiffies()
- Next by thread: Re: [PATCH 1/3] 2.6.14-rc2-mm1: fixes for overflow msec_to_jiffies()
- Index(es):