diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-01-09 20:24:16 -0800 |
---|---|---|
committer | David S. Miller <davem@nuts.davemloft.net> | 2005-01-09 20:24:16 -0800 |
commit | 8bcfd3cc761d2e98e3ab0cdf2228b581b98fc676 (patch) | |
tree | 6d02afeb97f345bcee623a2f1d750fb0acbc0a2e /include | |
parent | cabbb4ded926b76d0e6a71ee7c901532b829b40a (diff) | |
download | history-8bcfd3cc761d2e98e3ab0cdf2228b581b98fc676.tar.gz |
[NET]: misc cleanups
The patch below contains the following cleanups:
- make needlessly global code static
- remove the following unused global functions:
- datagram.c: skb_copy_datagram
- iovec.c: memcpy_tokerneliovec
- remove the following unneeded EXPORT_SYMBOL's:
- datagram.c: skb_copy_datagram
- dev.c: ing_filter
- iovec.c: memcpy_tokerneliovec
- netpoll.c: netpoll_send_skb
- rtnetlink.c: rtnetlink_dump_ifinfo
- sock.c: sock_alloc_send_pskb
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 1 | ||||
-rw-r--r-- | include/linux/netfilter.h | 4 | ||||
-rw-r--r-- | include/linux/netpoll.h | 1 | ||||
-rw-r--r-- | include/linux/rtnetlink.h | 1 | ||||
-rw-r--r-- | include/linux/skbuff.h | 5 | ||||
-rw-r--r-- | include/linux/socket.h | 1 | ||||
-rw-r--r-- | include/net/iw_handler.h | 3 | ||||
-rw-r--r-- | include/net/pkt_cls.h | 1 | ||||
-rw-r--r-- | include/net/sock.h | 7 |
9 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 871bcbdf2abdab..fca36de5e3fcb0 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -522,7 +522,6 @@ extern struct net_device loopback_dev; /* The loopback */ extern struct net_device *dev_base; /* All devices */ extern rwlock_t dev_base_lock; /* Device list lock */ -extern int netdev_boot_setup_add(char *name, struct ifmap *map); extern int netdev_boot_setup_check(struct net_device *dev); extern unsigned long netdev_boot_base(const char *prefix, int unit); extern struct net_device *dev_getbyhwaddr(unsigned short type, char *hwaddr); diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index b0ee19e302de94..0c267c89fa3e48 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -175,10 +175,6 @@ extern void nf_reinject(struct sk_buff *skb, extern void (*ip_ct_attach)(struct sk_buff *, struct sk_buff *); extern void nf_ct_attach(struct sk_buff *, struct sk_buff *); -#ifdef CONFIG_NETFILTER_DEBUG -extern void nf_dump_skb(int pf, struct sk_buff *skb); -#endif - /* FIXME: Before cache is ever used, this must be implemented for real. */ extern void nf_invalidate_cache(int pf); diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index a9e4817c416e59..ccf1ccb80972b3 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h @@ -24,7 +24,6 @@ struct netpoll { }; void netpoll_poll(struct netpoll *np); -void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb); void netpoll_send_udp(struct netpoll *np, const char *msg, int len); int netpoll_parse_options(struct netpoll *np, char *opt); int netpoll_setup(struct netpoll *np); diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 354e5f88e4f8e1..68301c28601375 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -765,7 +765,6 @@ struct rtnetlink_link }; extern struct rtnetlink_link * rtnetlink_links[NPROTO]; -extern int rtnetlink_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb); extern int rtnetlink_send(struct sk_buff *skb, u32 pid, u32 group, int echo); extern int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics); diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index b1d0c472d19c65..a6b744bccdc8b9 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1086,14 +1086,9 @@ extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err); extern unsigned int datagram_poll(struct file *file, struct socket *sock, struct poll_table_struct *wait); -extern int skb_copy_datagram(const struct sk_buff *from, - int offset, char __user *to, int size); extern int skb_copy_datagram_iovec(const struct sk_buff *from, int offset, struct iovec *to, int size); -extern int skb_copy_and_csum_datagram(const struct sk_buff *skb, - int offset, u8 __user *to, - int len, unsigned int *csump); extern int skb_copy_and_csum_datagram_iovec(const struct sk_buff *skb, int hlen, diff --git a/include/linux/socket.h b/include/linux/socket.h index 4c7d11301abfe9..769ff4fc01b0a5 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -286,7 +286,6 @@ extern int csum_partial_copy_fromiovecend(unsigned char *kdata, extern int verify_iovec(struct msghdr *m, struct iovec *iov, char *address, int mode); extern int memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len); -extern void memcpy_tokerneliovec(struct iovec *iov, unsigned char *kdata, int len); extern int move_addr_to_user(void *kaddr, int klen, void __user *uaddr, int __user *ulen); extern int move_addr_to_kernel(void __user *uaddr, int ulen, void *kaddr); extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data); diff --git a/include/net/iw_handler.h b/include/net/iw_handler.h index ac5acfc87658c3..44edd48f123410 100644 --- a/include/net/iw_handler.h +++ b/include/net/iw_handler.h @@ -418,9 +418,6 @@ struct iw_public_data { * Those may be called only within the kernel. */ -/* Data needed by fs/compat_ioctl.c for 32->64 bit conversion */ -extern const char iw_priv_type_size[]; - /* First : function strictly used inside the kernel */ /* Handle /proc/net/wireless, called in net/code/dev.c */ diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 973680c7537ee7..2873db096eb022 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -17,7 +17,6 @@ struct tcf_walker extern int register_tcf_proto_ops(struct tcf_proto_ops *ops); extern int unregister_tcf_proto_ops(struct tcf_proto_ops *ops); -extern int ing_filter(struct sk_buff *skb); static inline unsigned long __cls_set_class(unsigned long *clp, unsigned long cl) diff --git a/include/net/sock.h b/include/net/sock.h index 5c49711c56cf4a..dc9a2bdf99c7e0 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -733,11 +733,6 @@ extern struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode); -extern struct sk_buff *sock_alloc_send_pskb(struct sock *sk, - unsigned long header_len, - unsigned long data_len, - int noblock, - int *errcode); extern void *sock_kmalloc(struct sock *sk, int size, int priority); extern void sock_kfree_s(struct sock *sk, void *mem, int size); extern void sk_send_sigurg(struct sock *sk); @@ -795,8 +790,6 @@ extern void sk_common_release(struct sock *sk); * Default socket callbacks and setup code */ -extern void sock_def_destruct(struct sock *); - /* Initialise core socket variables */ extern void sock_init_data(struct socket *sock, struct sock *sk); |