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
aba752e2
Commit
aba752e2
authored
Jul 13, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: more drivers/usb/* annotations
parent
5c444d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/usb/gadget/inode.c
drivers/usb/gadget/inode.c
+4
-4
drivers/usb/gadget/rndis.c
drivers/usb/gadget/rndis.c
+1
-1
No files found.
drivers/usb/gadget/inode.c
View file @
aba752e2
...
...
@@ -737,7 +737,7 @@ static struct file_operations ep_io_operations = {
* speed descriptor, then optional high speed descriptor.
*/
static
ssize_t
ep_config
(
struct
file
*
fd
,
const
char
*
buf
,
size_t
len
,
loff_t
*
ptr
)
ep_config
(
struct
file
*
fd
,
const
char
__user
*
buf
,
size_t
len
,
loff_t
*
ptr
)
{
struct
ep_data
*
data
=
fd
->
private_data
;
struct
usb_ep
*
ep
;
...
...
@@ -944,7 +944,7 @@ static int setup_req (struct usb_ep *ep, struct usb_request *req, u16 len)
}
static
ssize_t
ep0_read
(
struct
file
*
fd
,
char
*
buf
,
size_t
len
,
loff_t
*
ptr
)
ep0_read
(
struct
file
*
fd
,
char
__user
*
buf
,
size_t
len
,
loff_t
*
ptr
)
{
struct
dev_data
*
dev
=
fd
->
private_data
;
ssize_t
retval
;
...
...
@@ -1125,7 +1125,7 @@ next_event (struct dev_data *dev, enum usb_gadgetfs_event_type type)
}
static
ssize_t
ep0_write
(
struct
file
*
fd
,
const
char
*
buf
,
size_t
len
,
loff_t
*
ptr
)
ep0_write
(
struct
file
*
fd
,
const
char
__user
*
buf
,
size_t
len
,
loff_t
*
ptr
)
{
struct
dev_data
*
dev
=
fd
->
private_data
;
ssize_t
retval
=
-
ESRCH
;
...
...
@@ -1763,7 +1763,7 @@ static int is_valid_config (struct usb_config_descriptor *config)
}
static
ssize_t
dev_config
(
struct
file
*
fd
,
const
char
*
buf
,
size_t
len
,
loff_t
*
ptr
)
dev_config
(
struct
file
*
fd
,
const
char
__user
*
buf
,
size_t
len
,
loff_t
*
ptr
)
{
struct
dev_data
*
dev
=
fd
->
private_data
;
ssize_t
value
=
len
,
length
=
len
;
...
...
drivers/usb/gadget/rndis.c
View file @
aba752e2
...
...
@@ -1320,7 +1320,7 @@ int rndis_proc_read (char *page, char **start, off_t off, int count, int *eof,
return
len
;
}
int
rndis_proc_write
(
struct
file
*
file
,
const
char
*
buffer
,
int
rndis_proc_write
(
struct
file
*
file
,
const
char
__user
*
buffer
,
unsigned
long
count
,
void
*
data
)
{
u32
speed
=
0
;
...
...
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