mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
[NET]: Fix sparse warnings
Of this type, mostly: CHECK net/ipv6/netfilter.c net/ipv6/netfilter.c:96:12: warning: symbol 'ipv6_netfilter_init' was not declared. Should it be static? net/ipv6/netfilter.c:101:6: warning: symbol 'ipv6_netfilter_fini' was not declared. Should it be static? Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9deff7f236
commit
20380731bc
54 changed files with 210 additions and 164 deletions
11
net/socket.c
11
net/socket.c
|
@ -70,6 +70,8 @@
|
|||
#include <linux/seq_file.h>
|
||||
#include <linux/wanrouter.h>
|
||||
#include <linux/if_bridge.h>
|
||||
#include <linux/if_frad.h>
|
||||
#include <linux/if_vlan.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/poll.h>
|
||||
#include <linux/cache.h>
|
||||
|
@ -724,8 +726,8 @@ static ssize_t sock_aio_write(struct kiocb *iocb, const char __user *ubuf,
|
|||
return __sock_sendmsg(iocb, sock, &x->async_msg, size);
|
||||
}
|
||||
|
||||
ssize_t sock_sendpage(struct file *file, struct page *page,
|
||||
int offset, size_t size, loff_t *ppos, int more)
|
||||
static ssize_t sock_sendpage(struct file *file, struct page *page,
|
||||
int offset, size_t size, loff_t *ppos, int more)
|
||||
{
|
||||
struct socket *sock;
|
||||
int flags;
|
||||
|
@ -948,7 +950,7 @@ static int sock_mmap(struct file * file, struct vm_area_struct * vma)
|
|||
return sock->ops->mmap(file, sock, vma);
|
||||
}
|
||||
|
||||
int sock_close(struct inode *inode, struct file *filp)
|
||||
static int sock_close(struct inode *inode, struct file *filp)
|
||||
{
|
||||
/*
|
||||
* It was possible the inode is NULL we were
|
||||
|
@ -2027,9 +2029,6 @@ int sock_unregister(int family)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
extern void sk_init(void);
|
||||
|
||||
void __init sock_init(void)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue