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
0dac851a
Commit
0dac851a
authored
Sep 08, 2003
by
Andries E. Brouwer
Committed by
Linus Torvalds
Sep 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse fix for kmsg
parent
b81f362a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/proc/kmsg.c
fs/proc/kmsg.c
+4
-4
No files found.
fs/proc/kmsg.c
View file @
0dac851a
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
extern
wait_queue_head_t
log_wait
;
extern
wait_queue_head_t
log_wait
;
extern
int
do_syslog
(
int
type
,
char
*
bug
,
int
count
);
extern
int
do_syslog
(
int
type
,
char
__user
*
bug
,
int
count
);
static
int
kmsg_open
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
kmsg_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
{
...
@@ -30,13 +30,13 @@ static int kmsg_release(struct inode * inode, struct file * file)
...
@@ -30,13 +30,13 @@ static int kmsg_release(struct inode * inode, struct file * file)
return
0
;
return
0
;
}
}
static
ssize_t
kmsg_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_t
kmsg_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
return
do_syslog
(
2
,
buf
,
count
);
return
do_syslog
(
2
,
buf
,
count
);
}
}
static
unsigned
int
kmsg_poll
(
struct
file
*
file
,
poll_table
*
wait
)
static
unsigned
int
kmsg_poll
(
struct
file
*
file
,
poll_table
*
wait
)
{
{
poll_wait
(
file
,
&
log_wait
,
wait
);
poll_wait
(
file
,
&
log_wait
,
wait
);
if
(
do_syslog
(
9
,
0
,
0
))
if
(
do_syslog
(
9
,
0
,
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