Commit 88c03eae authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: lustre: cfs_time_sub() must return unsigned long

It looks like someone ment for it to return this value (there's a cast),
but the funtion says 'long' which causes problems when comparing values
from this function.

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: hpdd-discuss <hpdd-discuss@lists.01.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2d201bd
...@@ -48,7 +48,7 @@ static inline unsigned long cfs_time_add(unsigned long t, long d) ...@@ -48,7 +48,7 @@ static inline unsigned long cfs_time_add(unsigned long t, long d)
return (unsigned long)(t + d); return (unsigned long)(t + d);
} }
static inline long cfs_time_sub(unsigned long t1, unsigned long t2) static inline unsigned long cfs_time_sub(unsigned long t1, unsigned long t2)
{ {
return (unsigned long)(t1 - t2); return (unsigned long)(t1 - t2);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment