Andrew Bresticker
5d26b50813
mac80211_hwsim: fix compiler warning on MIPS
...
The dividend in do_div() is expected to be an unsigned 64-bit integer,
which leads to the following warning when building for 32-bit MIPS:
drivers/net/wireless/mac80211_hwsim.c: In function 'mac80211_hwsim_set_tsf':
drivers/net/wireless/mac80211_hwsim.c:664:98: warning: comparison of distinct pointer types lacks a cast [enabled by default]
data->bcn_delta = do_div(delta, bcn_int);
Since we care about the signedness of delta when adjusting tsf_offset
and bcm_delta, use the absolute value for the division and compare
the two timestamps to determine the sign.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2014-07-23 13:08:35 -04:00
..
2014-06-12 13:43:08 +02:00
2014-06-09 14:58:36 -07:00
2014-06-02 17:11:03 -07:00
2014-06-12 13:14:19 -07:00
2014-07-18 13:45:24 -04:00
2014-06-15 15:58:03 -10:00
2014-07-21 15:07:08 +03:00
2014-06-02 16:35:49 -07:00
2014-06-11 08:41:17 -07:00
2014-06-12 10:30:18 -07:00
2014-06-15 16:02:20 -10:00
2014-06-04 15:57:20 -07:00
2014-06-03 08:06:56 -07:00
2014-06-12 13:43:02 +02:00
2014-06-12 20:11:38 -07:00
2014-06-11 17:03:19 +10:00
2014-05-24 22:33:51 +09:00
2014-06-10 10:28:45 -07:00
2014-06-02 12:15:19 -07:00
2014-06-04 09:08:25 -07:00
2014-06-05 13:15:32 -07:00
2014-06-12 09:57:00 +02:00
2014-06-12 11:32:30 -07:00
2014-06-11 16:09:14 -07:00
2014-06-05 00:59:05 +02:00
2014-06-12 14:27:40 -07:00
2014-06-12 08:36:50 -07:00
2014-06-06 12:26:57 -07:00
2014-06-03 08:34:00 -07:00
2014-06-12 22:38:32 -07:00
2014-06-09 18:46:02 -07:00
2014-06-06 11:48:46 -07:00
2014-06-04 15:59:13 -07:00
2014-06-04 23:13:41 -07:00
2014-06-12 13:08:09 -07:00
2014-05-27 17:38:11 -07:00
2014-06-12 13:33:29 -07:00
2014-06-12 23:04:28 -07:00
2014-05-28 18:14:16 +02:00
2014-06-12 12:42:32 -07:00
2014-06-03 15:48:23 -07:00
2014-06-12 14:27:40 -07:00
2014-06-12 10:30:18 -07:00
2014-07-23 13:08:35 -04:00
2014-05-26 01:28:28 +02:00
2014-06-04 16:54:17 -07:00
2014-06-12 14:27:40 -07:00
2014-06-06 16:08:15 -07:00
2014-06-12 13:20:24 -07:00
2014-05-27 14:58:24 -06:00
2014-06-03 11:20:32 -07:00
2014-06-10 16:58:32 -07:00
2014-06-03 23:13:00 +02:00
2014-06-04 08:57:16 -07:00
2014-06-11 14:06:55 -07:00
2014-06-06 16:08:13 -07:00
2014-06-11 16:09:14 -07:00
2014-06-02 16:35:49 -07:00
2014-06-10 15:34:47 -07:00
2014-06-12 14:27:40 -07:00
2014-06-14 19:49:48 -05:00
2014-06-06 11:44:09 -07:00
2014-05-26 21:27:09 +02:00
2014-06-02 17:08:43 +01:00
2014-07-18 13:45:24 -04:00
2014-06-12 23:04:28 -07:00
2014-06-12 22:38:32 -07:00
2014-06-11 14:26:21 -07:00
2014-06-12 13:46:37 +02:00
2014-05-27 14:11:06 -07:00
2014-06-12 14:27:40 -07:00
2014-05-27 15:18:48 -07:00
2014-06-07 20:12:15 -07:00
2014-06-12 22:38:32 -07:00
2014-06-12 12:45:50 -07:00
2014-06-12 13:46:37 +02:00
2014-06-10 21:48:16 +02:00
2014-06-12 13:46:37 +02:00
2014-05-23 11:37:46 -05:00
2014-06-03 08:06:56 -07:00