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
bc412382
Commit
bc412382
authored
Jul 15, 2003
by
Dave Jones
Committed by
Dave Jones
Jul 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] sparse __user annotation for cpufreq userspace interface.
parent
6858d0e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/cpufreq/userspace.c
drivers/cpufreq/userspace.c
+4
-4
No files found.
drivers/cpufreq/userspace.c
View file @
bc412382
...
@@ -158,7 +158,7 @@ EXPORT_SYMBOL(cpufreq_get);
...
@@ -158,7 +158,7 @@ EXPORT_SYMBOL(cpufreq_get);
/*********************** cpufreq_sysctl interface ********************/
/*********************** cpufreq_sysctl interface ********************/
static
int
static
int
cpufreq_procctl
(
ctl_table
*
ctl
,
int
write
,
struct
file
*
filp
,
cpufreq_procctl
(
ctl_table
*
ctl
,
int
write
,
struct
file
*
filp
,
void
*
buffer
,
size_t
*
lenp
)
void
__user
*
buffer
,
size_t
*
lenp
)
{
{
char
buf
[
16
],
*
p
;
char
buf
[
16
],
*
p
;
int
cpu
=
(
int
)
ctl
->
extra1
;
int
cpu
=
(
int
)
ctl
->
extra1
;
...
@@ -195,9 +195,9 @@ cpufreq_procctl(ctl_table *ctl, int write, struct file *filp,
...
@@ -195,9 +195,9 @@ cpufreq_procctl(ctl_table *ctl, int write, struct file *filp,
}
}
static
int
static
int
cpufreq_sysctl
(
ctl_table
*
table
,
int
*
name
,
int
nlen
,
cpufreq_sysctl
(
ctl_table
*
table
,
int
__user
*
name
,
int
nlen
,
void
*
oldval
,
size_t
*
oldlenp
,
void
__user
*
oldval
,
size_t
__user
*
oldlenp
,
void
*
newval
,
size_t
newlen
,
void
**
context
)
void
__user
*
newval
,
size_t
newlen
,
void
**
context
)
{
{
int
cpu
=
(
int
)
table
->
extra1
;
int
cpu
=
(
int
)
table
->
extra1
;
...
...
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