summaryrefslogtreecommitdiff
path: root/include/linux/kdebug.h
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2014-07-22 14:43:51 -0700
committerBen Hutchings <ben@decadent.org.uk>2018-03-03 15:52:29 +0000
commit79e66041075335433cad1cd170f2401d6ac74e8c (patch)
treec0e15eb1338984253c0214e1d5606332a57a80f5 /include/linux/kdebug.h
parent95b5d4fc550be066548b02bdcbcdf0538d63d605 (diff)
mac80211_hwsim: fix compiler warning on MIPS
commit 5d26b50813ea6206a7bbab2e645e68044f101ac5 upstream. 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> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/kdebug.h')
0 files changed, 0 insertions, 0 deletions