Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
73a66020
Commit
73a66020
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: rest of net/* annotations (in this patchset, that is ;-)
parent
9e1b30a3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
include/linux/if.h
include/linux/if.h
+2
-2
net/core/iovec.c
net/core/iovec.c
+1
-1
net/core/pktgen.c
net/core/pktgen.c
+4
-4
net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_ctl.c
+2
-2
net/socket.c
net/socket.c
+5
-5
No files found.
include/linux/if.h
View file @
73a66020
...
@@ -182,8 +182,8 @@ struct ifconf
...
@@ -182,8 +182,8 @@ struct ifconf
int
ifc_len
;
/* size of buffer */
int
ifc_len
;
/* size of buffer */
union
union
{
{
char
*
ifcu_buf
;
char
__user
*
ifcu_buf
;
struct
ifreq
*
ifcu_req
;
struct
ifreq
__user
*
ifcu_req
;
}
ifc_ifcu
;
}
ifc_ifcu
;
};
};
#define ifc_buf ifc_ifcu.ifcu_buf
/* buffer address */
#define ifc_buf ifc_ifcu.ifcu_buf
/* buffer address */
...
...
net/core/iovec.c
View file @
73a66020
...
@@ -157,7 +157,7 @@ int memcpy_fromiovecend(unsigned char *kdata, struct iovec *iov, int offset,
...
@@ -157,7 +157,7 @@ int memcpy_fromiovecend(unsigned char *kdata, struct iovec *iov, int offset,
}
}
while
(
len
>
0
)
{
while
(
len
>
0
)
{
u8
*
base
=
iov
->
iov_base
+
offset
;
u8
__user
*
base
=
iov
->
iov_base
+
offset
;
int
copy
=
min_t
(
unsigned
int
,
len
,
iov
->
iov_len
-
offset
);
int
copy
=
min_t
(
unsigned
int
,
len
,
iov
->
iov_len
-
offset
);
offset
=
0
;
offset
=
0
;
...
...
net/core/pktgen.c
View file @
73a66020
...
@@ -870,7 +870,7 @@ static int proc_read(char *buf , char **start, off_t offset,
...
@@ -870,7 +870,7 @@ static int proc_read(char *buf , char **start, off_t offset,
return
p
-
buf
;
return
p
-
buf
;
}
}
static
int
count_trail_chars
(
const
char
*
user_buffer
,
unsigned
int
maxlen
)
static
int
count_trail_chars
(
const
char
__user
*
user_buffer
,
unsigned
int
maxlen
)
{
{
int
i
;
int
i
;
...
@@ -895,7 +895,7 @@ static int count_trail_chars(const char *user_buffer, unsigned int maxlen)
...
@@ -895,7 +895,7 @@ static int count_trail_chars(const char *user_buffer, unsigned int maxlen)
return
i
;
return
i
;
}
}
static
unsigned
long
num_arg
(
const
char
*
user_buffer
,
unsigned
long
maxlen
,
static
unsigned
long
num_arg
(
const
char
__user
*
user_buffer
,
unsigned
long
maxlen
,
unsigned
long
*
num
)
unsigned
long
*
num
)
{
{
int
i
=
0
;
int
i
=
0
;
...
@@ -916,7 +916,7 @@ static unsigned long num_arg(const char *user_buffer, unsigned long maxlen,
...
@@ -916,7 +916,7 @@ static unsigned long num_arg(const char *user_buffer, unsigned long maxlen,
return
i
;
return
i
;
}
}
static
int
strn_len
(
const
char
*
user_buffer
,
unsigned
int
maxlen
)
static
int
strn_len
(
const
char
__user
*
user_buffer
,
unsigned
int
maxlen
)
{
{
int
i
=
0
;
int
i
=
0
;
...
@@ -940,7 +940,7 @@ static int strn_len(const char *user_buffer, unsigned int maxlen)
...
@@ -940,7 +940,7 @@ static int strn_len(const char *user_buffer, unsigned int maxlen)
return
i
;
return
i
;
}
}
static
int
proc_write
(
struct
file
*
file
,
const
char
*
user_buffer
,
static
int
proc_write
(
struct
file
*
file
,
const
char
__user
*
user_buffer
,
unsigned
long
count
,
void
*
data
)
unsigned
long
count
,
void
*
data
)
{
{
int
i
=
0
,
max
,
len
;
int
i
=
0
,
max
,
len
;
...
...
net/ipv4/ipvs/ip_vs_ctl.c
View file @
73a66020
...
@@ -1347,7 +1347,7 @@ static int ip_vs_zero_all(void)
...
@@ -1347,7 +1347,7 @@ static int ip_vs_zero_all(void)
static
int
static
int
proc_do_defense_mode
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
proc_do_defense_mode
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
size_t
*
lenp
)
void
__user
*
buffer
,
size_t
*
lenp
)
{
{
int
*
valp
=
table
->
data
;
int
*
valp
=
table
->
data
;
int
val
=
*
valp
;
int
val
=
*
valp
;
...
@@ -1370,7 +1370,7 @@ proc_do_defense_mode(ctl_table *table, int write, struct file * filp,
...
@@ -1370,7 +1370,7 @@ proc_do_defense_mode(ctl_table *table, int write, struct file * filp,
static
int
static
int
proc_do_sync_threshold
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
proc_do_sync_threshold
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
size_t
*
lenp
)
void
__user
*
buffer
,
size_t
*
lenp
)
{
{
int
*
valp
=
table
->
data
;
int
*
valp
=
table
->
data
;
int
val
[
2
];
int
val
[
2
];
...
...
net/socket.c
View file @
73a66020
...
@@ -776,24 +776,24 @@ static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -776,24 +776,24 @@ static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unlock_kernel
();
unlock_kernel
();
sock
=
SOCKET_I
(
inode
);
sock
=
SOCKET_I
(
inode
);
if
(
cmd
>=
SIOCDEVPRIVATE
&&
cmd
<=
(
SIOCDEVPRIVATE
+
15
))
{
if
(
cmd
>=
SIOCDEVPRIVATE
&&
cmd
<=
(
SIOCDEVPRIVATE
+
15
))
{
err
=
dev_ioctl
(
cmd
,
(
void
__user
*
)
arg
);
err
=
dev_ioctl
(
cmd
,
argp
);
}
else
}
else
#ifdef WIRELESS_EXT
#ifdef WIRELESS_EXT
if
(
cmd
>=
SIOCIWFIRST
&&
cmd
<=
SIOCIWLAST
)
{
if
(
cmd
>=
SIOCIWFIRST
&&
cmd
<=
SIOCIWLAST
)
{
err
=
dev_ioctl
(
cmd
,
(
void
__user
*
)
arg
);
err
=
dev_ioctl
(
cmd
,
argp
);
}
else
}
else
#endif
/* WIRELESS_EXT */
#endif
/* WIRELESS_EXT */
switch
(
cmd
)
{
switch
(
cmd
)
{
case
FIOSETOWN
:
case
FIOSETOWN
:
case
SIOCSPGRP
:
case
SIOCSPGRP
:
err
=
-
EFAULT
;
err
=
-
EFAULT
;
if
(
get_user
(
pid
,
(
int
__user
*
)
arg
))
if
(
get_user
(
pid
,
(
int
__user
*
)
arg
p
))
break
;
break
;
err
=
f_setown
(
sock
->
file
,
pid
,
1
);
err
=
f_setown
(
sock
->
file
,
pid
,
1
);
break
;
break
;
case
FIOGETOWN
:
case
FIOGETOWN
:
case
SIOCGPGRP
:
case
SIOCGPGRP
:
err
=
put_user
(
sock
->
file
->
f_owner
.
pid
,
(
int
__user
*
)
arg
);
err
=
put_user
(
sock
->
file
->
f_owner
.
pid
,
(
int
__user
*
)
arg
p
);
break
;
break
;
case
SIOCGIFBR
:
case
SIOCGIFBR
:
case
SIOCSIFBR
:
case
SIOCSIFBR
:
...
@@ -822,7 +822,7 @@ static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -822,7 +822,7 @@ static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
case
SIOCGIFDIVERT
:
case
SIOCGIFDIVERT
:
case
SIOCSIFDIVERT
:
case
SIOCSIFDIVERT
:
/* Convert this to call through a hook */
/* Convert this to call through a hook */
err
=
divert_ioctl
(
cmd
,
(
struct
divert_cf
*
)
arg
);
err
=
divert_ioctl
(
cmd
,
argp
);
break
;
break
;
case
SIOCADDDLCI
:
case
SIOCADDDLCI
:
case
SIOCDELDLCI
:
case
SIOCDELDLCI
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment