aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-28 02:09:29 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-28 02:09:29 -0500
commit86292b33d4b79ee03e2f43ea0381ef85f077c760 (patch)
treeb69a6ffd8ec5ac01599d351205a96804b9c415da /net
parent1ac884f173d4842216f6a24c03c9833e3ce6e982 (diff)
parent3e761a42e19c63b624ebac94d918d8a15e07e2a7 (diff)
Merge branch 'akpm' (patches from Andrew)
Merge yet more updates from Andrew Morton: - a few MM remainders - misc things - autofs updates - signals - affs updates - ipc - nilfs2 - spelling.txt updates * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (78 commits) mm, x86: fix HIGHMEM64 && PARAVIRT build config for native_pud_clear() mm: add arch-independent testcases for RODATA hfs: atomically read inode size mm: clarify mm_struct.mm_{users,count} documentation mm: use mmget_not_zero() helper mm: add new mmget() helper mm: add new mmgrab() helper checkpatch: warn when formats use %Z and suggest %z lib/vsprintf.c: remove %Z support scripts/spelling.txt: add some typo-words scripts/spelling.txt: add "followings" pattern and fix typo instances scripts/spelling.txt: add "therfore" pattern and fix typo instances scripts/spelling.txt: add "overwriten" pattern and fix typo instances scripts/spelling.txt: add "overwritting" pattern and fix typo instances scripts/spelling.txt: add "deintialize(d)" pattern and fix typo instances scripts/spelling.txt: add "disassocation" pattern and fix typo instances scripts/spelling.txt: add "omited" pattern and fix typo instances scripts/spelling.txt: add "explictely" pattern and fix typo instances scripts/spelling.txt: add "applys" pattern and fix typo instances scripts/spelling.txt: add "configuartion" pattern and fix typo instances ...
Diffstat (limited to 'net')
-rw-r--r--net/appletalk/ddp.c4
-rw-r--r--net/atm/mpc.c2
-rw-r--r--net/bluetooth/hci_sock.c6
-rw-r--r--net/bridge/netfilter/ebt_among.c2
-rw-r--r--net/ieee802154/socket.c4
-rw-r--r--net/ipv4/fib_trie.c2
-rw-r--r--net/ipv4/ipmr.c2
-rw-r--r--net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c2
-rw-r--r--net/ipv4/netfilter/nf_log_arp.c2
-rw-r--r--net/ipv6/netfilter/nf_log_ipv6.c2
-rw-r--r--net/irda/irnet/irnet_ppp.c12
-rw-r--r--net/l2tp/l2tp_core.c4
-rw-r--r--net/mac80211/mesh.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_conn.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_dh.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_lblc.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_lblcr.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_sh.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_sync.c2
-rw-r--r--net/netfilter/nf_conntrack_ftp.c2
-rw-r--r--net/netfilter/nfnetlink_cthelper.c2
-rw-r--r--net/netfilter/x_tables.c2
-rw-r--r--net/sctp/output.c2
-rw-r--r--net/sctp/transport.c4
-rw-r--r--net/sunrpc/auth_gss/auth_gss.c2
-rw-r--r--net/sunrpc/svc.c2
-rw-r--r--net/sunrpc/svcsock.c4
-rw-r--r--net/sunrpc/xprtsock.c8
28 files changed, 46 insertions, 48 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 10d2bdce686e..465cc24b41e5 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -1656,7 +1656,7 @@ static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
1656 ddp->deh_dport = usat->sat_port; 1656 ddp->deh_dport = usat->sat_port;
1657 ddp->deh_sport = at->src_port; 1657 ddp->deh_sport = at->src_port;
1658 1658
1659 SOCK_DEBUG(sk, "SK %p: Copy user data (%Zd bytes).\n", sk, len); 1659 SOCK_DEBUG(sk, "SK %p: Copy user data (%zd bytes).\n", sk, len);
1660 1660
1661 err = memcpy_from_msg(skb_put(skb, len), msg, len); 1661 err = memcpy_from_msg(skb_put(skb, len), msg, len);
1662 if (err) { 1662 if (err) {
@@ -1720,7 +1720,7 @@ static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
1720 */ 1720 */
1721 aarp_send_ddp(dev, skb, &usat->sat_addr, NULL); 1721 aarp_send_ddp(dev, skb, &usat->sat_addr, NULL);
1722 } 1722 }
1723 SOCK_DEBUG(sk, "SK %p: Done write (%Zd).\n", sk, len); 1723 SOCK_DEBUG(sk, "SK %p: Done write (%zd).\n", sk, len);
1724 1724
1725out: 1725out:
1726 release_sock(sk); 1726 release_sock(sk);
diff --git a/net/atm/mpc.c b/net/atm/mpc.c
index 3b3b1a292ec8..a190800572bd 100644
--- a/net/atm/mpc.c
+++ b/net/atm/mpc.c
@@ -451,7 +451,7 @@ static void lane2_assoc_ind(struct net_device *dev, const u8 *mac_addr,
451 return; 451 return;
452 } 452 }
453 if (end_of_tlvs - tlvs != 0) 453 if (end_of_tlvs - tlvs != 0)
454 pr_info("(%s) ignoring %Zd bytes of trailing TLV garbage\n", 454 pr_info("(%s) ignoring %zd bytes of trailing TLV garbage\n",
455 dev->name, end_of_tlvs - tlvs); 455 dev->name, end_of_tlvs - tlvs);
456} 456}
457 457
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 48f9471e7c85..f64d6566021f 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -851,7 +851,7 @@ static int hci_sock_release(struct socket *sock)
851 851
852 if (hdev) { 852 if (hdev) {
853 if (hci_pi(sk)->channel == HCI_CHANNEL_USER) { 853 if (hci_pi(sk)->channel == HCI_CHANNEL_USER) {
854 /* When releasing an user channel exclusive access, 854 /* When releasing a user channel exclusive access,
855 * call hci_dev_do_close directly instead of calling 855 * call hci_dev_do_close directly instead of calling
856 * hci_dev_close to ensure the exclusive access will 856 * hci_dev_close to ensure the exclusive access will
857 * be released and the controller brought back down. 857 * be released and the controller brought back down.
@@ -1172,7 +1172,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
1172 /* In case the transport is already up and 1172 /* In case the transport is already up and
1173 * running, clear the error here. 1173 * running, clear the error here.
1174 * 1174 *
1175 * This can happen when opening an user 1175 * This can happen when opening a user
1176 * channel and HCI_AUTO_OFF grace period 1176 * channel and HCI_AUTO_OFF grace period
1177 * is still active. 1177 * is still active.
1178 */ 1178 */
@@ -1190,7 +1190,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
1190 if (!hci_sock_gen_cookie(sk)) { 1190 if (!hci_sock_gen_cookie(sk)) {
1191 /* In the case when a cookie has already been assigned, 1191 /* In the case when a cookie has already been assigned,
1192 * this socket will transition from a raw socket into 1192 * this socket will transition from a raw socket into
1193 * an user channel socket. For a clean transition, send 1193 * a user channel socket. For a clean transition, send
1194 * the close notification first. 1194 * the close notification first.
1195 */ 1195 */
1196 skb = create_monitor_ctrl_close(sk); 1196 skb = create_monitor_ctrl_close(sk);
diff --git a/net/bridge/netfilter/ebt_among.c b/net/bridge/netfilter/ebt_among.c
index 9024283d2bca..279527f8b1fe 100644
--- a/net/bridge/netfilter/ebt_among.c
+++ b/net/bridge/netfilter/ebt_among.c
@@ -187,7 +187,7 @@ static int ebt_among_mt_check(const struct xt_mtchk_param *par)
187 expected_length += ebt_mac_wormhash_size(wh_src); 187 expected_length += ebt_mac_wormhash_size(wh_src);
188 188
189 if (em->match_size != EBT_ALIGN(expected_length)) { 189 if (em->match_size != EBT_ALIGN(expected_length)) {
190 pr_info("wrong size: %d against expected %d, rounded to %Zd\n", 190 pr_info("wrong size: %d against expected %d, rounded to %zd\n",
191 em->match_size, expected_length, 191 em->match_size, expected_length,
192 EBT_ALIGN(expected_length)); 192 EBT_ALIGN(expected_length));
193 return -EINVAL; 193 return -EINVAL;
diff --git a/net/ieee802154/socket.c b/net/ieee802154/socket.c
index e0bd013a1e5e..eedba7670b51 100644
--- a/net/ieee802154/socket.c
+++ b/net/ieee802154/socket.c
@@ -279,7 +279,7 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
279 pr_debug("name = %s, mtu = %u\n", dev->name, mtu); 279 pr_debug("name = %s, mtu = %u\n", dev->name, mtu);
280 280
281 if (size > mtu) { 281 if (size > mtu) {
282 pr_debug("size = %Zu, mtu = %u\n", size, mtu); 282 pr_debug("size = %zu, mtu = %u\n", size, mtu);
283 err = -EMSGSIZE; 283 err = -EMSGSIZE;
284 goto out_dev; 284 goto out_dev;
285 } 285 }
@@ -645,7 +645,7 @@ static int dgram_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
645 pr_debug("name = %s, mtu = %u\n", dev->name, mtu); 645 pr_debug("name = %s, mtu = %u\n", dev->name, mtu);
646 646
647 if (size > mtu) { 647 if (size > mtu) {
648 pr_debug("size = %Zu, mtu = %u\n", size, mtu); 648 pr_debug("size = %zu, mtu = %u\n", size, mtu);
649 err = -EMSGSIZE; 649 err = -EMSGSIZE;
650 goto out_dev; 650 goto out_dev;
651 } 651 }
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index d8cea210af0e..2f0d8233950f 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2388,7 +2388,7 @@ static int fib_triestat_seq_show(struct seq_file *seq, void *v)
2388 2388
2389 seq_printf(seq, 2389 seq_printf(seq,
2390 "Basic info: size of leaf:" 2390 "Basic info: size of leaf:"
2391 " %Zd bytes, size of tnode: %Zd bytes.\n", 2391 " %zd bytes, size of tnode: %zd bytes.\n",
2392 LEAF_SIZE, TNODE_SIZE(0)); 2392 LEAF_SIZE, TNODE_SIZE(0));
2393 2393
2394 for (h = 0; h < FIB_TABLE_HASHSZ; h++) { 2394 for (h = 0; h < FIB_TABLE_HASHSZ; h++) {
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index beacd028848c..c0317c940bcd 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -2596,7 +2596,7 @@ static int ipmr_vif_seq_show(struct seq_file *seq, void *v)
2596 const char *name = vif->dev ? vif->dev->name : "none"; 2596 const char *name = vif->dev ? vif->dev->name : "none";
2597 2597
2598 seq_printf(seq, 2598 seq_printf(seq,
2599 "%2Zd %-10s %8ld %7ld %8ld %7ld %05X %08X %08X\n", 2599 "%2zd %-10s %8ld %7ld %8ld %7ld %05X %08X %08X\n",
2600 vif - mrt->vif_table, 2600 vif - mrt->vif_table,
2601 name, vif->bytes_in, vif->pkt_in, 2601 name, vif->bytes_in, vif->pkt_in,
2602 vif->bytes_out, vif->pkt_out, 2602 vif->bytes_out, vif->pkt_out,
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
index fcfd071f4705..bc1486f2c064 100644
--- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
+++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
@@ -235,7 +235,7 @@ getorigdst(struct sock *sk, int optval, void __user *user, int *len)
235 } 235 }
236 236
237 if ((unsigned int) *len < sizeof(struct sockaddr_in)) { 237 if ((unsigned int) *len < sizeof(struct sockaddr_in)) {
238 pr_debug("SO_ORIGINAL_DST: len %d not %Zu\n", 238 pr_debug("SO_ORIGINAL_DST: len %d not %zu\n",
239 *len, sizeof(struct sockaddr_in)); 239 *len, sizeof(struct sockaddr_in));
240 return -EINVAL; 240 return -EINVAL;
241 } 241 }
diff --git a/net/ipv4/netfilter/nf_log_arp.c b/net/ipv4/netfilter/nf_log_arp.c
index f6f713376e6e..2f3895ddc275 100644
--- a/net/ipv4/netfilter/nf_log_arp.c
+++ b/net/ipv4/netfilter/nf_log_arp.c
@@ -69,7 +69,7 @@ static void dump_arp_packet(struct nf_log_buf *m,
69 69
70 ap = skb_header_pointer(skb, sizeof(_arph), sizeof(_arpp), &_arpp); 70 ap = skb_header_pointer(skb, sizeof(_arph), sizeof(_arpp), &_arpp);
71 if (ap == NULL) { 71 if (ap == NULL) {
72 nf_log_buf_add(m, " INCOMPLETE [%Zu bytes]", 72 nf_log_buf_add(m, " INCOMPLETE [%zu bytes]",
73 skb->len - sizeof(_arph)); 73 skb->len - sizeof(_arph));
74 return; 74 return;
75 } 75 }
diff --git a/net/ipv6/netfilter/nf_log_ipv6.c b/net/ipv6/netfilter/nf_log_ipv6.c
index 055c51b80f5d..97c724224da7 100644
--- a/net/ipv6/netfilter/nf_log_ipv6.c
+++ b/net/ipv6/netfilter/nf_log_ipv6.c
@@ -64,7 +64,7 @@ static void dump_ipv6_packet(struct nf_log_buf *m,
64 nf_log_buf_add(m, "SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr); 64 nf_log_buf_add(m, "SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr);
65 65
66 /* Max length: 44 "LEN=65535 TC=255 HOPLIMIT=255 FLOWLBL=FFFFF " */ 66 /* Max length: 44 "LEN=65535 TC=255 HOPLIMIT=255 FLOWLBL=FFFFF " */
67 nf_log_buf_add(m, "LEN=%Zu TC=%u HOPLIMIT=%u FLOWLBL=%u ", 67 nf_log_buf_add(m, "LEN=%zu TC=%u HOPLIMIT=%u FLOWLBL=%u ",
68 ntohs(ih->payload_len) + sizeof(struct ipv6hdr), 68 ntohs(ih->payload_len) + sizeof(struct ipv6hdr),
69 (ntohl(*(__be32 *)ih) & 0x0ff00000) >> 20, 69 (ntohl(*(__be32 *)ih) & 0x0ff00000) >> 20,
70 ih->hop_limit, 70 ih->hop_limit,
diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c
index 1215693fdd22..35dbf3dc3d28 100644
--- a/net/irda/irnet/irnet_ppp.c
+++ b/net/irda/irnet/irnet_ppp.c
@@ -51,7 +51,7 @@ irnet_ctrl_write(irnet_socket * ap,
51 char * next; /* Next command to process */ 51 char * next; /* Next command to process */
52 int length; /* Length of current command */ 52 int length; /* Length of current command */
53 53
54 DENTER(CTRL_TRACE, "(ap=0x%p, count=%Zd)\n", ap, count); 54 DENTER(CTRL_TRACE, "(ap=0x%p, count=%zd)\n", ap, count);
55 55
56 /* Check for overflow... */ 56 /* Check for overflow... */
57 DABORT(count >= IRNET_MAX_COMMAND, -ENOMEM, 57 DABORT(count >= IRNET_MAX_COMMAND, -ENOMEM,
@@ -66,7 +66,7 @@ irnet_ctrl_write(irnet_socket * ap,
66 66
67 /* Safe terminate the string */ 67 /* Safe terminate the string */
68 command[count] = '\0'; 68 command[count] = '\0';
69 DEBUG(CTRL_INFO, "Command line received is ``%s'' (%Zd).\n", 69 DEBUG(CTRL_INFO, "Command line received is ``%s'' (%zd).\n",
70 command, count); 70 command, count);
71 71
72 /* Check every commands in the command line */ 72 /* Check every commands in the command line */
@@ -285,7 +285,7 @@ irnet_ctrl_read(irnet_socket * ap,
285 char event[75]; 285 char event[75];
286 ssize_t ret = 0; 286 ssize_t ret = 0;
287 287
288 DENTER(CTRL_TRACE, "(ap=0x%p, count=%Zd)\n", ap, count); 288 DENTER(CTRL_TRACE, "(ap=0x%p, count=%zd)\n", ap, count);
289 289
290#ifdef INITIAL_DISCOVERY 290#ifdef INITIAL_DISCOVERY
291 /* Check if we have read the log */ 291 /* Check if we have read the log */
@@ -328,7 +328,7 @@ irnet_ctrl_read(irnet_socket * ap,
328 if(ret != 0) 328 if(ret != 0)
329 { 329 {
330 /* No, return the error code */ 330 /* No, return the error code */
331 DEXIT(CTRL_TRACE, " - ret %Zd\n", ret); 331 DEXIT(CTRL_TRACE, " - ret %zd\n", ret);
332 return ret; 332 return ret;
333 } 333 }
334 334
@@ -568,7 +568,7 @@ dev_irnet_write(struct file * file,
568{ 568{
569 irnet_socket * ap = file->private_data; 569 irnet_socket * ap = file->private_data;
570 570
571 DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%Zd)\n", 571 DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%zd)\n",
572 file, ap, count); 572 file, ap, count);
573 DABORT(ap == NULL, -ENXIO, FS_ERROR, "ap is NULL !!!\n"); 573 DABORT(ap == NULL, -ENXIO, FS_ERROR, "ap is NULL !!!\n");
574 574
@@ -592,7 +592,7 @@ dev_irnet_read(struct file * file,
592{ 592{
593 irnet_socket * ap = file->private_data; 593 irnet_socket * ap = file->private_data;
594 594
595 DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%Zd)\n", 595 DPASS(FS_TRACE, "(file=0x%p, ap=0x%p, count=%zd)\n",
596 file, ap, count); 596 file, ap, count);
597 DABORT(ap == NULL, -ENXIO, FS_ERROR, "ap is NULL !!!\n"); 597 DABORT(ap == NULL, -ENXIO, FS_ERROR, "ap is NULL !!!\n");
598 598
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
index b58000efee73..8adab6335ced 100644
--- a/net/l2tp/l2tp_core.c
+++ b/net/l2tp/l2tp_core.c
@@ -1058,10 +1058,10 @@ static int l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
1058 1058
1059 /* Debug */ 1059 /* Debug */
1060 if (session->send_seq) 1060 if (session->send_seq)
1061 l2tp_dbg(session, L2TP_MSG_DATA, "%s: send %Zd bytes, ns=%u\n", 1061 l2tp_dbg(session, L2TP_MSG_DATA, "%s: send %zd bytes, ns=%u\n",
1062 session->name, data_len, session->ns - 1); 1062 session->name, data_len, session->ns - 1);
1063 else 1063 else
1064 l2tp_dbg(session, L2TP_MSG_DATA, "%s: send %Zd bytes\n", 1064 l2tp_dbg(session, L2TP_MSG_DATA, "%s: send %zd bytes\n",
1065 session->name, data_len); 1065 session->name, data_len);
1066 1066
1067 if (session->debug & L2TP_MSG_DATA) { 1067 if (session->debug & L2TP_MSG_DATA) {
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index c28b0af9c1f2..6e7b6a07b7d5 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -681,7 +681,7 @@ ieee80211_mesh_build_beacon(struct ieee80211_if_mesh *ifmsh)
681 2 + /* NULL SSID */ 681 2 + /* NULL SSID */
682 /* Channel Switch Announcement */ 682 /* Channel Switch Announcement */
683 2 + sizeof(struct ieee80211_channel_sw_ie) + 683 2 + sizeof(struct ieee80211_channel_sw_ie) +
684 /* Mesh Channel Swith Parameters */ 684 /* Mesh Channel Switch Parameters */
685 2 + sizeof(struct ieee80211_mesh_chansw_params_ie) + 685 2 + sizeof(struct ieee80211_mesh_chansw_params_ie) +
686 2 + 8 + /* supported rates */ 686 2 + 8 + /* supported rates */
687 2 + 3; /* DS params */ 687 2 + 3; /* DS params */
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
index 096a45103f14..e6a2753dff9e 100644
--- a/net/netfilter/ipvs/ip_vs_conn.c
+++ b/net/netfilter/ipvs/ip_vs_conn.c
@@ -1429,7 +1429,7 @@ int __init ip_vs_conn_init(void)
1429 "(size=%d, memory=%ldKbytes)\n", 1429 "(size=%d, memory=%ldKbytes)\n",
1430 ip_vs_conn_tab_size, 1430 ip_vs_conn_tab_size,
1431 (long)(ip_vs_conn_tab_size*sizeof(struct list_head))/1024); 1431 (long)(ip_vs_conn_tab_size*sizeof(struct list_head))/1024);
1432 IP_VS_DBG(0, "Each connection entry needs %Zd bytes at least\n", 1432 IP_VS_DBG(0, "Each connection entry needs %zd bytes at least\n",
1433 sizeof(struct ip_vs_conn)); 1433 sizeof(struct ip_vs_conn));
1434 1434
1435 for (idx = 0; idx < ip_vs_conn_tab_size; idx++) 1435 for (idx = 0; idx < ip_vs_conn_tab_size; idx++)
diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c
index 6be5c538b71e..75f798f8e83b 100644
--- a/net/netfilter/ipvs/ip_vs_dh.c
+++ b/net/netfilter/ipvs/ip_vs_dh.c
@@ -163,7 +163,7 @@ static int ip_vs_dh_init_svc(struct ip_vs_service *svc)
163 return -ENOMEM; 163 return -ENOMEM;
164 164
165 svc->sched_data = s; 165 svc->sched_data = s;
166 IP_VS_DBG(6, "DH hash table (memory=%Zdbytes) allocated for " 166 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) allocated for "
167 "current service\n", 167 "current service\n",
168 sizeof(struct ip_vs_dh_bucket)*IP_VS_DH_TAB_SIZE); 168 sizeof(struct ip_vs_dh_bucket)*IP_VS_DH_TAB_SIZE);
169 169
@@ -183,7 +183,7 @@ static void ip_vs_dh_done_svc(struct ip_vs_service *svc)
183 183
184 /* release the table itself */ 184 /* release the table itself */
185 kfree_rcu(s, rcu_head); 185 kfree_rcu(s, rcu_head);
186 IP_VS_DBG(6, "DH hash table (memory=%Zdbytes) released\n", 186 IP_VS_DBG(6, "DH hash table (memory=%zdbytes) released\n",
187 sizeof(struct ip_vs_dh_bucket)*IP_VS_DH_TAB_SIZE); 187 sizeof(struct ip_vs_dh_bucket)*IP_VS_DH_TAB_SIZE);
188} 188}
189 189
diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c
index cccf4d637412..5824927cf8e0 100644
--- a/net/netfilter/ipvs/ip_vs_lblc.c
+++ b/net/netfilter/ipvs/ip_vs_lblc.c
@@ -356,7 +356,7 @@ static int ip_vs_lblc_init_svc(struct ip_vs_service *svc)
356 return -ENOMEM; 356 return -ENOMEM;
357 357
358 svc->sched_data = tbl; 358 svc->sched_data = tbl;
359 IP_VS_DBG(6, "LBLC hash table (memory=%Zdbytes) allocated for " 359 IP_VS_DBG(6, "LBLC hash table (memory=%zdbytes) allocated for "
360 "current service\n", sizeof(*tbl)); 360 "current service\n", sizeof(*tbl));
361 361
362 /* 362 /*
@@ -393,7 +393,7 @@ static void ip_vs_lblc_done_svc(struct ip_vs_service *svc)
393 393
394 /* release the table itself */ 394 /* release the table itself */
395 kfree_rcu(tbl, rcu_head); 395 kfree_rcu(tbl, rcu_head);
396 IP_VS_DBG(6, "LBLC hash table (memory=%Zdbytes) released\n", 396 IP_VS_DBG(6, "LBLC hash table (memory=%zdbytes) released\n",
397 sizeof(*tbl)); 397 sizeof(*tbl));
398} 398}
399 399
diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c
index 796d70e47ddd..703f11877bee 100644
--- a/net/netfilter/ipvs/ip_vs_lblcr.c
+++ b/net/netfilter/ipvs/ip_vs_lblcr.c
@@ -519,7 +519,7 @@ static int ip_vs_lblcr_init_svc(struct ip_vs_service *svc)
519 return -ENOMEM; 519 return -ENOMEM;
520 520
521 svc->sched_data = tbl; 521 svc->sched_data = tbl;
522 IP_VS_DBG(6, "LBLCR hash table (memory=%Zdbytes) allocated for " 522 IP_VS_DBG(6, "LBLCR hash table (memory=%zdbytes) allocated for "
523 "current service\n", sizeof(*tbl)); 523 "current service\n", sizeof(*tbl));
524 524
525 /* 525 /*
@@ -556,7 +556,7 @@ static void ip_vs_lblcr_done_svc(struct ip_vs_service *svc)
556 556
557 /* release the table itself */ 557 /* release the table itself */
558 kfree_rcu(tbl, rcu_head); 558 kfree_rcu(tbl, rcu_head);
559 IP_VS_DBG(6, "LBLCR hash table (memory=%Zdbytes) released\n", 559 IP_VS_DBG(6, "LBLCR hash table (memory=%zdbytes) released\n",
560 sizeof(*tbl)); 560 sizeof(*tbl));
561} 561}
562 562
diff --git a/net/netfilter/ipvs/ip_vs_sh.c b/net/netfilter/ipvs/ip_vs_sh.c
index 1e373a5e44e3..16aaac6eedc9 100644
--- a/net/netfilter/ipvs/ip_vs_sh.c
+++ b/net/netfilter/ipvs/ip_vs_sh.c
@@ -239,7 +239,7 @@ static int ip_vs_sh_init_svc(struct ip_vs_service *svc)
239 return -ENOMEM; 239 return -ENOMEM;
240 240
241 svc->sched_data = s; 241 svc->sched_data = s;
242 IP_VS_DBG(6, "SH hash table (memory=%Zdbytes) allocated for " 242 IP_VS_DBG(6, "SH hash table (memory=%zdbytes) allocated for "
243 "current service\n", 243 "current service\n",
244 sizeof(struct ip_vs_sh_bucket)*IP_VS_SH_TAB_SIZE); 244 sizeof(struct ip_vs_sh_bucket)*IP_VS_SH_TAB_SIZE);
245 245
@@ -259,7 +259,7 @@ static void ip_vs_sh_done_svc(struct ip_vs_service *svc)
259 259
260 /* release the table itself */ 260 /* release the table itself */
261 kfree_rcu(s, rcu_head); 261 kfree_rcu(s, rcu_head);
262 IP_VS_DBG(6, "SH hash table (memory=%Zdbytes) released\n", 262 IP_VS_DBG(6, "SH hash table (memory=%zdbytes) released\n",
263 sizeof(struct ip_vs_sh_bucket)*IP_VS_SH_TAB_SIZE); 263 sizeof(struct ip_vs_sh_bucket)*IP_VS_SH_TAB_SIZE);
264} 264}
265 265
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index 9350530c16c1..b03c28084f81 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -1791,7 +1791,7 @@ int start_sync_thread(struct netns_ipvs *ipvs, struct ipvs_sync_daemon_cfg *c,
1791 u16 mtu, min_mtu; 1791 u16 mtu, min_mtu;
1792 1792
1793 IP_VS_DBG(7, "%s(): pid %d\n", __func__, task_pid_nr(current)); 1793 IP_VS_DBG(7, "%s(): pid %d\n", __func__, task_pid_nr(current));
1794 IP_VS_DBG(7, "Each ip_vs_sync_conn entry needs %Zd bytes\n", 1794 IP_VS_DBG(7, "Each ip_vs_sync_conn entry needs %zd bytes\n",
1795 sizeof(struct ip_vs_sync_conn_v0)); 1795 sizeof(struct ip_vs_sync_conn_v0));
1796 1796
1797 if (!ipvs->sync_state) { 1797 if (!ipvs->sync_state) {
diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_ftp.c
index e3ed20060878..4aecef4a89fb 100644
--- a/net/netfilter/nf_conntrack_ftp.c
+++ b/net/netfilter/nf_conntrack_ftp.c
@@ -300,7 +300,7 @@ static int find_pattern(const char *data, size_t dlen,
300{ 300{
301 size_t i = plen; 301 size_t i = plen;
302 302
303 pr_debug("find_pattern `%s': dlen = %Zu\n", pattern, dlen); 303 pr_debug("find_pattern `%s': dlen = %zu\n", pattern, dlen);
304 304
305 if (dlen <= plen) { 305 if (dlen <= plen) {
306 /* Short packet: try for partial? */ 306 /* Short packet: try for partial? */
diff --git a/net/netfilter/nfnetlink_cthelper.c b/net/netfilter/nfnetlink_cthelper.c
index 3b79f34b5095..de8782345c86 100644
--- a/net/netfilter/nfnetlink_cthelper.c
+++ b/net/netfilter/nfnetlink_cthelper.c
@@ -48,7 +48,7 @@ nfnl_userspace_cthelper(struct sk_buff *skb, unsigned int protoff,
48 if (helper == NULL) 48 if (helper == NULL)
49 return NF_DROP; 49 return NF_DROP;
50 50
51 /* This is an user-space helper not yet configured, skip. */ 51 /* This is a user-space helper not yet configured, skip. */
52 if ((helper->flags & 52 if ((helper->flags &
53 (NF_CT_HELPER_F_USERSPACE | NF_CT_HELPER_F_CONFIGURED)) == 53 (NF_CT_HELPER_F_USERSPACE | NF_CT_HELPER_F_CONFIGURED)) ==
54 NF_CT_HELPER_F_USERSPACE) 54 NF_CT_HELPER_F_USERSPACE)
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
index 016db6be94b9..14857afc9937 100644
--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -667,7 +667,7 @@ int xt_compat_check_entry_offsets(const void *base, const char *elems,
667 COMPAT_XT_ALIGN(target_offset + sizeof(struct compat_xt_standard_target)) != next_offset) 667 COMPAT_XT_ALIGN(target_offset + sizeof(struct compat_xt_standard_target)) != next_offset)
668 return -EINVAL; 668 return -EINVAL;
669 669
670 /* compat_xt_entry match has less strict aligment requirements, 670 /* compat_xt_entry match has less strict alignment requirements,
671 * otherwise they are identical. In case of padding differences 671 * otherwise they are identical. In case of padding differences
672 * we need to add compat version of xt_check_entry_match. 672 * we need to add compat version of xt_check_entry_match.
673 */ 673 */
diff --git a/net/sctp/output.c b/net/sctp/output.c
index 85406d5f8f41..71ce6b945dcb 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -177,7 +177,7 @@ sctp_xmit_t sctp_packet_transmit_chunk(struct sctp_packet *packet,
177{ 177{
178 sctp_xmit_t retval; 178 sctp_xmit_t retval;
179 179
180 pr_debug("%s: packet:%p size:%Zu chunk:%p size:%d\n", __func__, 180 pr_debug("%s: packet:%p size:%zu chunk:%p size:%d\n", __func__,
181 packet, packet->size, chunk, chunk->skb ? chunk->skb->len : -1); 181 packet, packet->size, chunk, chunk->skb ? chunk->skb->len : -1);
182 182
183 switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) { 183 switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) {
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index 5b63ceb3bf37..3379668af368 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -643,9 +643,7 @@ void sctp_transport_reset(struct sctp_transport *t)
643 t->srtt = 0; 643 t->srtt = 0;
644 t->rttvar = 0; 644 t->rttvar = 0;
645 645
646 /* Reset these additional varibles so that we have a clean 646 /* Reset these additional variables so that we have a clean slate. */
647 * slate.
648 */
649 t->partial_bytes_acked = 0; 647 t->partial_bytes_acked = 0;
650 t->flight_size = 0; 648 t->flight_size = 0;
651 t->error_count = 0; 649 t->error_count = 0;
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index cdeb1d814833..4f16953e4954 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -763,7 +763,7 @@ err_put_ctx:
763err: 763err:
764 kfree(buf); 764 kfree(buf);
765out: 765out:
766 dprintk("RPC: %s returning %Zd\n", __func__, err); 766 dprintk("RPC: %s returning %zd\n", __func__, err);
767 return err; 767 return err;
768} 768}
769 769
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 75f290bddca1..2e22889a8837 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -1260,7 +1260,7 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
1260 return 0; 1260 return 0;
1261 1261
1262err_short_len: 1262err_short_len:
1263 svc_printk(rqstp, "short len %Zd, dropping request\n", 1263 svc_printk(rqstp, "short len %zd, dropping request\n",
1264 argv->iov_len); 1264 argv->iov_len);
1265 goto close; 1265 goto close;
1266 1266
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index de066acdb34e..d227d97f7ad4 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -278,7 +278,7 @@ static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr)
278 rqstp->rq_respages[0], tailoff); 278 rqstp->rq_respages[0], tailoff);
279 279
280out: 280out:
281 dprintk("svc: socket %p sendto([%p %Zu... ], %d) = %d (addr %s)\n", 281 dprintk("svc: socket %p sendto([%p %zu... ], %d) = %d (addr %s)\n",
282 svsk, xdr->head[0].iov_base, xdr->head[0].iov_len, 282 svsk, xdr->head[0].iov_base, xdr->head[0].iov_len,
283 xdr->len, len, svc_print_addr(rqstp, buf, sizeof(buf))); 283 xdr->len, len, svc_print_addr(rqstp, buf, sizeof(buf)));
284 284
@@ -346,7 +346,7 @@ static int svc_recvfrom(struct svc_rqst *rqstp, struct kvec *iov, int nr,
346 if (len == buflen) 346 if (len == buflen)
347 set_bit(XPT_DATA, &svsk->sk_xprt.xpt_flags); 347 set_bit(XPT_DATA, &svsk->sk_xprt.xpt_flags);
348 348
349 dprintk("svc: socket %p recvfrom(%p, %Zu) = %d\n", 349 dprintk("svc: socket %p recvfrom(%p, %zu) = %d\n",
350 svsk, iov[0].iov_base, iov[0].iov_len, len); 350 svsk, iov[0].iov_base, iov[0].iov_len, len);
351 return len; 351 return len;
352} 352}
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index af392d9b9cec..956c7bce80d1 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1188,7 +1188,7 @@ static inline void xs_tcp_read_xid(struct sock_xprt *transport, struct xdr_skb_r
1188 char *p; 1188 char *p;
1189 1189
1190 len = sizeof(transport->tcp_xid) - transport->tcp_offset; 1190 len = sizeof(transport->tcp_xid) - transport->tcp_offset;
1191 dprintk("RPC: reading XID (%Zu bytes)\n", len); 1191 dprintk("RPC: reading XID (%zu bytes)\n", len);
1192 p = ((char *) &transport->tcp_xid) + transport->tcp_offset; 1192 p = ((char *) &transport->tcp_xid) + transport->tcp_offset;
1193 used = xdr_skb_read_bits(desc, p, len); 1193 used = xdr_skb_read_bits(desc, p, len);
1194 transport->tcp_offset += used; 1194 transport->tcp_offset += used;
@@ -1219,7 +1219,7 @@ static inline void xs_tcp_read_calldir(struct sock_xprt *transport,
1219 */ 1219 */
1220 offset = transport->tcp_offset - sizeof(transport->tcp_xid); 1220 offset = transport->tcp_offset - sizeof(transport->tcp_xid);
1221 len = sizeof(transport->tcp_calldir) - offset; 1221 len = sizeof(transport->tcp_calldir) - offset;
1222 dprintk("RPC: reading CALL/REPLY flag (%Zu bytes)\n", len); 1222 dprintk("RPC: reading CALL/REPLY flag (%zu bytes)\n", len);
1223 p = ((char *) &transport->tcp_calldir) + offset; 1223 p = ((char *) &transport->tcp_calldir) + offset;
1224 used = xdr_skb_read_bits(desc, p, len); 1224 used = xdr_skb_read_bits(desc, p, len);
1225 transport->tcp_offset += used; 1225 transport->tcp_offset += used;
@@ -1310,7 +1310,7 @@ static inline void xs_tcp_read_common(struct rpc_xprt *xprt,
1310 return; 1310 return;
1311 } 1311 }
1312 1312
1313 dprintk("RPC: XID %08x read %Zd bytes\n", 1313 dprintk("RPC: XID %08x read %zd bytes\n",
1314 ntohl(transport->tcp_xid), r); 1314 ntohl(transport->tcp_xid), r);
1315 dprintk("RPC: xprt = %p, tcp_copied = %lu, tcp_offset = %u, " 1315 dprintk("RPC: xprt = %p, tcp_copied = %lu, tcp_offset = %u, "
1316 "tcp_reclen = %u\n", xprt, transport->tcp_copied, 1316 "tcp_reclen = %u\n", xprt, transport->tcp_copied,
@@ -1456,7 +1456,7 @@ static inline void xs_tcp_read_discard(struct sock_xprt *transport, struct xdr_s
1456 desc->count -= len; 1456 desc->count -= len;
1457 desc->offset += len; 1457 desc->offset += len;
1458 transport->tcp_offset += len; 1458 transport->tcp_offset += len;
1459 dprintk("RPC: discarded %Zu bytes\n", len); 1459 dprintk("RPC: discarded %zu bytes\n", len);
1460 xs_tcp_check_fraghdr(transport); 1460 xs_tcp_check_fraghdr(transport);
1461} 1461}
1462 1462