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
158f9d76
Commit
158f9d76
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: coda annotation
parent
a247c9ec
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
14 deletions
+15
-14
fs/coda/file.c
fs/coda/file.c
+2
-2
fs/coda/pioctl.c
fs/coda/pioctl.c
+1
-1
fs/coda/psdev.c
fs/coda/psdev.c
+3
-3
fs/coda/sysctl.c
fs/coda/sysctl.c
+4
-4
include/linux/coda.h
include/linux/coda.h
+3
-2
include/linux/coda_proc.h
include/linux/coda_proc.h
+2
-2
No files found.
fs/coda/file.c
View file @
158f9d76
...
...
@@ -29,7 +29,7 @@
int
use_coda_close
;
static
ssize_t
coda_file_read
(
struct
file
*
coda_file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
coda_file_read
(
struct
file
*
coda_file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
coda_file_info
*
cfi
;
struct
file
*
host_file
;
...
...
@@ -45,7 +45,7 @@ coda_file_read(struct file *coda_file, char *buf, size_t count, loff_t *ppos)
}
static
ssize_t
coda_file_write
(
struct
file
*
coda_file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
coda_file_write
(
struct
file
*
coda_file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
inode
*
host_inode
,
*
coda_inode
=
coda_file
->
f_dentry
->
d_inode
;
struct
coda_file_info
*
cfi
;
...
...
fs/coda/pioctl.c
View file @
158f9d76
...
...
@@ -58,7 +58,7 @@ static int coda_pioctl(struct inode * inode, struct file * filp,
struct
coda_inode_info
*
cnp
;
/* get the Pioctl data arguments from user space */
if
(
copy_from_user
(
&
data
,
(
int
*
)
user_data
,
sizeof
(
data
)))
{
if
(
copy_from_user
(
&
data
,
(
void
__user
*
)
user_data
,
sizeof
(
data
)))
{
return
-
EINVAL
;
}
...
...
fs/coda/psdev.c
View file @
158f9d76
...
...
@@ -88,7 +88,7 @@ static int coda_psdev_ioctl(struct inode * inode, struct file * filp,
switch
(
cmd
)
{
case
CIOC_KERNEL_VERSION
:
data
=
CODA_KERNEL_VERSION
;
return
put_user
(
data
,
(
int
*
)
arg
);
return
put_user
(
data
,
(
int
__user
*
)
arg
);
default:
return
-
ENOTTY
;
}
...
...
@@ -100,7 +100,7 @@ static int coda_psdev_ioctl(struct inode * inode, struct file * filp,
* Receive a message written by Venus to the psdev
*/
static
ssize_t
coda_psdev_write
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
coda_psdev_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
nbytes
,
loff_t
*
off
)
{
struct
venus_comm
*
vcp
=
(
struct
venus_comm
*
)
file
->
private_data
;
...
...
@@ -212,7 +212,7 @@ static ssize_t coda_psdev_write(struct file *file, const char *buf,
* Read a message from the kernel to Venus
*/
static
ssize_t
coda_psdev_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_t
coda_psdev_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
nbytes
,
loff_t
*
off
)
{
DECLARE_WAITQUEUE
(
wait
,
current
);
...
...
fs/coda/sysctl.c
View file @
158f9d76
...
...
@@ -69,7 +69,7 @@ void reset_coda_cache_inv_stats( void )
}
int
do_reset_coda_vfs_stats
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
size_t
*
lenp
)
void
__user
*
buffer
,
size_t
*
lenp
)
{
if
(
write
)
{
reset_coda_vfs_stats
();
...
...
@@ -83,7 +83,7 @@ int do_reset_coda_vfs_stats( ctl_table * table, int write, struct file * filp,
}
int
do_reset_coda_cache_inv_stats
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
struct
file
*
filp
,
void
__user
*
buffer
,
size_t
*
lenp
)
{
if
(
write
)
{
...
...
@@ -214,7 +214,7 @@ struct proc_dir_entry* proc_fs_coda;
#define coda_proc_create(name,get_info) \
create_proc_info_entry(name, 0, proc_fs_coda, get_info)
void
coda_sysctl_init
()
void
coda_sysctl_init
(
void
)
{
reset_coda_vfs_stats
();
reset_coda_cache_inv_stats
();
...
...
@@ -234,7 +234,7 @@ void coda_sysctl_init()
#endif
}
void
coda_sysctl_clean
()
void
coda_sysctl_clean
(
void
)
{
#ifdef CONFIG_SYSCTL
...
...
include/linux/coda.h
View file @
158f9d76
...
...
@@ -759,13 +759,14 @@ union coda_downcalls {
#define PIOCPARM_MASK 0x0000ffff
struct
ViceIoctl
{
caddr_t
in
,
out
;
/* Data to be transferred in, or out */
void
__user
*
in
;
/* Data to be transferred in */
void
__user
*
out
;
/* Data to be transferred out */
short
in_size
;
/* Size of input buffer <= 2K */
short
out_size
;
/* Maximum size of output buffer, <= 2K */
};
struct
PioctlData
{
const
char
*
path
;
const
char
__user
*
path
;
int
follow
;
struct
ViceIoctl
vi
;
};
...
...
include/linux/coda_proc.h
View file @
158f9d76
...
...
@@ -82,9 +82,9 @@ void reset_coda_cache_inv_stats( void );
* data structure for /proc/sys/... files
*/
int
do_reset_coda_vfs_stats
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
size_t
*
lenp
);
void
__user
*
buffer
,
size_t
*
lenp
);
int
do_reset_coda_cache_inv_stats
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
struct
file
*
filp
,
void
__user
*
buffer
,
size_t
*
lenp
);
/* these functions are called to form the content of /proc/fs/coda/... files */
...
...
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