]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix compilation warnings in wmi phyerr pull function
authorRaja Mani <rmani@qti.qualcomm.com>
Fri, 21 Aug 2015 13:12:36 +0000 (18:42 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Aug 2015 09:33:52 +0000 (12:33 +0300)
commit0e9b3447a09eca7760435fd5b45c33b2893f9105
tree2ac0babbd36344e35cb42f75cebe10831d0a80e0
parentce7b0b8c40a1c74ddfb94a3fc60cb3e2abf509aa
ath10k: fix compilation warnings in wmi phyerr pull function

Below compilation warnings are observed in gcc version 4.8.2.
Even though it's not seen in bit older gcc versions (for ex, 4.7.3),
It's good to fix it by changing format specifier from %d to
%zd in wmi pull phyerr functions.

wmi.c: In function 'ath10k_wmi_op_pull_phyerr_ev':
wmi.c:3567:8: warning: format '%d' expects argument of type 'int',
              but argument 4 has type 'long unsigned int' [-Wformat=]
              left_len, sizeof(*phyerr));
                        ^
wmi.c: In function 'ath10k_wmi_10_4_op_pull_phyerr_ev':
wmi.c:3612:8: warning: format '%d' expects argument of type 'int',
      but argument 4 has type 'long unsigned int' [-Wformat=]
              left_len, sizeof(*phyerr));
                        ^
Fixes: d1046cae4ff6 ("ath10k: refactor phyerr event handlers")
Fixes: a6c7e5a90b76 ("ath10k: handle 10.4 firmware phyerr event")
Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi.c