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
f7ef32d3
Commit
f7ef32d3
authored
Aug 13, 2003
by
Dave Jones
Committed by
Linus Torvalds
Aug 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse annotations for MSR driver
parent
e4aff9bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
arch/i386/kernel/msr.c
arch/i386/kernel/msr.c
+2
-2
No files found.
arch/i386/kernel/msr.c
View file @
f7ef32d3
...
@@ -187,7 +187,7 @@ static loff_t msr_seek(struct file *file, loff_t offset, int orig)
...
@@ -187,7 +187,7 @@ static loff_t msr_seek(struct file *file, loff_t offset, int orig)
return
ret
;
return
ret
;
}
}
static
ssize_t
msr_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_t
msr_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
u32
*
tmp
=
(
u32
*
)
buf
;
u32
*
tmp
=
(
u32
*
)
buf
;
...
@@ -212,7 +212,7 @@ static ssize_t msr_read(struct file * file, char * buf,
...
@@ -212,7 +212,7 @@ static ssize_t msr_read(struct file * file, char * buf,
return
((
char
*
)
tmp
)
-
buf
;
return
((
char
*
)
tmp
)
-
buf
;
}
}
static
ssize_t
msr_write
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
msr_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
const
u32
*
tmp
=
(
const
u32
*
)
buf
;
const
u32
*
tmp
=
(
const
u32
*
)
buf
;
...
...
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