aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2017-02-27 17:30:02 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-27 21:43:47 -0500
commit5b5e0928f742cfa853b2411400a1b19fa379d758 (patch)
tree44ef4dd9cfd9587c81f4183638648b340a3d3b7e /drivers
parentd7f6724366c5ccb52b9b2e403b0a9383803bd47a (diff)
lib/vsprintf.c: remove %Z support
Now that %z is standartised in C99 there is no reason to support %Z. Unlike %L it doesn't even make format strings smaller. Use BUILD_BUG_ON in a couple ATM drivers. In case anyone didn't notice lib/vsprintf.o is about half of SLUB which is in my opinion is quite an achievement. Hopefully this patch inspires someone else to trim vsprintf.c more. Link: http://lkml.kernel.org/r/20170103230126.GA30170@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atm/ambassador.c7
-rw-r--r--drivers/atm/eni.c6
-rw-r--r--drivers/atm/firestream.c12
-rw-r--r--drivers/atm/horizon.c7
-rw-r--r--drivers/atm/lanai.c16
-rw-r--r--drivers/char/pcmcia/cm4000_cs.c2
-rw-r--r--drivers/char/pcmcia/cm4040_cs.c2
-rw-r--r--drivers/gpu/drm/mga/mga_drv.h4
-rw-r--r--drivers/ide/ide-acpi.c2
-rw-r--r--drivers/ide/ide-tape.c4
-rw-r--r--drivers/input/touchscreen/cyttsp4_core.c62
-rw-r--r--drivers/media/dvb-frontends/helene.c2
-rw-r--r--drivers/media/dvb-frontends/or51132.c2
-rw-r--r--drivers/media/dvb-frontends/tda10048.c2
-rw-r--r--drivers/media/pci/saa7164/saa7164-fw.c2
-rw-r--r--drivers/media/tuners/xc5000.c2
-rw-r--r--drivers/media/usb/dvb-usb/dib0700_devices.c4
-rw-r--r--drivers/misc/vmw_vmci/vmci_context.c2
-rw-r--r--drivers/net/arcnet/arcnet.c2
-rw-r--r--drivers/net/ethernet/cadence/macb.c2
-rw-r--r--drivers/net/gtp.c2
-rw-r--r--drivers/net/usb/rndis_host.c2
-rw-r--r--drivers/net/usb/sierra_net.c2
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c2
-rw-r--r--drivers/net/wireless/intel/iwlegacy/4965-mac.c30
-rw-r--r--drivers/net/wireless/intel/iwlwifi/iwl-drv.c16
-rw-r--r--drivers/parport/ieee1284_ops.c2
-rw-r--r--drivers/scsi/osd/osd_initiator.c2
-rw-r--r--drivers/scsi/osst.c6
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c10
-rw-r--r--drivers/tty/n_hdlc.c2
-rw-r--r--drivers/usb/gadget/legacy/inode.c2
-rw-r--r--drivers/usb/host/ehci-hcd.c2
-rw-r--r--drivers/usb/host/fotg210-hcd.c2
-rw-r--r--drivers/usb/host/ohci-hcd.c2
-rw-r--r--drivers/usb/misc/adutux.c6
-rw-r--r--drivers/usb/misc/legousbtower.c2
-rw-r--r--drivers/usb/misc/uss720.c8
-rw-r--r--drivers/video/fbdev/metronomefb.c2
39 files changed, 116 insertions, 130 deletions
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
index f1a9198dfe5a..4a610795b585 100644
--- a/drivers/atm/ambassador.c
+++ b/drivers/atm/ambassador.c
@@ -2394,12 +2394,7 @@ static int __init amb_module_init (void)
2394{ 2394{
2395 PRINTD (DBG_FLOW|DBG_INIT, "init_module"); 2395 PRINTD (DBG_FLOW|DBG_INIT, "init_module");
2396 2396
2397 // sanity check - cast needed as printk does not support %Zu 2397 BUILD_BUG_ON(sizeof(amb_mem) != 4*16 + 4*12);
2398 if (sizeof(amb_mem) != 4*16 + 4*12) {
2399 PRINTK (KERN_ERR, "Fix amb_mem (is %lu words).",
2400 (unsigned long) sizeof(amb_mem));
2401 return -ENOMEM;
2402 }
2403 2398
2404 show_version(); 2399 show_version();
2405 2400
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
index 623359e407aa..b042ec458544 100644
--- a/drivers/atm/eni.c
+++ b/drivers/atm/eni.c
@@ -2326,11 +2326,7 @@ static int __init eni_init(void)
2326{ 2326{
2327 struct sk_buff *skb; /* dummy for sizeof */ 2327 struct sk_buff *skb; /* dummy for sizeof */
2328 2328
2329 if (sizeof(skb->cb) < sizeof(struct eni_skb_prv)) { 2329 BUILD_BUG_ON(sizeof(skb->cb) < sizeof(struct eni_skb_prv));
2330 printk(KERN_ERR "eni_detect: skb->cb is too small (%Zd < %Zd)\n",
2331 sizeof(skb->cb),sizeof(struct eni_skb_prv));
2332 return -EIO;
2333 }
2334 return pci_register_driver(&eni_driver); 2330 return pci_register_driver(&eni_driver);
2335} 2331}
2336 2332
diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c
index 80c2ddcfa92c..22dcab952a24 100644
--- a/drivers/atm/firestream.c
+++ b/drivers/atm/firestream.c
@@ -895,7 +895,7 @@ static int fs_open(struct atm_vcc *atm_vcc)
895 /* XXX handle qos parameters (rate limiting) ? */ 895 /* XXX handle qos parameters (rate limiting) ? */
896 896
897 vcc = kmalloc(sizeof(struct fs_vcc), GFP_KERNEL); 897 vcc = kmalloc(sizeof(struct fs_vcc), GFP_KERNEL);
898 fs_dprintk (FS_DEBUG_ALLOC, "Alloc VCC: %p(%Zd)\n", vcc, sizeof(struct fs_vcc)); 898 fs_dprintk (FS_DEBUG_ALLOC, "Alloc VCC: %p(%zd)\n", vcc, sizeof(struct fs_vcc));
899 if (!vcc) { 899 if (!vcc) {
900 clear_bit(ATM_VF_ADDR, &atm_vcc->flags); 900 clear_bit(ATM_VF_ADDR, &atm_vcc->flags);
901 return -ENOMEM; 901 return -ENOMEM;
@@ -946,7 +946,7 @@ static int fs_open(struct atm_vcc *atm_vcc)
946 946
947 if (DO_DIRECTION (txtp)) { 947 if (DO_DIRECTION (txtp)) {
948 tc = kmalloc (sizeof (struct fs_transmit_config), GFP_KERNEL); 948 tc = kmalloc (sizeof (struct fs_transmit_config), GFP_KERNEL);
949 fs_dprintk (FS_DEBUG_ALLOC, "Alloc tc: %p(%Zd)\n", 949 fs_dprintk (FS_DEBUG_ALLOC, "Alloc tc: %p(%zd)\n",
950 tc, sizeof (struct fs_transmit_config)); 950 tc, sizeof (struct fs_transmit_config));
951 if (!tc) { 951 if (!tc) {
952 fs_dprintk (FS_DEBUG_OPEN, "fs: can't alloc transmit_config.\n"); 952 fs_dprintk (FS_DEBUG_OPEN, "fs: can't alloc transmit_config.\n");
@@ -1185,7 +1185,7 @@ static int fs_send (struct atm_vcc *atm_vcc, struct sk_buff *skb)
1185 vcc->last_skb = skb; 1185 vcc->last_skb = skb;
1186 1186
1187 td = kmalloc (sizeof (struct FS_BPENTRY), GFP_ATOMIC); 1187 td = kmalloc (sizeof (struct FS_BPENTRY), GFP_ATOMIC);
1188 fs_dprintk (FS_DEBUG_ALLOC, "Alloc transd: %p(%Zd)\n", td, sizeof (struct FS_BPENTRY)); 1188 fs_dprintk (FS_DEBUG_ALLOC, "Alloc transd: %p(%zd)\n", td, sizeof (struct FS_BPENTRY));
1189 if (!td) { 1189 if (!td) {
1190 /* Oops out of mem */ 1190 /* Oops out of mem */
1191 return -ENOMEM; 1191 return -ENOMEM;
@@ -1492,7 +1492,7 @@ static void top_off_fp (struct fs_dev *dev, struct freepool *fp,
1492 fs_dprintk (FS_DEBUG_ALLOC, "Alloc rec-skb: %p(%d)\n", skb, fp->bufsize); 1492 fs_dprintk (FS_DEBUG_ALLOC, "Alloc rec-skb: %p(%d)\n", skb, fp->bufsize);
1493 if (!skb) break; 1493 if (!skb) break;
1494 ne = kmalloc (sizeof (struct FS_BPENTRY), gfp_flags); 1494 ne = kmalloc (sizeof (struct FS_BPENTRY), gfp_flags);
1495 fs_dprintk (FS_DEBUG_ALLOC, "Alloc rec-d: %p(%Zd)\n", ne, sizeof (struct FS_BPENTRY)); 1495 fs_dprintk (FS_DEBUG_ALLOC, "Alloc rec-d: %p(%zd)\n", ne, sizeof (struct FS_BPENTRY));
1496 if (!ne) { 1496 if (!ne) {
1497 fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p\n", skb); 1497 fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p\n", skb);
1498 dev_kfree_skb_any (skb); 1498 dev_kfree_skb_any (skb);
@@ -1803,7 +1803,7 @@ static int fs_init(struct fs_dev *dev)
1803 } 1803 }
1804 dev->atm_vccs = kcalloc (dev->nchannels, sizeof (struct atm_vcc *), 1804 dev->atm_vccs = kcalloc (dev->nchannels, sizeof (struct atm_vcc *),
1805 GFP_KERNEL); 1805 GFP_KERNEL);
1806 fs_dprintk (FS_DEBUG_ALLOC, "Alloc atmvccs: %p(%Zd)\n", 1806 fs_dprintk (FS_DEBUG_ALLOC, "Alloc atmvccs: %p(%zd)\n",
1807 dev->atm_vccs, dev->nchannels * sizeof (struct atm_vcc *)); 1807 dev->atm_vccs, dev->nchannels * sizeof (struct atm_vcc *));
1808 1808
1809 if (!dev->atm_vccs) { 1809 if (!dev->atm_vccs) {
@@ -1911,7 +1911,7 @@ static int firestream_init_one(struct pci_dev *pci_dev,
1911 goto err_out; 1911 goto err_out;
1912 1912
1913 fs_dev = kzalloc (sizeof (struct fs_dev), GFP_KERNEL); 1913 fs_dev = kzalloc (sizeof (struct fs_dev), GFP_KERNEL);
1914 fs_dprintk (FS_DEBUG_ALLOC, "Alloc fs-dev: %p(%Zd)\n", 1914 fs_dprintk (FS_DEBUG_ALLOC, "Alloc fs-dev: %p(%zd)\n",
1915 fs_dev, sizeof (struct fs_dev)); 1915 fs_dev, sizeof (struct fs_dev));
1916 if (!fs_dev) 1916 if (!fs_dev)
1917 goto err_out; 1917 goto err_out;
diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c
index 584aa881882b..2bf1ef1c3c78 100644
--- a/drivers/atm/horizon.c
+++ b/drivers/atm/horizon.c
@@ -2884,12 +2884,7 @@ static struct pci_driver hrz_driver = {
2884/********** module entry **********/ 2884/********** module entry **********/
2885 2885
2886static int __init hrz_module_init (void) { 2886static int __init hrz_module_init (void) {
2887 // sanity check - cast is needed since printk does not support %Zu 2887 BUILD_BUG_ON(sizeof(struct MEMMAP) != 128*1024/4);
2888 if (sizeof(struct MEMMAP) != 128*1024/4) {
2889 PRINTK (KERN_ERR, "Fix struct MEMMAP (is %lu fakewords).",
2890 (unsigned long) sizeof(struct MEMMAP));
2891 return -ENOMEM;
2892 }
2893 2888
2894 show_version(); 2889 show_version();
2895 2890
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c
index 445505d9ea07..1a9bc51284b0 100644
--- a/drivers/atm/lanai.c
+++ b/drivers/atm/lanai.c
@@ -1389,7 +1389,7 @@ static void vcc_rx_aal5(struct lanai_vcc *lvcc, int endptr)
1389 if (n < 0) 1389 if (n < 0)
1390 n += lanai_buf_size(&lvcc->rx.buf); 1390 n += lanai_buf_size(&lvcc->rx.buf);
1391 APRINTK(n >= 0 && n < lanai_buf_size(&lvcc->rx.buf) && !(n & 15), 1391 APRINTK(n >= 0 && n < lanai_buf_size(&lvcc->rx.buf) && !(n & 15),
1392 "vcc_rx_aal5: n out of range (%d/%Zu)\n", 1392 "vcc_rx_aal5: n out of range (%d/%zu)\n",
1393 n, lanai_buf_size(&lvcc->rx.buf)); 1393 n, lanai_buf_size(&lvcc->rx.buf));
1394 /* Recover the second-to-last word to get true pdu length */ 1394 /* Recover the second-to-last word to get true pdu length */
1395 if ((x = &end[-2]) < lvcc->rx.buf.start) 1395 if ((x = &end[-2]) < lvcc->rx.buf.start)
@@ -1493,9 +1493,9 @@ static int lanai_get_sized_buffer(struct lanai_dev *lanai,
1493 return -ENOMEM; 1493 return -ENOMEM;
1494 if (unlikely(lanai_buf_size(buf) < size)) 1494 if (unlikely(lanai_buf_size(buf) < size))
1495 printk(KERN_WARNING DEV_LABEL "(itf %d): wanted %d bytes " 1495 printk(KERN_WARNING DEV_LABEL "(itf %d): wanted %d bytes "
1496 "for %s buffer, got only %Zu\n", lanai->number, size, 1496 "for %s buffer, got only %zu\n", lanai->number, size,
1497 name, lanai_buf_size(buf)); 1497 name, lanai_buf_size(buf));
1498 DPRINTK("Allocated %Zu byte %s buffer\n", lanai_buf_size(buf), name); 1498 DPRINTK("Allocated %zu byte %s buffer\n", lanai_buf_size(buf), name);
1499 return 0; 1499 return 0;
1500} 1500}
1501 1501
@@ -1586,7 +1586,7 @@ static int service_buffer_allocate(struct lanai_dev *lanai)
1586 lanai->pci); 1586 lanai->pci);
1587 if (unlikely(lanai->service.start == NULL)) 1587 if (unlikely(lanai->service.start == NULL))
1588 return -ENOMEM; 1588 return -ENOMEM;
1589 DPRINTK("allocated service buffer at 0x%08lX, size %Zu(%d)\n", 1589 DPRINTK("allocated service buffer at 0x%08lX, size %zu(%d)\n",
1590 (unsigned long) lanai->service.start, 1590 (unsigned long) lanai->service.start,
1591 lanai_buf_size(&lanai->service), 1591 lanai_buf_size(&lanai->service),
1592 lanai_buf_size_cardorder(&lanai->service)); 1592 lanai_buf_size_cardorder(&lanai->service));
@@ -2467,8 +2467,8 @@ static int lanai_proc_read(struct atm_dev *atmdev, loff_t *pos, char *page)
2467 (lanai->status & STATUS_LED) ? 1 : 0, 2467 (lanai->status & STATUS_LED) ? 1 : 0,
2468 (lanai->status & STATUS_GPIN) ? 1 : 0); 2468 (lanai->status & STATUS_GPIN) ? 1 : 0);
2469 if (left-- == 0) 2469 if (left-- == 0)
2470 return sprintf(page, "global buffer sizes: service=%Zu, " 2470 return sprintf(page, "global buffer sizes: service=%zu, "
2471 "aal0_rx=%Zu\n", lanai_buf_size(&lanai->service), 2471 "aal0_rx=%zu\n", lanai_buf_size(&lanai->service),
2472 lanai->naal0 ? lanai_buf_size(&lanai->aal0buf) : 0); 2472 lanai->naal0 ? lanai_buf_size(&lanai->aal0buf) : 0);
2473 if (left-- == 0) { 2473 if (left-- == 0) {
2474 get_statistics(lanai); 2474 get_statistics(lanai);
@@ -2513,7 +2513,7 @@ static int lanai_proc_read(struct atm_dev *atmdev, loff_t *pos, char *page)
2513 left += sprintf(&page[left], ",\n rx_AAL=%d", 2513 left += sprintf(&page[left], ",\n rx_AAL=%d",
2514 lvcc->rx.atmvcc->qos.aal == ATM_AAL5 ? 5 : 0); 2514 lvcc->rx.atmvcc->qos.aal == ATM_AAL5 ? 5 : 0);
2515 if (lvcc->rx.atmvcc->qos.aal == ATM_AAL5) 2515 if (lvcc->rx.atmvcc->qos.aal == ATM_AAL5)
2516 left += sprintf(&page[left], ", rx_buf_size=%Zu, " 2516 left += sprintf(&page[left], ", rx_buf_size=%zu, "
2517 "rx_bad_len=%u,\n rx_service_trash=%u, " 2517 "rx_bad_len=%u,\n rx_service_trash=%u, "
2518 "rx_service_stream=%u, rx_bad_crc=%u", 2518 "rx_service_stream=%u, rx_bad_crc=%u",
2519 lanai_buf_size(&lvcc->rx.buf), 2519 lanai_buf_size(&lvcc->rx.buf),
@@ -2524,7 +2524,7 @@ static int lanai_proc_read(struct atm_dev *atmdev, loff_t *pos, char *page)
2524 } 2524 }
2525 if (lvcc->tx.atmvcc != NULL) 2525 if (lvcc->tx.atmvcc != NULL)
2526 left += sprintf(&page[left], ",\n tx_AAL=%d, " 2526 left += sprintf(&page[left], ",\n tx_AAL=%d, "
2527 "tx_buf_size=%Zu, tx_qos=%cBR, tx_backlogged=%c", 2527 "tx_buf_size=%zu, tx_qos=%cBR, tx_backlogged=%c",
2528 lvcc->tx.atmvcc->qos.aal == ATM_AAL5 ? 5 : 0, 2528 lvcc->tx.atmvcc->qos.aal == ATM_AAL5 ? 5 : 0,
2529 lanai_buf_size(&lvcc->tx.buf), 2529 lanai_buf_size(&lvcc->tx.buf),
2530 lvcc->tx.atmvcc == lanai->cbrvcc ? 'C' : 'U', 2530 lvcc->tx.atmvcc == lanai->cbrvcc ? 'C' : 'U',
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c
index 4eb609787ad6..cd53771b9ae7 100644
--- a/drivers/char/pcmcia/cm4000_cs.c
+++ b/drivers/char/pcmcia/cm4000_cs.c
@@ -1037,7 +1037,7 @@ release_io:
1037 clear_bit(LOCK_IO, &dev->flags); 1037 clear_bit(LOCK_IO, &dev->flags);
1038 wake_up_interruptible(&dev->ioq); 1038 wake_up_interruptible(&dev->ioq);
1039 1039
1040 DEBUGP(2, dev, "<- cmm_read returns: rc = %Zi\n", 1040 DEBUGP(2, dev, "<- cmm_read returns: rc = %zi\n",
1041 (rc < 0 ? rc : count)); 1041 (rc < 0 ? rc : count));
1042 return rc < 0 ? rc : count; 1042 return rc < 0 ? rc : count;
1043} 1043}
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c
index d7123259143e..d4dbd8d8e524 100644
--- a/drivers/char/pcmcia/cm4040_cs.c
+++ b/drivers/char/pcmcia/cm4040_cs.c
@@ -331,7 +331,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
331 } 331 }
332 332
333 if ((count < 5) || (count > READ_WRITE_BUFFER_SIZE)) { 333 if ((count < 5) || (count > READ_WRITE_BUFFER_SIZE)) {
334 DEBUGP(2, dev, "<- cm4040_write buffersize=%Zd < 5\n", count); 334 DEBUGP(2, dev, "<- cm4040_write buffersize=%zd < 5\n", count);
335 return -EIO; 335 return -EIO;
336 } 336 }
337 337
diff --git a/drivers/gpu/drm/mga/mga_drv.h b/drivers/gpu/drm/mga/mga_drv.h
index d5ce829b3199..45cf363d25ad 100644
--- a/drivers/gpu/drm/mga/mga_drv.h
+++ b/drivers/gpu/drm/mga/mga_drv.h
@@ -266,7 +266,7 @@ do { \
266do { \ 266do { \
267 if (MGA_VERBOSE) { \ 267 if (MGA_VERBOSE) { \
268 DRM_INFO("BEGIN_DMA(%d)\n", (n)); \ 268 DRM_INFO("BEGIN_DMA(%d)\n", (n)); \
269 DRM_INFO(" space=0x%x req=0x%Zx\n", \ 269 DRM_INFO(" space=0x%x req=0x%zx\n", \
270 dev_priv->prim.space, (n) * DMA_BLOCK_SIZE); \ 270 dev_priv->prim.space, (n) * DMA_BLOCK_SIZE); \
271 } \ 271 } \
272 prim = dev_priv->prim.start; \ 272 prim = dev_priv->prim.start; \
@@ -313,7 +313,7 @@ do { \
313#define DMA_WRITE(offset, val) \ 313#define DMA_WRITE(offset, val) \
314do { \ 314do { \
315 if (MGA_VERBOSE) \ 315 if (MGA_VERBOSE) \
316 DRM_INFO(" DMA_WRITE( 0x%08x ) at 0x%04Zx\n", \ 316 DRM_INFO(" DMA_WRITE( 0x%08x ) at 0x%04zx\n", \
317 (u32)(val), write + (offset) * sizeof(u32)); \ 317 (u32)(val), write + (offset) * sizeof(u32)); \
318 *(volatile u32 *)(prim + write + (offset) * sizeof(u32)) = val; \ 318 *(volatile u32 *)(prim + write + (offset) * sizeof(u32)) = val; \
319} while (0) 319} while (0)
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c
index b6940992a6ff..968038482d2f 100644
--- a/drivers/ide/ide-acpi.c
+++ b/drivers/ide/ide-acpi.c
@@ -447,7 +447,7 @@ void ide_acpi_get_timing(ide_hwif_t *hwif)
447 memcpy(&hwif->acpidata->gtm, out_obj->buffer.pointer, 447 memcpy(&hwif->acpidata->gtm, out_obj->buffer.pointer,
448 sizeof(struct GTM_buffer)); 448 sizeof(struct GTM_buffer));
449 449
450 DEBPRINT("_GTM info: ptr: 0x%p, len: 0x%x, exp.len: 0x%Zx\n", 450 DEBPRINT("_GTM info: ptr: 0x%p, len: 0x%x, exp.len: 0x%zx\n",
451 out_obj->buffer.pointer, out_obj->buffer.length, 451 out_obj->buffer.pointer, out_obj->buffer.length,
452 sizeof(struct GTM_buffer)); 452 sizeof(struct GTM_buffer));
453 453
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 3c1b7974d66d..d8a552b47718 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -1136,7 +1136,7 @@ static ssize_t idetape_chrdev_read(struct file *file, char __user *buf,
1136 ssize_t ret = 0; 1136 ssize_t ret = 0;
1137 int rc; 1137 int rc;
1138 1138
1139 ide_debug_log(IDE_DBG_FUNC, "count %Zd", count); 1139 ide_debug_log(IDE_DBG_FUNC, "count %zd", count);
1140 1140
1141 if (tape->chrdev_dir != IDETAPE_DIR_READ) { 1141 if (tape->chrdev_dir != IDETAPE_DIR_READ) {
1142 if (test_bit(ilog2(IDE_AFLAG_DETECT_BS), &drive->atapi_flags)) 1142 if (test_bit(ilog2(IDE_AFLAG_DETECT_BS), &drive->atapi_flags))
@@ -1195,7 +1195,7 @@ static ssize_t idetape_chrdev_write(struct file *file, const char __user *buf,
1195 if (tape->write_prot) 1195 if (tape->write_prot)
1196 return -EACCES; 1196 return -EACCES;
1197 1197
1198 ide_debug_log(IDE_DBG_FUNC, "count %Zd", count); 1198 ide_debug_log(IDE_DBG_FUNC, "count %zd", count);
1199 1199
1200 /* Initialize write operation */ 1200 /* Initialize write operation */
1201 rc = idetape_init_rw(drive, IDETAPE_DIR_WRITE); 1201 rc = idetape_init_rw(drive, IDETAPE_DIR_WRITE);
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index 44deca88c579..beaf61ce775b 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -202,7 +202,7 @@ static int cyttsp4_si_get_cydata(struct cyttsp4 *cd)
202 int rc; 202 int rc;
203 203
204 si->si_ofs.cydata_size = si->si_ofs.test_ofs - si->si_ofs.cydata_ofs; 204 si->si_ofs.cydata_size = si->si_ofs.test_ofs - si->si_ofs.cydata_ofs;
205 dev_dbg(cd->dev, "%s: cydata size: %Zd\n", __func__, 205 dev_dbg(cd->dev, "%s: cydata size: %zd\n", __func__,
206 si->si_ofs.cydata_size); 206 si->si_ofs.cydata_size);
207 207
208 p = krealloc(si->si_ptrs.cydata, si->si_ofs.cydata_size, GFP_KERNEL); 208 p = krealloc(si->si_ptrs.cydata, si->si_ofs.cydata_size, GFP_KERNEL);
@@ -430,13 +430,13 @@ static int cyttsp4_si_get_opcfg_data(struct cyttsp4 *cd)
430 for (abs = 0; abs < CY_TCH_NUM_ABS; abs++) { 430 for (abs = 0; abs < CY_TCH_NUM_ABS; abs++) {
431 dev_dbg(cd->dev, "%s: tch_rec_%s\n", __func__, 431 dev_dbg(cd->dev, "%s: tch_rec_%s\n", __func__,
432 cyttsp4_tch_abs_string[abs]); 432 cyttsp4_tch_abs_string[abs]);
433 dev_dbg(cd->dev, "%s: ofs =%2Zd\n", __func__, 433 dev_dbg(cd->dev, "%s: ofs =%2zd\n", __func__,
434 si->si_ofs.tch_abs[abs].ofs); 434 si->si_ofs.tch_abs[abs].ofs);
435 dev_dbg(cd->dev, "%s: siz =%2Zd\n", __func__, 435 dev_dbg(cd->dev, "%s: siz =%2zd\n", __func__,
436 si->si_ofs.tch_abs[abs].size); 436 si->si_ofs.tch_abs[abs].size);
437 dev_dbg(cd->dev, "%s: max =%2Zd\n", __func__, 437 dev_dbg(cd->dev, "%s: max =%2zd\n", __func__,
438 si->si_ofs.tch_abs[abs].max); 438 si->si_ofs.tch_abs[abs].max);
439 dev_dbg(cd->dev, "%s: bofs=%2Zd\n", __func__, 439 dev_dbg(cd->dev, "%s: bofs=%2zd\n", __func__,
440 si->si_ofs.tch_abs[abs].bofs); 440 si->si_ofs.tch_abs[abs].bofs);
441 } 441 }
442 442
@@ -586,62 +586,62 @@ static int cyttsp4_si_get_op_data_ptrs(struct cyttsp4 *cd)
586static void cyttsp4_si_put_log_data(struct cyttsp4 *cd) 586static void cyttsp4_si_put_log_data(struct cyttsp4 *cd)
587{ 587{
588 struct cyttsp4_sysinfo *si = &cd->sysinfo; 588 struct cyttsp4_sysinfo *si = &cd->sysinfo;
589 dev_dbg(cd->dev, "%s: cydata_ofs =%4Zd siz=%4Zd\n", __func__, 589 dev_dbg(cd->dev, "%s: cydata_ofs =%4zd siz=%4zd\n", __func__,
590 si->si_ofs.cydata_ofs, si->si_ofs.cydata_size); 590 si->si_ofs.cydata_ofs, si->si_ofs.cydata_size);
591 dev_dbg(cd->dev, "%s: test_ofs =%4Zd siz=%4Zd\n", __func__, 591 dev_dbg(cd->dev, "%s: test_ofs =%4zd siz=%4zd\n", __func__,
592 si->si_ofs.test_ofs, si->si_ofs.test_size); 592 si->si_ofs.test_ofs, si->si_ofs.test_size);
593 dev_dbg(cd->dev, "%s: pcfg_ofs =%4Zd siz=%4Zd\n", __func__, 593 dev_dbg(cd->dev, "%s: pcfg_ofs =%4zd siz=%4zd\n", __func__,
594 si->si_ofs.pcfg_ofs, si->si_ofs.pcfg_size); 594 si->si_ofs.pcfg_ofs, si->si_ofs.pcfg_size);
595 dev_dbg(cd->dev, "%s: opcfg_ofs =%4Zd siz=%4Zd\n", __func__, 595 dev_dbg(cd->dev, "%s: opcfg_ofs =%4zd siz=%4zd\n", __func__,
596 si->si_ofs.opcfg_ofs, si->si_ofs.opcfg_size); 596 si->si_ofs.opcfg_ofs, si->si_ofs.opcfg_size);
597 dev_dbg(cd->dev, "%s: ddata_ofs =%4Zd siz=%4Zd\n", __func__, 597 dev_dbg(cd->dev, "%s: ddata_ofs =%4zd siz=%4zd\n", __func__,
598 si->si_ofs.ddata_ofs, si->si_ofs.ddata_size); 598 si->si_ofs.ddata_ofs, si->si_ofs.ddata_size);
599 dev_dbg(cd->dev, "%s: mdata_ofs =%4Zd siz=%4Zd\n", __func__, 599 dev_dbg(cd->dev, "%s: mdata_ofs =%4zd siz=%4zd\n", __func__,
600 si->si_ofs.mdata_ofs, si->si_ofs.mdata_size); 600 si->si_ofs.mdata_ofs, si->si_ofs.mdata_size);
601 601
602 dev_dbg(cd->dev, "%s: cmd_ofs =%4Zd\n", __func__, 602 dev_dbg(cd->dev, "%s: cmd_ofs =%4zd\n", __func__,
603 si->si_ofs.cmd_ofs); 603 si->si_ofs.cmd_ofs);
604 dev_dbg(cd->dev, "%s: rep_ofs =%4Zd\n", __func__, 604 dev_dbg(cd->dev, "%s: rep_ofs =%4zd\n", __func__,
605 si->si_ofs.rep_ofs); 605 si->si_ofs.rep_ofs);
606 dev_dbg(cd->dev, "%s: rep_sz =%4Zd\n", __func__, 606 dev_dbg(cd->dev, "%s: rep_sz =%4zd\n", __func__,
607 si->si_ofs.rep_sz); 607 si->si_ofs.rep_sz);
608 dev_dbg(cd->dev, "%s: num_btns =%4Zd\n", __func__, 608 dev_dbg(cd->dev, "%s: num_btns =%4zd\n", __func__,
609 si->si_ofs.num_btns); 609 si->si_ofs.num_btns);
610 dev_dbg(cd->dev, "%s: num_btn_regs =%4Zd\n", __func__, 610 dev_dbg(cd->dev, "%s: num_btn_regs =%4zd\n", __func__,
611 si->si_ofs.num_btn_regs); 611 si->si_ofs.num_btn_regs);
612 dev_dbg(cd->dev, "%s: tt_stat_ofs =%4Zd\n", __func__, 612 dev_dbg(cd->dev, "%s: tt_stat_ofs =%4zd\n", __func__,
613 si->si_ofs.tt_stat_ofs); 613 si->si_ofs.tt_stat_ofs);
614 dev_dbg(cd->dev, "%s: tch_rec_size =%4Zd\n", __func__, 614 dev_dbg(cd->dev, "%s: tch_rec_size =%4zd\n", __func__,
615 si->si_ofs.tch_rec_size); 615 si->si_ofs.tch_rec_size);
616 dev_dbg(cd->dev, "%s: max_tchs =%4Zd\n", __func__, 616 dev_dbg(cd->dev, "%s: max_tchs =%4zd\n", __func__,
617 si->si_ofs.max_tchs); 617 si->si_ofs.max_tchs);
618 dev_dbg(cd->dev, "%s: mode_size =%4Zd\n", __func__, 618 dev_dbg(cd->dev, "%s: mode_size =%4zd\n", __func__,
619 si->si_ofs.mode_size); 619 si->si_ofs.mode_size);
620 dev_dbg(cd->dev, "%s: data_size =%4Zd\n", __func__, 620 dev_dbg(cd->dev, "%s: data_size =%4zd\n", __func__,
621 si->si_ofs.data_size); 621 si->si_ofs.data_size);
622 dev_dbg(cd->dev, "%s: map_sz =%4Zd\n", __func__, 622 dev_dbg(cd->dev, "%s: map_sz =%4zd\n", __func__,
623 si->si_ofs.map_sz); 623 si->si_ofs.map_sz);
624 624
625 dev_dbg(cd->dev, "%s: btn_rec_size =%2Zd\n", __func__, 625 dev_dbg(cd->dev, "%s: btn_rec_size =%2zd\n", __func__,
626 si->si_ofs.btn_rec_size); 626 si->si_ofs.btn_rec_size);
627 dev_dbg(cd->dev, "%s: btn_diff_ofs =%2Zd\n", __func__, 627 dev_dbg(cd->dev, "%s: btn_diff_ofs =%2zd\n", __func__,
628 si->si_ofs.btn_diff_ofs); 628 si->si_ofs.btn_diff_ofs);
629 dev_dbg(cd->dev, "%s: btn_diff_size =%2Zd\n", __func__, 629 dev_dbg(cd->dev, "%s: btn_diff_size =%2zd\n", __func__,
630 si->si_ofs.btn_diff_size); 630 si->si_ofs.btn_diff_size);
631 631
632 dev_dbg(cd->dev, "%s: max_x = 0x%04ZX (%Zd)\n", __func__, 632 dev_dbg(cd->dev, "%s: max_x = 0x%04zX (%zd)\n", __func__,
633 si->si_ofs.max_x, si->si_ofs.max_x); 633 si->si_ofs.max_x, si->si_ofs.max_x);
634 dev_dbg(cd->dev, "%s: x_origin = %Zd (%s)\n", __func__, 634 dev_dbg(cd->dev, "%s: x_origin = %zd (%s)\n", __func__,
635 si->si_ofs.x_origin, 635 si->si_ofs.x_origin,
636 si->si_ofs.x_origin == CY_NORMAL_ORIGIN ? 636 si->si_ofs.x_origin == CY_NORMAL_ORIGIN ?
637 "left corner" : "right corner"); 637 "left corner" : "right corner");
638 dev_dbg(cd->dev, "%s: max_y = 0x%04ZX (%Zd)\n", __func__, 638 dev_dbg(cd->dev, "%s: max_y = 0x%04zX (%zd)\n", __func__,
639 si->si_ofs.max_y, si->si_ofs.max_y); 639 si->si_ofs.max_y, si->si_ofs.max_y);
640 dev_dbg(cd->dev, "%s: y_origin = %Zd (%s)\n", __func__, 640 dev_dbg(cd->dev, "%s: y_origin = %zd (%s)\n", __func__,
641 si->si_ofs.y_origin, 641 si->si_ofs.y_origin,
642 si->si_ofs.y_origin == CY_NORMAL_ORIGIN ? 642 si->si_ofs.y_origin == CY_NORMAL_ORIGIN ?
643 "upper corner" : "lower corner"); 643 "upper corner" : "lower corner");
644 dev_dbg(cd->dev, "%s: max_p = 0x%04ZX (%Zd)\n", __func__, 644 dev_dbg(cd->dev, "%s: max_p = 0x%04zX (%zd)\n", __func__,
645 si->si_ofs.max_p, si->si_ofs.max_p); 645 si->si_ofs.max_p, si->si_ofs.max_p);
646 646
647 dev_dbg(cd->dev, "%s: xy_mode=%p xy_data=%p\n", __func__, 647 dev_dbg(cd->dev, "%s: xy_mode=%p xy_data=%p\n", __func__,
@@ -1000,7 +1000,7 @@ static int cyttsp4_xy_worker(struct cyttsp4 *cd)
1000 dev_dbg(dev, "%s: Large area detected\n", __func__); 1000 dev_dbg(dev, "%s: Large area detected\n", __func__);
1001 1001
1002 if (num_cur_tch > si->si_ofs.max_tchs) { 1002 if (num_cur_tch > si->si_ofs.max_tchs) {
1003 dev_err(dev, "%s: too many tch; set to max tch (n=%d c=%Zd)\n", 1003 dev_err(dev, "%s: too many tch; set to max tch (n=%d c=%zd)\n",
1004 __func__, num_cur_tch, si->si_ofs.max_tchs); 1004 __func__, num_cur_tch, si->si_ofs.max_tchs);
1005 num_cur_tch = si->si_ofs.max_tchs; 1005 num_cur_tch = si->si_ofs.max_tchs;
1006 } 1006 }
diff --git a/drivers/media/dvb-frontends/helene.c b/drivers/media/dvb-frontends/helene.c
index ef35c2b30ea3..4bf5a551ba40 100644
--- a/drivers/media/dvb-frontends/helene.c
+++ b/drivers/media/dvb-frontends/helene.c
@@ -309,7 +309,7 @@ static int helene_write_regs(struct helene_priv *priv,
309 309
310 if (len + 1 > sizeof(buf)) { 310 if (len + 1 > sizeof(buf)) {
311 dev_warn(&priv->i2c->dev, 311 dev_warn(&priv->i2c->dev,
312 "wr reg=%04x: len=%d vs %Zu is too big!\n", 312 "wr reg=%04x: len=%d vs %zu is too big!\n",
313 reg, len + 1, sizeof(buf)); 313 reg, len + 1, sizeof(buf));
314 return -E2BIG; 314 return -E2BIG;
315 } 315 }
diff --git a/drivers/media/dvb-frontends/or51132.c b/drivers/media/dvb-frontends/or51132.c
index 4b67d7e0116d..62aa00767015 100644
--- a/drivers/media/dvb-frontends/or51132.c
+++ b/drivers/media/dvb-frontends/or51132.c
@@ -133,7 +133,7 @@ static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware
133 u32 firmwareAsize, firmwareBsize; 133 u32 firmwareAsize, firmwareBsize;
134 int i,ret; 134 int i,ret;
135 135
136 dprintk("Firmware is %Zd bytes\n",fw->size); 136 dprintk("Firmware is %zd bytes\n",fw->size);
137 137
138 /* Get size of firmware A and B */ 138 /* Get size of firmware A and B */
139 firmwareAsize = le32_to_cpu(*((__le32*)fw->data)); 139 firmwareAsize = le32_to_cpu(*((__le32*)fw->data));
diff --git a/drivers/media/dvb-frontends/tda10048.c b/drivers/media/dvb-frontends/tda10048.c
index 92ab34c3e0be..143b39b5f6c9 100644
--- a/drivers/media/dvb-frontends/tda10048.c
+++ b/drivers/media/dvb-frontends/tda10048.c
@@ -499,7 +499,7 @@ static int tda10048_firmware_upload(struct dvb_frontend *fe)
499 __func__); 499 __func__);
500 return -EIO; 500 return -EIO;
501 } else { 501 } else {
502 printk(KERN_INFO "%s: firmware read %Zu bytes.\n", 502 printk(KERN_INFO "%s: firmware read %zu bytes.\n",
503 __func__, 503 __func__,
504 fw->size); 504 fw->size);
505 ret = 0; 505 ret = 0;
diff --git a/drivers/media/pci/saa7164/saa7164-fw.c b/drivers/media/pci/saa7164/saa7164-fw.c
index 4ba5eade7ce2..ef4906406ebf 100644
--- a/drivers/media/pci/saa7164/saa7164-fw.c
+++ b/drivers/media/pci/saa7164/saa7164-fw.c
@@ -422,7 +422,7 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev)
422 return -ENOMEM; 422 return -ENOMEM;
423 } 423 }
424 424
425 printk(KERN_INFO "%s() firmware read %Zu bytes.\n", 425 printk(KERN_INFO "%s() firmware read %zu bytes.\n",
426 __func__, fw->size); 426 __func__, fw->size);
427 427
428 if (fw->size != fwlength) { 428 if (fw->size != fwlength) {
diff --git a/drivers/media/tuners/xc5000.c b/drivers/media/tuners/xc5000.c
index 0345b274eccc..91947cf1950e 100644
--- a/drivers/media/tuners/xc5000.c
+++ b/drivers/media/tuners/xc5000.c
@@ -1144,7 +1144,7 @@ static int xc_load_fw_and_init_tuner(struct dvb_frontend *fe, int force)
1144 pr_err("xc5000: Upload failed. rc %d\n", ret); 1144 pr_err("xc5000: Upload failed. rc %d\n", ret);
1145 return ret; 1145 return ret;
1146 } 1146 }
1147 dprintk(1, "firmware read %Zu bytes.\n", fw->size); 1147 dprintk(1, "firmware read %zu bytes.\n", fw->size);
1148 1148
1149 if (fw->size != desired_fw->size) { 1149 if (fw->size != desired_fw->size) {
1150 pr_err("xc5000: Firmware file with incorrect size\n"); 1150 pr_err("xc5000: Firmware file with incorrect size\n");
diff --git a/drivers/media/usb/dvb-usb/dib0700_devices.c b/drivers/media/usb/dvb-usb/dib0700_devices.c
index 81d7fd4f7776..85ab3fa48f9a 100644
--- a/drivers/media/usb/dvb-usb/dib0700_devices.c
+++ b/drivers/media/usb/dvb-usb/dib0700_devices.c
@@ -2414,7 +2414,7 @@ static int stk9090m_frontend_attach(struct dvb_usb_adapter *adap)
2414 deb_info("%s: Upload failed. (file not found?)\n", __func__); 2414 deb_info("%s: Upload failed. (file not found?)\n", __func__);
2415 return -ENODEV; 2415 return -ENODEV;
2416 } else { 2416 } else {
2417 deb_info("%s: firmware read %Zu bytes.\n", __func__, state->frontend_firmware->size); 2417 deb_info("%s: firmware read %zu bytes.\n", __func__, state->frontend_firmware->size);
2418 } 2418 }
2419 stk9090m_config.microcode_B_fe_size = state->frontend_firmware->size; 2419 stk9090m_config.microcode_B_fe_size = state->frontend_firmware->size;
2420 stk9090m_config.microcode_B_fe_buffer = state->frontend_firmware->data; 2420 stk9090m_config.microcode_B_fe_buffer = state->frontend_firmware->data;
@@ -2480,7 +2480,7 @@ static int nim9090md_frontend_attach(struct dvb_usb_adapter *adap)
2480 deb_info("%s: Upload failed. (file not found?)\n", __func__); 2480 deb_info("%s: Upload failed. (file not found?)\n", __func__);
2481 return -EIO; 2481 return -EIO;
2482 } else { 2482 } else {
2483 deb_info("%s: firmware read %Zu bytes.\n", __func__, state->frontend_firmware->size); 2483 deb_info("%s: firmware read %zu bytes.\n", __func__, state->frontend_firmware->size);
2484 } 2484 }
2485 nim9090md_config[0].microcode_B_fe_size = state->frontend_firmware->size; 2485 nim9090md_config[0].microcode_B_fe_size = state->frontend_firmware->size;
2486 nim9090md_config[0].microcode_B_fe_buffer = state->frontend_firmware->data; 2486 nim9090md_config[0].microcode_B_fe_buffer = state->frontend_firmware->data;
diff --git a/drivers/misc/vmw_vmci/vmci_context.c b/drivers/misc/vmw_vmci/vmci_context.c
index f866a4baecb5..f35f0c8606b9 100644
--- a/drivers/misc/vmw_vmci/vmci_context.c
+++ b/drivers/misc/vmw_vmci/vmci_context.c
@@ -303,7 +303,7 @@ int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg)
303 303
304 vmci_dg_size = VMCI_DG_SIZE(dg); 304 vmci_dg_size = VMCI_DG_SIZE(dg);
305 if (vmci_dg_size > VMCI_MAX_DG_SIZE) { 305 if (vmci_dg_size > VMCI_MAX_DG_SIZE) {
306 pr_devel("Datagram too large (bytes=%Zu)\n", vmci_dg_size); 306 pr_devel("Datagram too large (bytes=%zu)\n", vmci_dg_size);
307 return VMCI_ERROR_INVALID_ARGS; 307 return VMCI_ERROR_INVALID_ARGS;
308 } 308 }
309 309
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c
index 6ea963e3b89a..62ee439d5882 100644
--- a/drivers/net/arcnet/arcnet.c
+++ b/drivers/net/arcnet/arcnet.c
@@ -123,7 +123,7 @@ static int __init arcnet_init(void)
123 arc_proto_map[count] = arc_proto_default; 123 arc_proto_map[count] = arc_proto_default;
124 124
125 if (BUGLVL(D_DURING)) 125 if (BUGLVL(D_DURING))
126 pr_info("struct sizes: %Zd %Zd %Zd %Zd %Zd\n", 126 pr_info("struct sizes: %zd %zd %zd %zd %zd\n",
127 sizeof(struct arc_hardware), 127 sizeof(struct arc_hardware),
128 sizeof(struct arc_rfc1201), 128 sizeof(struct arc_rfc1201),
129 sizeof(struct arc_rfc1051), 129 sizeof(struct arc_rfc1051),
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 016d481c6476..30606b11b128 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -1622,7 +1622,7 @@ static void macb_init_rx_buffer_size(struct macb *bp, size_t size)
1622 } 1622 }
1623 } 1623 }
1624 1624
1625 netdev_dbg(bp->dev, "mtu [%u] rx_buffer_size [%Zu]\n", 1625 netdev_dbg(bp->dev, "mtu [%u] rx_buffer_size [%zu]\n",
1626 bp->dev->mtu, bp->rx_buffer_size); 1626 bp->dev->mtu, bp->rx_buffer_size);
1627} 1627}
1628 1628
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c
index bda0c6413450..89698741682f 100644
--- a/drivers/net/gtp.c
+++ b/drivers/net/gtp.c
@@ -1330,7 +1330,7 @@ static int __init gtp_init(void)
1330 if (err < 0) 1330 if (err < 0)
1331 goto unreg_genl_family; 1331 goto unreg_genl_family;
1332 1332
1333 pr_info("GTP module loaded (pdp ctx size %Zd bytes)\n", 1333 pr_info("GTP module loaded (pdp ctx size %zd bytes)\n",
1334 sizeof(struct pdp_ctx)); 1334 sizeof(struct pdp_ctx));
1335 return 0; 1335 return 0;
1336 1336
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c
index 4f4f71b2966b..c5b21138b7eb 100644
--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -383,7 +383,7 @@ generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf, int flags)
383 383
384 /* REVISIT: peripheral "alignment" request is ignored ... */ 384 /* REVISIT: peripheral "alignment" request is ignored ... */
385 dev_dbg(&intf->dev, 385 dev_dbg(&intf->dev,
386 "hard mtu %u (%u from dev), rx buflen %Zu, align %d\n", 386 "hard mtu %u (%u from dev), rx buflen %zu, align %d\n",
387 dev->hard_mtu, tmp, dev->rx_urb_size, 387 dev->hard_mtu, tmp, dev->rx_urb_size,
388 1 << le32_to_cpu(u.init_c->packet_alignment)); 388 1 << le32_to_cpu(u.init_c->packet_alignment));
389 389
diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c
index d9440bc022f2..ac69f28d92d2 100644
--- a/drivers/net/usb/sierra_net.c
+++ b/drivers/net/usb/sierra_net.c
@@ -379,7 +379,7 @@ static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen)
379 u32 expected_length; 379 u32 expected_length;
380 380
381 if (datalen < sizeof(struct lsi_umts_single)) { 381 if (datalen < sizeof(struct lsi_umts_single)) {
382 netdev_err(dev->net, "%s: Data length %d, exp >= %Zu\n", 382 netdev_err(dev->net, "%s: Data length %d, exp >= %zu\n",
383 __func__, datalen, sizeof(struct lsi_umts_single)); 383 __func__, datalen, sizeof(struct lsi_umts_single));
384 return -1; 384 return -1;
385 } 385 }
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 10098b7586f3..944b83cfc519 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -4874,7 +4874,7 @@ brcmf_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
4874 kfree(af_params); 4874 kfree(af_params);
4875 } else { 4875 } else {
4876 brcmf_dbg(TRACE, "Unhandled, fc=%04x!!\n", mgmt->frame_control); 4876 brcmf_dbg(TRACE, "Unhandled, fc=%04x!!\n", mgmt->frame_control);
4877 brcmf_dbg_hex_dump(true, buf, len, "payload, len=%Zu\n", len); 4877 brcmf_dbg_hex_dump(true, buf, len, "payload, len=%zu\n", len);
4878 } 4878 }
4879 4879
4880exit: 4880exit:
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
index a91d170a614b..2781f5728d07 100644
--- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
@@ -4855,39 +4855,39 @@ il4965_ucode_callback(const struct firmware *ucode_raw, void *context)
4855 */ 4855 */
4856 4856
4857 D_INFO("f/w package hdr ucode version raw = 0x%x\n", il->ucode_ver); 4857 D_INFO("f/w package hdr ucode version raw = 0x%x\n", il->ucode_ver);
4858 D_INFO("f/w package hdr runtime inst size = %Zd\n", pieces.inst_size); 4858 D_INFO("f/w package hdr runtime inst size = %zd\n", pieces.inst_size);
4859 D_INFO("f/w package hdr runtime data size = %Zd\n", pieces.data_size); 4859 D_INFO("f/w package hdr runtime data size = %zd\n", pieces.data_size);
4860 D_INFO("f/w package hdr init inst size = %Zd\n", pieces.init_size); 4860 D_INFO("f/w package hdr init inst size = %zd\n", pieces.init_size);
4861 D_INFO("f/w package hdr init data size = %Zd\n", pieces.init_data_size); 4861 D_INFO("f/w package hdr init data size = %zd\n", pieces.init_data_size);
4862 D_INFO("f/w package hdr boot inst size = %Zd\n", pieces.boot_size); 4862 D_INFO("f/w package hdr boot inst size = %zd\n", pieces.boot_size);
4863 4863
4864 /* Verify that uCode images will fit in card's SRAM */ 4864 /* Verify that uCode images will fit in card's SRAM */
4865 if (pieces.inst_size > il->hw_params.max_inst_size) { 4865 if (pieces.inst_size > il->hw_params.max_inst_size) {
4866 IL_ERR("uCode instr len %Zd too large to fit in\n", 4866 IL_ERR("uCode instr len %zd too large to fit in\n",
4867 pieces.inst_size); 4867 pieces.inst_size);
4868 goto try_again; 4868 goto try_again;
4869 } 4869 }
4870 4870
4871 if (pieces.data_size > il->hw_params.max_data_size) { 4871 if (pieces.data_size > il->hw_params.max_data_size) {
4872 IL_ERR("uCode data len %Zd too large to fit in\n", 4872 IL_ERR("uCode data len %zd too large to fit in\n",
4873 pieces.data_size); 4873 pieces.data_size);
4874 goto try_again; 4874 goto try_again;
4875 } 4875 }
4876 4876
4877 if (pieces.init_size > il->hw_params.max_inst_size) { 4877 if (pieces.init_size > il->hw_params.max_inst_size) {
4878 IL_ERR("uCode init instr len %Zd too large to fit in\n", 4878 IL_ERR("uCode init instr len %zd too large to fit in\n",
4879 pieces.init_size); 4879 pieces.init_size);
4880 goto try_again; 4880 goto try_again;
4881 } 4881 }
4882 4882
4883 if (pieces.init_data_size > il->hw_params.max_data_size) { 4883 if (pieces.init_data_size > il->hw_params.max_data_size) {
4884 IL_ERR("uCode init data len %Zd too large to fit in\n", 4884 IL_ERR("uCode init data len %zd too large to fit in\n",
4885 pieces.init_data_size); 4885 pieces.init_data_size);
4886 goto try_again; 4886 goto try_again;
4887 } 4887 }
4888 4888
4889 if (pieces.boot_size > il->hw_params.max_bsm_size) { 4889 if (pieces.boot_size > il->hw_params.max_bsm_size) {
4890 IL_ERR("uCode boot instr len %Zd too large to fit in\n", 4890 IL_ERR("uCode boot instr len %zd too large to fit in\n",
4891 pieces.boot_size); 4891 pieces.boot_size);
4892 goto try_again; 4892 goto try_again;
4893 } 4893 }
@@ -4938,7 +4938,7 @@ il4965_ucode_callback(const struct firmware *ucode_raw, void *context)
4938 /* Copy images into buffers for card's bus-master reads ... */ 4938 /* Copy images into buffers for card's bus-master reads ... */
4939 4939
4940 /* Runtime instructions (first block of data in file) */ 4940 /* Runtime instructions (first block of data in file) */
4941 D_INFO("Copying (but not loading) uCode instr len %Zd\n", 4941 D_INFO("Copying (but not loading) uCode instr len %zd\n",
4942 pieces.inst_size); 4942 pieces.inst_size);
4943 memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size); 4943 memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size);
4944 4944
@@ -4949,28 +4949,28 @@ il4965_ucode_callback(const struct firmware *ucode_raw, void *context)
4949 * Runtime data 4949 * Runtime data
4950 * NOTE: Copy into backup buffer will be done in il_up() 4950 * NOTE: Copy into backup buffer will be done in il_up()
4951 */ 4951 */
4952 D_INFO("Copying (but not loading) uCode data len %Zd\n", 4952 D_INFO("Copying (but not loading) uCode data len %zd\n",
4953 pieces.data_size); 4953 pieces.data_size);
4954 memcpy(il->ucode_data.v_addr, pieces.data, pieces.data_size); 4954 memcpy(il->ucode_data.v_addr, pieces.data, pieces.data_size);
4955 memcpy(il->ucode_data_backup.v_addr, pieces.data, pieces.data_size); 4955 memcpy(il->ucode_data_backup.v_addr, pieces.data, pieces.data_size);
4956 4956
4957 /* Initialization instructions */ 4957 /* Initialization instructions */
4958 if (pieces.init_size) { 4958 if (pieces.init_size) {
4959 D_INFO("Copying (but not loading) init instr len %Zd\n", 4959 D_INFO("Copying (but not loading) init instr len %zd\n",
4960 pieces.init_size); 4960 pieces.init_size);
4961 memcpy(il->ucode_init.v_addr, pieces.init, pieces.init_size); 4961 memcpy(il->ucode_init.v_addr, pieces.init, pieces.init_size);
4962 } 4962 }
4963 4963
4964 /* Initialization data */ 4964 /* Initialization data */
4965 if (pieces.init_data_size) { 4965 if (pieces.init_data_size) {
4966 D_INFO("Copying (but not loading) init data len %Zd\n", 4966 D_INFO("Copying (but not loading) init data len %zd\n",
4967 pieces.init_data_size); 4967 pieces.init_data_size);
4968 memcpy(il->ucode_init_data.v_addr, pieces.init_data, 4968 memcpy(il->ucode_init_data.v_addr, pieces.init_data,
4969 pieces.init_data_size); 4969 pieces.init_data_size);
4970 } 4970 }
4971 4971
4972 /* Bootstrap instructions */ 4972 /* Bootstrap instructions */
4973 D_INFO("Copying (but not loading) boot instr len %Zd\n", 4973 D_INFO("Copying (but not loading) boot instr len %zd\n",
4974 pieces.boot_size); 4974 pieces.boot_size);
4975 memcpy(il->ucode_boot.v_addr, pieces.boot, pieces.boot_size); 4975 memcpy(il->ucode_boot.v_addr, pieces.boot, pieces.boot_size);
4976 4976
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
index 0e0293d42b5d..be466a074c1d 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
@@ -1141,21 +1141,21 @@ static int validate_sec_sizes(struct iwl_drv *drv,
1141 struct iwl_firmware_pieces *pieces, 1141 struct iwl_firmware_pieces *pieces,
1142 const struct iwl_cfg *cfg) 1142 const struct iwl_cfg *cfg)
1143{ 1143{
1144 IWL_DEBUG_INFO(drv, "f/w package hdr runtime inst size = %Zd\n", 1144 IWL_DEBUG_INFO(drv, "f/w package hdr runtime inst size = %zd\n",
1145 get_sec_size(pieces, IWL_UCODE_REGULAR, 1145 get_sec_size(pieces, IWL_UCODE_REGULAR,
1146 IWL_UCODE_SECTION_INST)); 1146 IWL_UCODE_SECTION_INST));
1147 IWL_DEBUG_INFO(drv, "f/w package hdr runtime data size = %Zd\n", 1147 IWL_DEBUG_INFO(drv, "f/w package hdr runtime data size = %zd\n",
1148 get_sec_size(pieces, IWL_UCODE_REGULAR, 1148 get_sec_size(pieces, IWL_UCODE_REGULAR,
1149 IWL_UCODE_SECTION_DATA)); 1149 IWL_UCODE_SECTION_DATA));
1150 IWL_DEBUG_INFO(drv, "f/w package hdr init inst size = %Zd\n", 1150 IWL_DEBUG_INFO(drv, "f/w package hdr init inst size = %zd\n",
1151 get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST)); 1151 get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST));
1152 IWL_DEBUG_INFO(drv, "f/w package hdr init data size = %Zd\n", 1152 IWL_DEBUG_INFO(drv, "f/w package hdr init data size = %zd\n",
1153 get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA)); 1153 get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA));
1154 1154
1155 /* Verify that uCode images will fit in card's SRAM. */ 1155 /* Verify that uCode images will fit in card's SRAM. */
1156 if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST) > 1156 if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_INST) >
1157 cfg->max_inst_size) { 1157 cfg->max_inst_size) {
1158 IWL_ERR(drv, "uCode instr len %Zd too large to fit in\n", 1158 IWL_ERR(drv, "uCode instr len %zd too large to fit in\n",
1159 get_sec_size(pieces, IWL_UCODE_REGULAR, 1159 get_sec_size(pieces, IWL_UCODE_REGULAR,
1160 IWL_UCODE_SECTION_INST)); 1160 IWL_UCODE_SECTION_INST));
1161 return -1; 1161 return -1;
@@ -1163,7 +1163,7 @@ static int validate_sec_sizes(struct iwl_drv *drv,
1163 1163
1164 if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA) > 1164 if (get_sec_size(pieces, IWL_UCODE_REGULAR, IWL_UCODE_SECTION_DATA) >
1165 cfg->max_data_size) { 1165 cfg->max_data_size) {
1166 IWL_ERR(drv, "uCode data len %Zd too large to fit in\n", 1166 IWL_ERR(drv, "uCode data len %zd too large to fit in\n",
1167 get_sec_size(pieces, IWL_UCODE_REGULAR, 1167 get_sec_size(pieces, IWL_UCODE_REGULAR,
1168 IWL_UCODE_SECTION_DATA)); 1168 IWL_UCODE_SECTION_DATA));
1169 return -1; 1169 return -1;
@@ -1171,7 +1171,7 @@ static int validate_sec_sizes(struct iwl_drv *drv,
1171 1171
1172 if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST) > 1172 if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_INST) >
1173 cfg->max_inst_size) { 1173 cfg->max_inst_size) {
1174 IWL_ERR(drv, "uCode init instr len %Zd too large to fit in\n", 1174 IWL_ERR(drv, "uCode init instr len %zd too large to fit in\n",
1175 get_sec_size(pieces, IWL_UCODE_INIT, 1175 get_sec_size(pieces, IWL_UCODE_INIT,
1176 IWL_UCODE_SECTION_INST)); 1176 IWL_UCODE_SECTION_INST));
1177 return -1; 1177 return -1;
@@ -1179,7 +1179,7 @@ static int validate_sec_sizes(struct iwl_drv *drv,
1179 1179
1180 if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA) > 1180 if (get_sec_size(pieces, IWL_UCODE_INIT, IWL_UCODE_SECTION_DATA) >
1181 cfg->max_data_size) { 1181 cfg->max_data_size) {
1182 IWL_ERR(drv, "uCode init data len %Zd too large to fit in\n", 1182 IWL_ERR(drv, "uCode init data len %zd too large to fit in\n",
1183 get_sec_size(pieces, IWL_UCODE_REGULAR, 1183 get_sec_size(pieces, IWL_UCODE_REGULAR,
1184 IWL_UCODE_SECTION_DATA)); 1184 IWL_UCODE_SECTION_DATA));
1185 return -1; 1185 return -1;
diff --git a/drivers/parport/ieee1284_ops.c b/drivers/parport/ieee1284_ops.c
index c0e7d21c88c2..75071605d22f 100644
--- a/drivers/parport/ieee1284_ops.c
+++ b/drivers/parport/ieee1284_ops.c
@@ -307,7 +307,7 @@ size_t parport_ieee1284_read_byte (struct parport *port,
307 if (parport_read_status (port) & PARPORT_STATUS_ERROR) { 307 if (parport_read_status (port) & PARPORT_STATUS_ERROR) {
308 end_of_data: 308 end_of_data:
309 DPRINTK (KERN_DEBUG 309 DPRINTK (KERN_DEBUG
310 "%s: No more byte data (%Zd bytes)\n", 310 "%s: No more byte data (%zd bytes)\n",
311 port->name, count); 311 port->name, count);
312 312
313 /* Go to reverse idle phase. */ 313 /* Go to reverse idle phase. */
diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c
index 42d481d024ec..6903f03c88af 100644
--- a/drivers/scsi/osd/osd_initiator.c
+++ b/drivers/scsi/osd/osd_initiator.c
@@ -1290,7 +1290,7 @@ int osd_req_add_get_attr_list(struct osd_request *or,
1290 or->enc_get_attr.total_bytes = total_bytes; 1290 or->enc_get_attr.total_bytes = total_bytes;
1291 1291
1292 OSD_DEBUG( 1292 OSD_DEBUG(
1293 "get_attr.total_bytes=%u(%u) enc_get_attr.total_bytes=%u(%Zu)\n", 1293 "get_attr.total_bytes=%u(%u) enc_get_attr.total_bytes=%u(%zu)\n",
1294 or->get_attr.total_bytes, 1294 or->get_attr.total_bytes,
1295 or->get_attr.total_bytes - _osd_req_sizeof_alist_header(or), 1295 or->get_attr.total_bytes - _osd_req_sizeof_alist_header(or),
1296 or->enc_get_attr.total_bytes, 1296 or->enc_get_attr.total_bytes,
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
index 451de6c5e3c9..75ac662793a3 100644
--- a/drivers/scsi/osst.c
+++ b/drivers/scsi/osst.c
@@ -3435,7 +3435,7 @@ static ssize_t osst_write(struct file * filp, const char __user * buf, size_t co
3435 3435
3436 /* Write must be integral number of blocks */ 3436 /* Write must be integral number of blocks */
3437 if (STp->block_size != 0 && (count % STp->block_size) != 0) { 3437 if (STp->block_size != 0 && (count % STp->block_size) != 0) {
3438 printk(KERN_ERR "%s:E: Write (%Zd bytes) not multiple of tape block size (%d%c).\n", 3438 printk(KERN_ERR "%s:E: Write (%zd bytes) not multiple of tape block size (%d%c).\n",
3439 name, count, STp->block_size<1024? 3439 name, count, STp->block_size<1024?
3440 STp->block_size:STp->block_size/1024, STp->block_size<1024?'b':'k'); 3440 STp->block_size:STp->block_size/1024, STp->block_size<1024?'b':'k');
3441 retval = (-EINVAL); 3441 retval = (-EINVAL);
@@ -3756,7 +3756,7 @@ static ssize_t osst_read(struct file * filp, char __user * buf, size_t count, lo
3756 3756
3757 if ((count % STp->block_size) != 0) { 3757 if ((count % STp->block_size) != 0) {
3758 printk(KERN_WARNING 3758 printk(KERN_WARNING
3759 "%s:W: Read (%Zd bytes) not multiple of tape block size (%d%c).\n", name, count, 3759 "%s:W: Read (%zd bytes) not multiple of tape block size (%d%c).\n", name, count,
3760 STp->block_size<1024?STp->block_size:STp->block_size/1024, STp->block_size<1024?'b':'k'); 3760 STp->block_size<1024?STp->block_size:STp->block_size/1024, STp->block_size<1024?'b':'k');
3761 } 3761 }
3762 3762
@@ -3815,7 +3815,7 @@ static ssize_t osst_read(struct file * filp, char __user * buf, size_t count, lo
3815 3815
3816 if (transfer == 0) { 3816 if (transfer == 0) {
3817 printk(KERN_WARNING 3817 printk(KERN_WARNING
3818 "%s:W: Nothing can be transferred, requested %Zd, tape block size (%d%c).\n", 3818 "%s:W: Nothing can be transferred, requested %zd, tape block size (%d%c).\n",
3819 name, count, STp->block_size < 1024? 3819 name, count, STp->block_size < 1024?
3820 STp->block_size:STp->block_size/1024, 3820 STp->block_size:STp->block_size/1024,
3821 STp->block_size<1024?'b':'k'); 3821 STp->block_size<1024?'b':'k');
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 7b6317c8c2e9..265e1395bdb8 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -5669,7 +5669,7 @@ qla2x00_load_risc(scsi_qla_host_t *vha, uint32_t *srisc_addr)
5669 /* Validate firmware image by checking version. */ 5669 /* Validate firmware image by checking version. */
5670 if (blob->fw->size < 8 * sizeof(uint16_t)) { 5670 if (blob->fw->size < 8 * sizeof(uint16_t)) {
5671 ql_log(ql_log_fatal, vha, 0x0085, 5671 ql_log(ql_log_fatal, vha, 0x0085,
5672 "Unable to verify integrity of firmware image (%Zd).\n", 5672 "Unable to verify integrity of firmware image (%zd).\n",
5673 blob->fw->size); 5673 blob->fw->size);
5674 goto fail_fw_integrity; 5674 goto fail_fw_integrity;
5675 } 5675 }
@@ -5697,7 +5697,7 @@ qla2x00_load_risc(scsi_qla_host_t *vha, uint32_t *srisc_addr)
5697 if (blob->fw->size < fwclen) { 5697 if (blob->fw->size < fwclen) {
5698 ql_log(ql_log_fatal, vha, 0x0088, 5698 ql_log(ql_log_fatal, vha, 0x0088,
5699 "Unable to verify integrity of firmware image " 5699 "Unable to verify integrity of firmware image "
5700 "(%Zd).\n", blob->fw->size); 5700 "(%zd).\n", blob->fw->size);
5701 goto fail_fw_integrity; 5701 goto fail_fw_integrity;
5702 } 5702 }
5703 5703
@@ -5778,7 +5778,7 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr)
5778 /* Validate firmware image by checking version. */ 5778 /* Validate firmware image by checking version. */
5779 if (blob->fw->size < 8 * sizeof(uint32_t)) { 5779 if (blob->fw->size < 8 * sizeof(uint32_t)) {
5780 ql_log(ql_log_fatal, vha, 0x0093, 5780 ql_log(ql_log_fatal, vha, 0x0093,
5781 "Unable to verify integrity of firmware image (%Zd).\n", 5781 "Unable to verify integrity of firmware image (%zd).\n",
5782 blob->fw->size); 5782 blob->fw->size);
5783 return QLA_FUNCTION_FAILED; 5783 return QLA_FUNCTION_FAILED;
5784 } 5784 }
@@ -5789,7 +5789,7 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr)
5789 (dcode[0] == 0 && dcode[1] == 0 && dcode[2] == 0 && 5789 (dcode[0] == 0 && dcode[1] == 0 && dcode[2] == 0 &&
5790 dcode[3] == 0)) { 5790 dcode[3] == 0)) {
5791 ql_log(ql_log_fatal, vha, 0x0094, 5791 ql_log(ql_log_fatal, vha, 0x0094,
5792 "Unable to verify integrity of firmware image (%Zd).\n", 5792 "Unable to verify integrity of firmware image (%zd).\n",
5793 blob->fw->size); 5793 blob->fw->size);
5794 ql_log(ql_log_fatal, vha, 0x0095, 5794 ql_log(ql_log_fatal, vha, 0x0095,
5795 "Firmware data: %08x %08x %08x %08x.\n", 5795 "Firmware data: %08x %08x %08x %08x.\n",
@@ -5807,7 +5807,7 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr)
5807 if (blob->fw->size < fwclen) { 5807 if (blob->fw->size < fwclen) {
5808 ql_log(ql_log_fatal, vha, 0x0096, 5808 ql_log(ql_log_fatal, vha, 0x0096,
5809 "Unable to verify integrity of firmware image " 5809 "Unable to verify integrity of firmware image "
5810 "(%Zd).\n", blob->fw->size); 5810 "(%zd).\n", blob->fw->size);
5811 return QLA_FUNCTION_FAILED; 5811 return QLA_FUNCTION_FAILED;
5812 } 5812 }
5813 5813
diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c
index eb278832f5ce..1bacbc3b19a0 100644
--- a/drivers/tty/n_hdlc.c
+++ b/drivers/tty/n_hdlc.c
@@ -667,7 +667,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,
667 struct n_hdlc_buf *tbuf; 667 struct n_hdlc_buf *tbuf;
668 668
669 if (debuglevel >= DEBUG_LEVEL_INFO) 669 if (debuglevel >= DEBUG_LEVEL_INFO)
670 printk("%s(%d)n_hdlc_tty_write() called count=%Zd\n", 670 printk("%s(%d)n_hdlc_tty_write() called count=%zd\n",
671 __FILE__,__LINE__,count); 671 __FILE__,__LINE__,count);
672 672
673 /* Verify pointers */ 673 /* Verify pointers */
diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c
index 6bde4396927c..a2615d64d07c 100644
--- a/drivers/usb/gadget/legacy/inode.c
+++ b/drivers/usb/gadget/legacy/inode.c
@@ -1848,7 +1848,7 @@ dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
1848 1848
1849fail: 1849fail:
1850 spin_unlock_irq (&dev->lock); 1850 spin_unlock_irq (&dev->lock);
1851 pr_debug ("%s: %s fail %Zd, %p\n", shortname, __func__, value, dev); 1851 pr_debug ("%s: %s fail %zd, %p\n", shortname, __func__, value, dev);
1852 kfree (dev->buf); 1852 kfree (dev->buf);
1853 dev->buf = NULL; 1853 dev->buf = NULL;
1854 return value; 1854 return value;
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 063064801ceb..ac2c4eab478d 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1322,7 +1322,7 @@ static int __init ehci_hcd_init(void)
1322 printk(KERN_WARNING "Warning! ehci_hcd should always be loaded" 1322 printk(KERN_WARNING "Warning! ehci_hcd should always be loaded"
1323 " before uhci_hcd and ohci_hcd, not after\n"); 1323 " before uhci_hcd and ohci_hcd, not after\n");
1324 1324
1325 pr_debug("%s: block sizes: qh %Zd qtd %Zd itd %Zd sitd %Zd\n", 1325 pr_debug("%s: block sizes: qh %zd qtd %zd itd %zd sitd %zd\n",
1326 hcd_name, 1326 hcd_name,
1327 sizeof(struct ehci_qh), sizeof(struct ehci_qtd), 1327 sizeof(struct ehci_qh), sizeof(struct ehci_qtd),
1328 sizeof(struct ehci_itd), sizeof(struct ehci_sitd)); 1328 sizeof(struct ehci_itd), sizeof(struct ehci_sitd));
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 9d0b0518290a..1c5b34b74860 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -5697,7 +5697,7 @@ static int __init fotg210_hcd_init(void)
5697 test_bit(USB_OHCI_LOADED, &usb_hcds_loaded)) 5697 test_bit(USB_OHCI_LOADED, &usb_hcds_loaded))
5698 pr_warn("Warning! fotg210_hcd should always be loaded before uhci_hcd and ohci_hcd, not after\n"); 5698 pr_warn("Warning! fotg210_hcd should always be loaded before uhci_hcd and ohci_hcd, not after\n");
5699 5699
5700 pr_debug("%s: block sizes: qh %Zd qtd %Zd itd %Zd\n", 5700 pr_debug("%s: block sizes: qh %zd qtd %zd itd %zd\n",
5701 hcd_name, sizeof(struct fotg210_qh), 5701 hcd_name, sizeof(struct fotg210_qh),
5702 sizeof(struct fotg210_qtd), 5702 sizeof(struct fotg210_qtd),
5703 sizeof(struct fotg210_itd)); 5703 sizeof(struct fotg210_itd));
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 8685cf3e6292..b6daf2e69989 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -1252,7 +1252,7 @@ static int __init ohci_hcd_mod_init(void)
1252 return -ENODEV; 1252 return -ENODEV;
1253 1253
1254 printk(KERN_INFO "%s: " DRIVER_DESC "\n", hcd_name); 1254 printk(KERN_INFO "%s: " DRIVER_DESC "\n", hcd_name);
1255 pr_debug ("%s: block sizes: ed %Zd td %Zd\n", hcd_name, 1255 pr_debug ("%s: block sizes: ed %zd td %zd\n", hcd_name,
1256 sizeof (struct ed), sizeof (struct td)); 1256 sizeof (struct ed), sizeof (struct td));
1257 set_bit(USB_OHCI_LOADED, &usb_hcds_loaded); 1257 set_bit(USB_OHCI_LOADED, &usb_hcds_loaded);
1258 1258
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index a540e4f206c4..c5fa584d8f0a 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -563,20 +563,20 @@ static ssize_t adu_write(struct file *file, const __user char *buffer,
563 } 563 }
564 564
565 dev_dbg(&dev->udev->dev, 565 dev_dbg(&dev->udev->dev,
566 "%s : in progress, count = %Zd\n", 566 "%s : in progress, count = %zd\n",
567 __func__, count); 567 __func__, count);
568 } else { 568 } else {
569 spin_unlock_irqrestore(&dev->buflock, flags); 569 spin_unlock_irqrestore(&dev->buflock, flags);
570 set_current_state(TASK_RUNNING); 570 set_current_state(TASK_RUNNING);
571 remove_wait_queue(&dev->write_wait, &waita); 571 remove_wait_queue(&dev->write_wait, &waita);
572 dev_dbg(&dev->udev->dev, "%s : sending, count = %Zd\n", 572 dev_dbg(&dev->udev->dev, "%s : sending, count = %zd\n",
573 __func__, count); 573 __func__, count);
574 574
575 /* write the data into interrupt_out_buffer from userspace */ 575 /* write the data into interrupt_out_buffer from userspace */
576 buffer_size = usb_endpoint_maxp(dev->interrupt_out_endpoint); 576 buffer_size = usb_endpoint_maxp(dev->interrupt_out_endpoint);
577 bytes_to_write = count > buffer_size ? buffer_size : count; 577 bytes_to_write = count > buffer_size ? buffer_size : count;
578 dev_dbg(&dev->udev->dev, 578 dev_dbg(&dev->udev->dev,
579 "%s : buffer_size = %Zd, count = %Zd, bytes_to_write = %Zd\n", 579 "%s : buffer_size = %zd, count = %zd, bytes_to_write = %zd\n",
580 __func__, buffer_size, count, bytes_to_write); 580 __func__, buffer_size, count, bytes_to_write);
581 581
582 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) { 582 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) {
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c
index b10e26c74a90..322a042d6e59 100644
--- a/drivers/usb/misc/legousbtower.c
+++ b/drivers/usb/misc/legousbtower.c
@@ -673,7 +673,7 @@ static ssize_t tower_write (struct file *file, const char __user *buffer, size_t
673 673
674 /* write the data into interrupt_out_buffer from userspace */ 674 /* write the data into interrupt_out_buffer from userspace */
675 bytes_to_write = min_t(int, count, write_buffer_size); 675 bytes_to_write = min_t(int, count, write_buffer_size);
676 dev_dbg(&dev->udev->dev, "%s: count = %Zd, bytes_to_write = %Zd\n", 676 dev_dbg(&dev->udev->dev, "%s: count = %zd, bytes_to_write = %zd\n",
677 __func__, count, bytes_to_write); 677 __func__, count, bytes_to_write);
678 678
679 if (copy_from_user (dev->interrupt_out_buffer, buffer, bytes_to_write)) { 679 if (copy_from_user (dev->interrupt_out_buffer, buffer, bytes_to_write)) {
diff --git a/drivers/usb/misc/uss720.c b/drivers/usb/misc/uss720.c
index 356d312add57..0a643fa74cab 100644
--- a/drivers/usb/misc/uss720.c
+++ b/drivers/usb/misc/uss720.c
@@ -526,7 +526,7 @@ static size_t parport_uss720_epp_write_data(struct parport *pp, const void *buf,
526 return 0; 526 return 0;
527 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buf, length, &rlen, 20000); 527 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buf, length, &rlen, 20000);
528 if (i) 528 if (i)
529 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %Zu rlen %u\n", buf, length, rlen); 529 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buf, length, rlen);
530 change_mode(pp, ECR_PS2); 530 change_mode(pp, ECR_PS2);
531 return rlen; 531 return rlen;
532#endif 532#endif
@@ -587,7 +587,7 @@ static size_t parport_uss720_ecp_write_data(struct parport *pp, const void *buff
587 return 0; 587 return 0;
588 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000); 588 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000);
589 if (i) 589 if (i)
590 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %Zu rlen %u\n", buffer, len, rlen); 590 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buffer, len, rlen);
591 change_mode(pp, ECR_PS2); 591 change_mode(pp, ECR_PS2);
592 return rlen; 592 return rlen;
593} 593}
@@ -605,7 +605,7 @@ static size_t parport_uss720_ecp_read_data(struct parport *pp, void *buffer, siz
605 return 0; 605 return 0;
606 i = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), buffer, len, &rlen, 20000); 606 i = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), buffer, len, &rlen, 20000);
607 if (i) 607 if (i)
608 printk(KERN_ERR "uss720: recvbulk ep 2 buf %p len %Zu rlen %u\n", buffer, len, rlen); 608 printk(KERN_ERR "uss720: recvbulk ep 2 buf %p len %zu rlen %u\n", buffer, len, rlen);
609 change_mode(pp, ECR_PS2); 609 change_mode(pp, ECR_PS2);
610 return rlen; 610 return rlen;
611} 611}
@@ -638,7 +638,7 @@ static size_t parport_uss720_write_compat(struct parport *pp, const void *buffer
638 return 0; 638 return 0;
639 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000); 639 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000);
640 if (i) 640 if (i)
641 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %Zu rlen %u\n", buffer, len, rlen); 641 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buffer, len, rlen);
642 change_mode(pp, ECR_PS2); 642 change_mode(pp, ECR_PS2);
643 return rlen; 643 return rlen;
644} 644}
diff --git a/drivers/video/fbdev/metronomefb.c b/drivers/video/fbdev/metronomefb.c
index abb6bbf226d5..9085e9525341 100644
--- a/drivers/video/fbdev/metronomefb.c
+++ b/drivers/video/fbdev/metronomefb.c
@@ -187,7 +187,7 @@ static int load_waveform(u8 *mem, size_t size, int m, int t,
187 epd_frame_table[par->dt].wfm_size = user_wfm_size; 187 epd_frame_table[par->dt].wfm_size = user_wfm_size;
188 188
189 if (size != epd_frame_table[par->dt].wfm_size) { 189 if (size != epd_frame_table[par->dt].wfm_size) {
190 dev_err(dev, "Error: unexpected size %Zd != %d\n", size, 190 dev_err(dev, "Error: unexpected size %zd != %d\n", size,
191 epd_frame_table[par->dt].wfm_size); 191 epd_frame_table[par->dt].wfm_size);
192 return -EINVAL; 192 return -EINVAL;
193 } 193 }