diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/ioctl.c | 1 | ||||
-rw-r--r-- | net/core/ethtool.c | 2 | ||||
-rw-r--r-- | net/core/filter.c | 6 | ||||
-rw-r--r-- | net/core/sock.c | 2 | ||||
-rw-r--r-- | net/ieee80211/ieee80211_rx.c | 2 | ||||
-rw-r--r-- | net/ipv4/ipconfig.c | 1 | ||||
-rw-r--r-- | net/ipv4/tcp.c | 4 | ||||
-rw-r--r-- | net/irda/irlan/irlan_filter.c | 1 | ||||
-rw-r--r-- | net/irda/qos.c | 1 | ||||
-rw-r--r-- | net/netfilter/nfnetlink.c | 4 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 15 | ||||
-rw-r--r-- | net/sctp/sysctl.c | 1 |
12 files changed, 17 insertions, 23 deletions
diff --git a/net/atm/ioctl.c b/net/atm/ioctl.c index 4dbb5af34a5e..d89056ec44d4 100644 --- a/net/atm/ioctl.c +++ b/net/atm/ioctl.c | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "resources.h" | 22 | #include "resources.h" |
23 | #include "signaling.h" /* for WAITING and sigd_attach */ | 23 | #include "signaling.h" /* for WAITING and sigd_attach */ |
24 | #include "common.h" | ||
24 | 25 | ||
25 | 26 | ||
26 | static DECLARE_MUTEX(ioctl_mutex); | 27 | static DECLARE_MUTEX(ioctl_mutex); |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 289c1b5a8e4a..404b761e82ce 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -695,7 +695,7 @@ static int ethtool_get_stats(struct net_device *dev, void __user *useraddr) | |||
695 | return ret; | 695 | return ret; |
696 | } | 696 | } |
697 | 697 | ||
698 | static int ethtool_get_perm_addr(struct net_device *dev, void *useraddr) | 698 | static int ethtool_get_perm_addr(struct net_device *dev, void __user *useraddr) |
699 | { | 699 | { |
700 | struct ethtool_perm_addr epaddr; | 700 | struct ethtool_perm_addr epaddr; |
701 | u8 *data; | 701 | u8 *data; |
diff --git a/net/core/filter.c b/net/core/filter.c index cd91a24f9720..079c2edff789 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -182,7 +182,7 @@ int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen) | |||
182 | A = ntohl(*(u32 *)ptr); | 182 | A = ntohl(*(u32 *)ptr); |
183 | continue; | 183 | continue; |
184 | } | 184 | } |
185 | return 0; | 185 | break; |
186 | case BPF_LD|BPF_H|BPF_ABS: | 186 | case BPF_LD|BPF_H|BPF_ABS: |
187 | k = fentry->k; | 187 | k = fentry->k; |
188 | load_h: | 188 | load_h: |
@@ -191,7 +191,7 @@ int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen) | |||
191 | A = ntohs(*(u16 *)ptr); | 191 | A = ntohs(*(u16 *)ptr); |
192 | continue; | 192 | continue; |
193 | } | 193 | } |
194 | return 0; | 194 | break; |
195 | case BPF_LD|BPF_B|BPF_ABS: | 195 | case BPF_LD|BPF_B|BPF_ABS: |
196 | k = fentry->k; | 196 | k = fentry->k; |
197 | load_b: | 197 | load_b: |
@@ -200,7 +200,7 @@ load_b: | |||
200 | A = *(u8 *)ptr; | 200 | A = *(u8 *)ptr; |
201 | continue; | 201 | continue; |
202 | } | 202 | } |
203 | return 0; | 203 | break; |
204 | case BPF_LD|BPF_W|BPF_LEN: | 204 | case BPF_LD|BPF_W|BPF_LEN: |
205 | A = skb->len; | 205 | A = skb->len; |
206 | continue; | 206 | continue; |
diff --git a/net/core/sock.c b/net/core/sock.c index ccd10fd65682..c13594579bfb 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -1719,8 +1719,8 @@ EXPORT_SYMBOL(sock_wfree); | |||
1719 | EXPORT_SYMBOL(sock_wmalloc); | 1719 | EXPORT_SYMBOL(sock_wmalloc); |
1720 | EXPORT_SYMBOL(sock_i_uid); | 1720 | EXPORT_SYMBOL(sock_i_uid); |
1721 | EXPORT_SYMBOL(sock_i_ino); | 1721 | EXPORT_SYMBOL(sock_i_ino); |
1722 | #ifdef CONFIG_SYSCTL | ||
1723 | EXPORT_SYMBOL(sysctl_optmem_max); | 1722 | EXPORT_SYMBOL(sysctl_optmem_max); |
1723 | #ifdef CONFIG_SYSCTL | ||
1724 | EXPORT_SYMBOL(sysctl_rmem_max); | 1724 | EXPORT_SYMBOL(sysctl_rmem_max); |
1725 | EXPORT_SYMBOL(sysctl_wmem_max); | 1725 | EXPORT_SYMBOL(sysctl_wmem_max); |
1726 | #endif | 1726 | #endif |
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c index d582faa6447d..a5905f53aed7 100644 --- a/net/ieee80211/ieee80211_rx.c +++ b/net/ieee80211/ieee80211_rx.c | |||
@@ -831,7 +831,7 @@ static inline int ieee80211_network_init( | |||
831 | left = stats->len - ((void *)info_element - (void *)beacon); | 831 | left = stats->len - ((void *)info_element - (void *)beacon); |
832 | while (left >= sizeof(struct ieee80211_info_element_hdr)) { | 832 | while (left >= sizeof(struct ieee80211_info_element_hdr)) { |
833 | if (sizeof(struct ieee80211_info_element_hdr) + info_element->len > left) { | 833 | if (sizeof(struct ieee80211_info_element_hdr) + info_element->len > left) { |
834 | IEEE80211_DEBUG_SCAN("SCAN: parse failed: info_element->len + 2 > left : info_element->len+2=%d left=%d.\n", | 834 | IEEE80211_DEBUG_SCAN("SCAN: parse failed: info_element->len + 2 > left : info_element->len+2=%Zd left=%d.\n", |
835 | info_element->len + sizeof(struct ieee80211_info_element), | 835 | info_element->len + sizeof(struct ieee80211_info_element), |
836 | left); | 836 | left); |
837 | return 1; | 837 | return 1; |
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 63e106605f28..953129d392d2 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #include <linux/major.h> | 54 | #include <linux/major.h> |
55 | #include <linux/root_dev.h> | 55 | #include <linux/root_dev.h> |
56 | #include <linux/delay.h> | 56 | #include <linux/delay.h> |
57 | #include <linux/nfs_fs.h> | ||
57 | #include <net/arp.h> | 58 | #include <net/arp.h> |
58 | #include <net/ip.h> | 59 | #include <net/ip.h> |
59 | #include <net/ipconfig.h> | 60 | #include <net/ipconfig.h> |
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index cbcc9fc47783..f3f0013a9580 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -769,10 +769,10 @@ new_segment: | |||
769 | if (off == PAGE_SIZE) { | 769 | if (off == PAGE_SIZE) { |
770 | put_page(page); | 770 | put_page(page); |
771 | TCP_PAGE(sk) = page = NULL; | 771 | TCP_PAGE(sk) = page = NULL; |
772 | TCP_OFF(sk) = off = 0; | 772 | off = 0; |
773 | } | 773 | } |
774 | } else | 774 | } else |
775 | BUG_ON(off); | 775 | off = 0; |
776 | 776 | ||
777 | if (copy > PAGE_SIZE - off) | 777 | if (copy > PAGE_SIZE - off) |
778 | copy = PAGE_SIZE - off; | 778 | copy = PAGE_SIZE - off; |
diff --git a/net/irda/irlan/irlan_filter.c b/net/irda/irlan/irlan_filter.c index 343c5d4a1a1d..ca7d358dab52 100644 --- a/net/irda/irlan/irlan_filter.c +++ b/net/irda/irlan/irlan_filter.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/seq_file.h> | 27 | #include <linux/seq_file.h> |
28 | 28 | ||
29 | #include <net/irda/irlan_common.h> | 29 | #include <net/irda/irlan_common.h> |
30 | #include <net/irda/irlan_filter.h> | ||
30 | 31 | ||
31 | /* | 32 | /* |
32 | * Function irlan_filter_request (self, skb) | 33 | * Function irlan_filter_request (self, skb) |
diff --git a/net/irda/qos.c b/net/irda/qos.c index df732d56cc57..ddfb5c502a90 100644 --- a/net/irda/qos.c +++ b/net/irda/qos.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <net/irda/parameters.h> | 37 | #include <net/irda/parameters.h> |
38 | #include <net/irda/qos.h> | 38 | #include <net/irda/qos.h> |
39 | #include <net/irda/irlap.h> | 39 | #include <net/irda/irlap.h> |
40 | #include <net/irda/irlap_frame.h> | ||
40 | 41 | ||
41 | /* | 42 | /* |
42 | * Maximum values of the baud rate we negociate with the other end. | 43 | * Maximum values of the baud rate we negociate with the other end. |
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index e089f17bb803..49a3900e3d32 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c | |||
@@ -344,14 +344,14 @@ static void nfnetlink_rcv(struct sock *sk, int len) | |||
344 | } while(nfnl && nfnl->sk_receive_queue.qlen); | 344 | } while(nfnl && nfnl->sk_receive_queue.qlen); |
345 | } | 345 | } |
346 | 346 | ||
347 | void __exit nfnetlink_exit(void) | 347 | static void __exit nfnetlink_exit(void) |
348 | { | 348 | { |
349 | printk("Removing netfilter NETLINK layer.\n"); | 349 | printk("Removing netfilter NETLINK layer.\n"); |
350 | sock_release(nfnl->sk_socket); | 350 | sock_release(nfnl->sk_socket); |
351 | return; | 351 | return; |
352 | } | 352 | } |
353 | 353 | ||
354 | int __init nfnetlink_init(void) | 354 | static int __init nfnetlink_init(void) |
355 | { | 355 | { |
356 | printk("Netfilter messages via NETLINK v%s.\n", nfversion); | 356 | printk("Netfilter messages via NETLINK v%s.\n", nfversion); |
357 | 357 | ||
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index e3a5285329af..249bddb28acd 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -76,17 +76,6 @@ typedef int (*nfqnl_cmpfn)(struct nfqnl_queue_entry *, unsigned long); | |||
76 | 76 | ||
77 | static DEFINE_RWLOCK(instances_lock); | 77 | static DEFINE_RWLOCK(instances_lock); |
78 | 78 | ||
79 | u_int64_t htonll(u_int64_t in) | ||
80 | { | ||
81 | u_int64_t out; | ||
82 | int i; | ||
83 | |||
84 | for (i = 0; i < sizeof(u_int64_t); i++) | ||
85 | ((u_int8_t *)&out)[sizeof(u_int64_t)-1] = ((u_int8_t *)&in)[i]; | ||
86 | |||
87 | return out; | ||
88 | } | ||
89 | |||
90 | #define INSTANCE_BUCKETS 16 | 79 | #define INSTANCE_BUCKETS 16 |
91 | static struct hlist_head instance_table[INSTANCE_BUCKETS]; | 80 | static struct hlist_head instance_table[INSTANCE_BUCKETS]; |
92 | 81 | ||
@@ -497,8 +486,8 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue, | |||
497 | if (entry->skb->tstamp.off_sec) { | 486 | if (entry->skb->tstamp.off_sec) { |
498 | struct nfqnl_msg_packet_timestamp ts; | 487 | struct nfqnl_msg_packet_timestamp ts; |
499 | 488 | ||
500 | ts.sec = htonll(skb_tv_base.tv_sec + entry->skb->tstamp.off_sec); | 489 | ts.sec = cpu_to_be64(skb_tv_base.tv_sec + entry->skb->tstamp.off_sec); |
501 | ts.usec = htonll(skb_tv_base.tv_usec + entry->skb->tstamp.off_usec); | 490 | ts.usec = cpu_to_be64(skb_tv_base.tv_usec + entry->skb->tstamp.off_usec); |
502 | 491 | ||
503 | NFA_PUT(skb, NFQA_TIMESTAMP, sizeof(ts), &ts); | 492 | NFA_PUT(skb, NFQA_TIMESTAMP, sizeof(ts), &ts); |
504 | } | 493 | } |
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index dc4893474f18..75b28dd634fe 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c | |||
@@ -42,6 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include <net/sctp/structs.h> | 44 | #include <net/sctp/structs.h> |
45 | #include <net/sctp/sctp.h> | ||
45 | #include <linux/sysctl.h> | 46 | #include <linux/sysctl.h> |
46 | 47 | ||
47 | static ctl_handler sctp_sysctl_jiffies_ms; | 48 | static ctl_handler sctp_sysctl_jiffies_ms; |