aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorAndrew Bresticker <[email protected]>2014-07-22 14:43:51 -0700
committerJohn W. Linville <[email protected]>2014-07-23 13:08:35 -0400
commit5d26b50813ea6206a7bbab2e645e68044f101ac5 (patch)
tree6fa9758e646b40713fb0f3ea44406b884cd803e7 /fs/jbd2/commit.c
parentc883ad555e074606a27362761da576e20c8ff6c6 (diff)
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions