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
bd6f903c
Commit
bd6f903c
authored
Jun 18, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: drivers/video/aty annotation
parent
5b578afe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/video/aty/radeon_base.c
drivers/video/aty/radeon_base.c
+4
-4
No files found.
drivers/video/aty/radeon_base.c
View file @
bd6f903c
...
@@ -883,7 +883,7 @@ static int radeonfb_ioctl (struct inode *inode, struct file *file, unsigned int
...
@@ -883,7 +883,7 @@ static int radeonfb_ioctl (struct inode *inode, struct file *file, unsigned int
if
(
!
rinfo
->
is_mobility
)
if
(
!
rinfo
->
is_mobility
)
return
-
EINVAL
;
return
-
EINVAL
;
rc
=
get_user
(
value
,
(
__u32
*
)
arg
);
rc
=
get_user
(
value
,
(
__u32
__user
*
)
arg
);
if
(
rc
)
if
(
rc
)
return
rc
;
return
rc
;
...
@@ -928,7 +928,7 @@ static int radeonfb_ioctl (struct inode *inode, struct file *file, unsigned int
...
@@ -928,7 +928,7 @@ static int radeonfb_ioctl (struct inode *inode, struct file *file, unsigned int
if
(
CRTC_CRT_ON
&
tmp
)
if
(
CRTC_CRT_ON
&
tmp
)
value
|=
0x02
;
value
|=
0x02
;
return
put_user
(
value
,
(
__u32
*
)
arg
);
return
put_user
(
value
,
(
__u32
__user
*
)
arg
);
default:
default:
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
@@ -1707,7 +1707,7 @@ int radeonfb_set_par(struct fb_info *info)
...
@@ -1707,7 +1707,7 @@ int radeonfb_set_par(struct fb_info *info)
static
ssize_t
radeonfb_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
static
ssize_t
radeonfb_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
{
unsigned
long
p
=
*
ppos
;
unsigned
long
p
=
*
ppos
;
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
...
@@ -1734,7 +1734,7 @@ static ssize_t radeonfb_read(struct file *file, char *buf, size_t count, loff_t
...
@@ -1734,7 +1734,7 @@ static ssize_t radeonfb_read(struct file *file, char *buf, size_t count, loff_t
return
count
;
return
count
;
}
}
static
ssize_t
radeonfb_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
static
ssize_t
radeonfb_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
loff_t
*
ppos
)
{
{
unsigned
long
p
=
*
ppos
;
unsigned
long
p
=
*
ppos
;
...
...
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