aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-07-21 06:54:35 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-22 15:18:39 -0400
commit2a304bb8fa6a60cf6039f9a686798ec330f198ef (patch)
tree39b9c15e9e7e063827241e12e49794cbc9171a41 /drivers/net
parent5aa93bcf66f4af094d6f11096e81d5501a0b4ba5 (diff)
wimax: fix printk format warnings
Fix printk format warnings in drivers/net/wimax/i2400m: drivers/net/wimax/i2400m/control.c: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'ssize_t' [-Wformat] drivers/net/wimax/i2400m/control.c: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'ssize_t' [-Wformat] drivers/net/wimax/i2400m/usb-fw.c: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'ssize_t' [-Wformat] I don't see these warnings on x86. The warnings that are quoted above are from Geert's kernel build reports. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> Cc: linux-wimax@intel.com Cc: wimax@linuxwimax.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wimax/i2400m/control.c4
-rw-r--r--drivers/net/wimax/i2400m/usb-fw.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c
index 2fea02b35b2d..4a01e5c7fe09 100644
--- a/drivers/net/wimax/i2400m/control.c
+++ b/drivers/net/wimax/i2400m/control.c
@@ -130,7 +130,7 @@ ssize_t i2400m_tlv_match(const struct i2400m_tlv_hdr *tlv,
130 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) { 130 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) {
131 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv); 131 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv);
132 printk(KERN_WARNING "W: tlv type 0x%x mismatched because of " 132 printk(KERN_WARNING "W: tlv type 0x%x mismatched because of "
133 "size (got %zu vs %zu expected)\n", 133 "size (got %zu vs %zd expected)\n",
134 tlv_type, size, tlv_size); 134 tlv_type, size, tlv_size);
135 return size; 135 return size;
136 } 136 }
@@ -235,7 +235,7 @@ const struct i2400m_tlv_hdr *i2400m_tlv_find(
235 break; 235 break;
236 if (match > 0) 236 if (match > 0)
237 dev_warn(dev, "TLV type 0x%04x found with size " 237 dev_warn(dev, "TLV type 0x%04x found with size "
238 "mismatch (%zu vs %zu needed)\n", 238 "mismatch (%zu vs %zd needed)\n",
239 tlv_type, match, tlv_size); 239 tlv_type, match, tlv_size);
240 } 240 }
241 return tlv; 241 return tlv;
diff --git a/drivers/net/wimax/i2400m/usb-fw.c b/drivers/net/wimax/i2400m/usb-fw.c
index 1fda46c55eb3..e74664b84925 100644
--- a/drivers/net/wimax/i2400m/usb-fw.c
+++ b/drivers/net/wimax/i2400m/usb-fw.c
@@ -212,7 +212,7 @@ ssize_t i2400mu_bus_bm_cmd_send(struct i2400m *i2400m,
212 } 212 }
213 if (result != cmd_size) { /* all was transferred? */ 213 if (result != cmd_size) { /* all was transferred? */
214 dev_err(dev, "boot-mode cmd %d: incomplete transfer " 214 dev_err(dev, "boot-mode cmd %d: incomplete transfer "
215 "(%zu vs %zu submitted)\n", opcode, result, cmd_size); 215 "(%zd vs %zu submitted)\n", opcode, result, cmd_size);
216 result = -EIO; 216 result = -EIO;
217 goto error_cmd_size; 217 goto error_cmd_size;
218 } 218 }