Commit daf52a28 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] mismatched syscall protos.

Sparse noticed a bunch of mismatched prototypes in the new syscalls.h file
when compiling net/socket.c  Whilst most of them are just missing __user
tags, the last argument of sys_socketpair was completely different.
parent 979faf85
......@@ -386,24 +386,24 @@ asmlinkage long sys_getdents64(unsigned int fd,
unsigned int count);
asmlinkage long sys_setsockopt(int fd, int level, int optname,
char *optval, int optlen);
char __user *optval, int optlen);
asmlinkage long sys_getsockopt(int fd, int level, int optname,
char __user *optval, int __user *optlen);
asmlinkage long sys_bind(int, struct sockaddr *, int);
asmlinkage long sys_connect(int, struct sockaddr *, int);
asmlinkage long sys_accept(int, struct sockaddr *, int *);
asmlinkage long sys_getsockname(int, struct sockaddr *, int *);
asmlinkage long sys_getpeername(int, struct sockaddr *, int *);
asmlinkage long sys_send(int, void *, size_t, unsigned);
asmlinkage long sys_sendto(int, void *, size_t, unsigned,
struct sockaddr *, int);
asmlinkage long sys_bind(int, struct sockaddr __user *, int);
asmlinkage long sys_connect(int, struct sockaddr __user *, int);
asmlinkage long sys_accept(int, struct sockaddr __user *, int __user *);
asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *);
asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *);
asmlinkage long sys_send(int, void __user *, size_t, unsigned);
asmlinkage long sys_sendto(int, void __user *, size_t, unsigned,
struct sockaddr __user *, int);
asmlinkage long sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags);
asmlinkage long sys_recv(int, void *, size_t, unsigned);
asmlinkage long sys_recvfrom(int, void *, size_t, unsigned,
struct sockaddr *, int *);
asmlinkage long sys_recv(int, void __user *, size_t, unsigned);
asmlinkage long sys_recvfrom(int, void __user *, size_t, unsigned,
struct sockaddr __user *, int __user *);
asmlinkage long sys_recvmsg(int fd, struct msghdr __user *msg, unsigned flags);
asmlinkage long sys_socket(int, int, int);
asmlinkage long sys_socketpair(int, int, int, int [2]);
asmlinkage long sys_socketpair(int, int, int, int __user *);
asmlinkage long sys_socketcall(int call, unsigned long __user *args);
asmlinkage long sys_listen(int, int);
asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment