diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-10-01 02:43:09 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-10-01 05:05:36 -0400 |
commit | ef548626429531fedae9ae44c1e89e14cf3244f7 (patch) | |
tree | f33a350123863ebe4fd3bfa932cdcdccb70fa79a | |
parent | c6efe578fc5dd02463d2ee20343494da56bdd3a9 (diff) |
ath6kl: fix size_t related warnings
My earlier debug log additions added these warnings when compiling 64 bit
kernels:
ath6kl/init.c:962: warning: format '%d' expects type 'int',
but argument 3 has type 'size_t'
ath6kl/init.c:975: warning: format '%d' expects type 'int',
but argument 3 has type 'size_t'
ath6kl/init.c:988: warning: format '%d' expects type 'int',
but argument 3 has type 'size_t'
ath6kl/init.c:1009: warning: format '%d' expects type 'int',
but argument 3 has type 'size_t'
ath6kl/init.c:1192: warning: format '%d' expects type 'int',
but argument 4 has type 'size_t'
ath6kl/init.c:1236: warning: format '%d' expects type 'int',
but argument 4 has type 'size_t'
ath6kl/init.c:1267: warning: format '%d' expects type 'int',
but argument 4 has type 'size_t'
Reported-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index 5995bb9ead8d..c1d2366704b5 100644 --- a/drivers/net/wireless/ath/ath6kl/init.c +++ b/drivers/net/wireless/ath/ath6kl/init.c | |||
@@ -959,7 +959,7 @@ static int ath6kl_fetch_fw_api2(struct ath6kl *ar) | |||
959 | 959 | ||
960 | switch (ie_id) { | 960 | switch (ie_id) { |
961 | case ATH6KL_FW_IE_OTP_IMAGE: | 961 | case ATH6KL_FW_IE_OTP_IMAGE: |
962 | ath6kl_dbg(ATH6KL_DBG_BOOT, "found otp image ie (%d B)\n", | 962 | ath6kl_dbg(ATH6KL_DBG_BOOT, "found otp image ie (%zd B)\n", |
963 | ie_len); | 963 | ie_len); |
964 | 964 | ||
965 | ar->fw_otp = kmemdup(data, ie_len, GFP_KERNEL); | 965 | ar->fw_otp = kmemdup(data, ie_len, GFP_KERNEL); |
@@ -972,7 +972,7 @@ static int ath6kl_fetch_fw_api2(struct ath6kl *ar) | |||
972 | ar->fw_otp_len = ie_len; | 972 | ar->fw_otp_len = ie_len; |
973 | break; | 973 | break; |
974 | case ATH6KL_FW_IE_FW_IMAGE: | 974 | case ATH6KL_FW_IE_FW_IMAGE: |
975 | ath6kl_dbg(ATH6KL_DBG_BOOT, "found fw image ie (%d B)\n", | 975 | ath6kl_dbg(ATH6KL_DBG_BOOT, "found fw image ie (%zd B)\n", |
976 | ie_len); | 976 | ie_len); |
977 | 977 | ||
978 | ar->fw = kmemdup(data, ie_len, GFP_KERNEL); | 978 | ar->fw = kmemdup(data, ie_len, GFP_KERNEL); |
@@ -985,7 +985,7 @@ static int ath6kl_fetch_fw_api2(struct ath6kl *ar) | |||
985 | ar->fw_len = ie_len; | 985 | ar->fw_len = ie_len; |
986 | break; | 986 | break; |
987 | case ATH6KL_FW_IE_PATCH_IMAGE: | 987 | case ATH6KL_FW_IE_PATCH_IMAGE: |
988 | ath6kl_dbg(ATH6KL_DBG_BOOT, "found patch image ie (%d B)\n", | 988 | ath6kl_dbg(ATH6KL_DBG_BOOT, "found patch image ie (%zd B)\n", |
989 | ie_len); | 989 | ie_len); |
990 | 990 | ||
991 | ar->fw_patch = kmemdup(data, ie_len, GFP_KERNEL); | 991 | ar->fw_patch = kmemdup(data, ie_len, GFP_KERNEL); |
@@ -1007,7 +1007,7 @@ static int ath6kl_fetch_fw_api2(struct ath6kl *ar) | |||
1007 | break; | 1007 | break; |
1008 | case ATH6KL_FW_IE_CAPABILITIES: | 1008 | case ATH6KL_FW_IE_CAPABILITIES: |
1009 | ath6kl_dbg(ATH6KL_DBG_BOOT, | 1009 | ath6kl_dbg(ATH6KL_DBG_BOOT, |
1010 | "found firmware capabilities ie (%d B)\n", | 1010 | "found firmware capabilities ie (%zd B)\n", |
1011 | ie_len); | 1011 | ie_len); |
1012 | 1012 | ||
1013 | for (i = 0; i < ATH6KL_FW_CAPABILITY_MAX; i++) { | 1013 | for (i = 0; i < ATH6KL_FW_CAPABILITY_MAX; i++) { |
@@ -1189,7 +1189,7 @@ static int ath6kl_upload_otp(struct ath6kl *ar) | |||
1189 | 1189 | ||
1190 | address = ar->hw.app_load_addr; | 1190 | address = ar->hw.app_load_addr; |
1191 | 1191 | ||
1192 | ath6kl_dbg(ATH6KL_DBG_BOOT, "writing otp to 0x%x (%d B)\n", address, | 1192 | ath6kl_dbg(ATH6KL_DBG_BOOT, "writing otp to 0x%x (%zd B)\n", address, |
1193 | ar->fw_otp_len); | 1193 | ar->fw_otp_len); |
1194 | 1194 | ||
1195 | ret = ath6kl_bmi_fast_download(ar, address, ar->fw_otp, | 1195 | ret = ath6kl_bmi_fast_download(ar, address, ar->fw_otp, |
@@ -1233,7 +1233,7 @@ static int ath6kl_upload_firmware(struct ath6kl *ar) | |||
1233 | 1233 | ||
1234 | address = ar->hw.app_load_addr; | 1234 | address = ar->hw.app_load_addr; |
1235 | 1235 | ||
1236 | ath6kl_dbg(ATH6KL_DBG_BOOT, "writing firmware to 0x%x (%d B)\n", | 1236 | ath6kl_dbg(ATH6KL_DBG_BOOT, "writing firmware to 0x%x (%zd B)\n", |
1237 | address, ar->fw_len); | 1237 | address, ar->fw_len); |
1238 | 1238 | ||
1239 | ret = ath6kl_bmi_fast_download(ar, address, ar->fw, ar->fw_len); | 1239 | ret = ath6kl_bmi_fast_download(ar, address, ar->fw, ar->fw_len); |
@@ -1264,7 +1264,7 @@ static int ath6kl_upload_patch(struct ath6kl *ar) | |||
1264 | 1264 | ||
1265 | address = ar->hw.dataset_patch_addr; | 1265 | address = ar->hw.dataset_patch_addr; |
1266 | 1266 | ||
1267 | ath6kl_dbg(ATH6KL_DBG_BOOT, "writing patch to 0x%x (%d B)\n", | 1267 | ath6kl_dbg(ATH6KL_DBG_BOOT, "writing patch to 0x%x (%zd B)\n", |
1268 | address, ar->fw_patch_len); | 1268 | address, ar->fw_patch_len); |
1269 | 1269 | ||
1270 | ret = ath6kl_bmi_write(ar, address, ar->fw_patch, ar->fw_patch_len); | 1270 | ret = ath6kl_bmi_write(ar, address, ar->fw_patch, ar->fw_patch_len); |