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
7a08b07c
Commit
7a08b07c
authored
May 28, 2004
by
Alexander Viro
Committed by
Linus Torvalds
May 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: parport __user annotation (sysctls)
parent
072ab23d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/parport/procfs.c
drivers/parport/procfs.c
+6
-6
No files found.
drivers/parport/procfs.c
View file @
7a08b07c
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#define PARPORT_MAX_SPINTIME_VALUE 1000
#define PARPORT_MAX_SPINTIME_VALUE 1000
static
int
do_active_device
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
static
int
do_active_device
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
result
,
size_t
*
lenp
)
void
__user
*
result
,
size_t
*
lenp
)
{
{
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
char
buffer
[
256
];
char
buffer
[
256
];
...
@@ -70,7 +70,7 @@ static int do_active_device(ctl_table *table, int write, struct file *filp,
...
@@ -70,7 +70,7 @@ static int do_active_device(ctl_table *table, int write, struct file *filp,
#ifdef CONFIG_PARPORT_1284
#ifdef CONFIG_PARPORT_1284
static
int
do_autoprobe
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
static
int
do_autoprobe
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
result
,
size_t
*
lenp
)
void
__user
*
result
,
size_t
*
lenp
)
{
{
struct
parport_device_info
*
info
=
table
->
extra2
;
struct
parport_device_info
*
info
=
table
->
extra2
;
const
char
*
str
;
const
char
*
str
;
...
@@ -112,7 +112,7 @@ static int do_autoprobe(ctl_table *table, int write, struct file *filp,
...
@@ -112,7 +112,7 @@ static int do_autoprobe(ctl_table *table, int write, struct file *filp,
#endif
/* IEEE1284.3 support. */
#endif
/* IEEE1284.3 support. */
static
int
do_hardware_base_addr
(
ctl_table
*
table
,
int
write
,
static
int
do_hardware_base_addr
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
result
,
struct
file
*
filp
,
void
__user
*
result
,
size_t
*
lenp
)
size_t
*
lenp
)
{
{
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
...
@@ -140,7 +140,7 @@ static int do_hardware_base_addr (ctl_table *table, int write,
...
@@ -140,7 +140,7 @@ static int do_hardware_base_addr (ctl_table *table, int write,
}
}
static
int
do_hardware_irq
(
ctl_table
*
table
,
int
write
,
static
int
do_hardware_irq
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
result
,
struct
file
*
filp
,
void
__user
*
result
,
size_t
*
lenp
)
size_t
*
lenp
)
{
{
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
...
@@ -168,7 +168,7 @@ static int do_hardware_irq (ctl_table *table, int write,
...
@@ -168,7 +168,7 @@ static int do_hardware_irq (ctl_table *table, int write,
}
}
static
int
do_hardware_dma
(
ctl_table
*
table
,
int
write
,
static
int
do_hardware_dma
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
result
,
struct
file
*
filp
,
void
__user
*
result
,
size_t
*
lenp
)
size_t
*
lenp
)
{
{
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
...
@@ -196,7 +196,7 @@ static int do_hardware_dma (ctl_table *table, int write,
...
@@ -196,7 +196,7 @@ static int do_hardware_dma (ctl_table *table, int write,
}
}
static
int
do_hardware_modes
(
ctl_table
*
table
,
int
write
,
static
int
do_hardware_modes
(
ctl_table
*
table
,
int
write
,
struct
file
*
filp
,
void
*
result
,
struct
file
*
filp
,
void
__user
*
result
,
size_t
*
lenp
)
size_t
*
lenp
)
{
{
struct
parport
*
port
=
(
struct
parport
*
)
table
->
extra1
;
struct
parport
*
port
=
(
struct
parport
*
)
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