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
Kirill Smelkov
linux
Commits
019453ef
Commit
019453ef
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: more wan annotations
parent
53f97fb4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/net/wan/dlci.c
drivers/net/wan/dlci.c
+1
-1
include/linux/if_frad.h
include/linux/if_frad.h
+1
-1
include/linux/sdla.h
include/linux/sdla.h
+1
-1
net/socket.c
net/socket.c
+3
-3
No files found.
drivers/net/wan/dlci.c
View file @
019453ef
...
@@ -454,7 +454,7 @@ static int dlci_del(struct dlci_add *dlci)
...
@@ -454,7 +454,7 @@ static int dlci_del(struct dlci_add *dlci)
return
(
err
);
return
(
err
);
}
}
static
int
dlci_ioctl
(
unsigned
int
cmd
,
void
*
arg
)
static
int
dlci_ioctl
(
unsigned
int
cmd
,
void
__user
*
arg
)
{
{
struct
dlci_add
add
;
struct
dlci_add
add
;
int
err
;
int
err
;
...
...
include/linux/if_frad.h
View file @
019453ef
...
@@ -191,7 +191,7 @@ struct frad_local
...
@@ -191,7 +191,7 @@ struct frad_local
int
buffer
;
/* current buffer for S508 firmware */
int
buffer
;
/* current buffer for S508 firmware */
};
};
extern
void
dlci_ioctl_set
(
int
(
*
hook
)(
unsigned
int
,
void
*
));
extern
void
dlci_ioctl_set
(
int
(
*
hook
)(
unsigned
int
,
void
__user
*
));
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
...
...
include/linux/sdla.h
View file @
019453ef
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
struct
sdla_mem
{
struct
sdla_mem
{
int
addr
;
int
addr
;
int
len
;
int
len
;
void
*
data
;
void
__user
*
data
;
};
};
#define SDLA_START (FRAD_LAST_IOCTL + 7)
#define SDLA_START (FRAD_LAST_IOCTL + 7)
...
...
net/socket.c
View file @
019453ef
...
@@ -751,9 +751,9 @@ void vlan_ioctl_set(int (*hook)(void __user *))
...
@@ -751,9 +751,9 @@ void vlan_ioctl_set(int (*hook)(void __user *))
EXPORT_SYMBOL
(
vlan_ioctl_set
);
EXPORT_SYMBOL
(
vlan_ioctl_set
);
static
DECLARE_MUTEX
(
dlci_ioctl_mutex
);
static
DECLARE_MUTEX
(
dlci_ioctl_mutex
);
static
int
(
*
dlci_ioctl_hook
)(
unsigned
int
,
void
*
);
static
int
(
*
dlci_ioctl_hook
)(
unsigned
int
,
void
__user
*
);
void
dlci_ioctl_set
(
int
(
*
hook
)(
unsigned
int
,
void
*
))
void
dlci_ioctl_set
(
int
(
*
hook
)(
unsigned
int
,
void
__user
*
))
{
{
down
(
&
dlci_ioctl_mutex
);
down
(
&
dlci_ioctl_mutex
);
dlci_ioctl_hook
=
hook
;
dlci_ioctl_hook
=
hook
;
...
@@ -832,7 +832,7 @@ static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -832,7 +832,7 @@ static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
if
(
dlci_ioctl_hook
)
{
if
(
dlci_ioctl_hook
)
{
down
(
&
dlci_ioctl_mutex
);
down
(
&
dlci_ioctl_mutex
);
err
=
dlci_ioctl_hook
(
cmd
,
(
void
*
)
arg
);
err
=
dlci_ioctl_hook
(
cmd
,
argp
);
up
(
&
dlci_ioctl_mutex
);
up
(
&
dlci_ioctl_mutex
);
}
}
break
;
break
;
...
...
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