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
830ae0da
Commit
830ae0da
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 ipc/sem
parent
9f31c724
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ipc/sem.c
ipc/sem.c
+5
-5
No files found.
ipc/sem.c
View file @
830ae0da
...
@@ -425,7 +425,7 @@ static void freeary (struct sem_array *sma, int id)
...
@@ -425,7 +425,7 @@ static void freeary (struct sem_array *sma, int id)
ipc_rcu_free
(
sma
,
size
);
ipc_rcu_free
(
sma
,
size
);
}
}
static
unsigned
long
copy_semid_to_user
(
void
*
buf
,
struct
semid64_ds
*
in
,
int
version
)
static
unsigned
long
copy_semid_to_user
(
void
__user
*
buf
,
struct
semid64_ds
*
in
,
int
version
)
{
{
switch
(
version
)
{
switch
(
version
)
{
case
IPC_64
:
case
IPC_64
:
...
@@ -686,7 +686,7 @@ struct sem_setbuf {
...
@@ -686,7 +686,7 @@ struct sem_setbuf {
mode_t
mode
;
mode_t
mode
;
};
};
static
inline
unsigned
long
copy_semid_from_user
(
struct
sem_setbuf
*
out
,
void
*
buf
,
int
version
)
static
inline
unsigned
long
copy_semid_from_user
(
struct
sem_setbuf
*
out
,
void
__user
*
buf
,
int
version
)
{
{
switch
(
version
)
{
switch
(
version
)
{
case
IPC_64
:
case
IPC_64
:
...
@@ -960,13 +960,13 @@ static struct sem_undo *find_undo(int semid)
...
@@ -960,13 +960,13 @@ static struct sem_undo *find_undo(int semid)
return
un
;
return
un
;
}
}
asmlinkage
long
sys_semop
(
int
semid
,
struct
sembuf
*
tsops
,
unsigned
nsops
)
asmlinkage
long
sys_semop
(
int
semid
,
struct
sembuf
__user
*
tsops
,
unsigned
nsops
)
{
{
return
sys_semtimedop
(
semid
,
tsops
,
nsops
,
NULL
);
return
sys_semtimedop
(
semid
,
tsops
,
nsops
,
NULL
);
}
}
asmlinkage
long
sys_semtimedop
(
int
semid
,
struct
sembuf
*
tsops
,
asmlinkage
long
sys_semtimedop
(
int
semid
,
struct
sembuf
__user
*
tsops
,
unsigned
nsops
,
const
struct
timespec
*
timeout
)
unsigned
nsops
,
const
struct
timespec
__user
*
timeout
)
{
{
int
error
=
-
EINVAL
;
int
error
=
-
EINVAL
;
struct
sem_array
*
sma
;
struct
sem_array
*
sma
;
...
...
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