Re: [PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-11 Thread Frederic Weisbecker
On Thu, Mar 06, 2014 at 01:57:17PM -0500, Rik van Riel wrote: > On 03/06/2014 12:56 PM, Frederic Weisbecker wrote: > >Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must > >return a cputime_t value. We want to enforce this kind of cast in order > >to track down buggy

[PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-11 Thread Frederic Weisbecker
Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong assumptions on its backend type (nsecs, jiffies, etc...) by

[PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-11 Thread Frederic Weisbecker
Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong assumptions on its backend type (nsecs, jiffies, etc...) by

Re: [PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-11 Thread Frederic Weisbecker
On Thu, Mar 06, 2014 at 01:57:17PM -0500, Rik van Riel wrote: On 03/06/2014 12:56 PM, Frederic Weisbecker wrote: Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of

Re: [PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-06 Thread Rik van Riel
On 03/06/2014 12:56 PM, Frederic Weisbecker wrote: Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong

[PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-06 Thread Frederic Weisbecker
Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong assumptions on its backend type (nsecs, jiffies, etc...) by

[PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-06 Thread Frederic Weisbecker
Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong assumptions on its backend type (nsecs, jiffies, etc...) by

Re: [PATCH 1/6] cputime: Fix nsecs_to_cputime() return type cast

2014-03-06 Thread Rik van Riel
On 03/06/2014 12:56 PM, Frederic Weisbecker wrote: Even though nsec based cputime_t maps to u64, nsecs_to_cputime() must return a cputime_t value. We want to enforce this kind of cast in order to track down buggy manipulations of cputime_t such as direct access of its values under wrong