In article <[EMAIL PROTECTED]> (at Tue, 24 Apr 2007 10:04:20 -0700), Stephen Hemminger <[EMAIL PROTECTED]> says:
> Yoshifuji-san had the right idea, but ktime_to_us needs to be defined > in a way that works on both 64 and 32bit platforms. No, this does not cure. > > +#define ktime_to_us(kt) ((kt).tv64 / NSEC_PER_SEC) > + NSEC_PER_USEC? > +static inline s64 ktime_to_us(const ktime_t kt) > +{ > + return (s64) kt.tv_sec * USEC_PER_SEC + kt.tv_nsec / NSEC_PER_USEC; > +} > + Please do NOT use division here, which was the source of the linkage error, and the reason why I posted a patch to use ktime_to_timeval(). --yoshfuji - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html