projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fixup nice() return value and duplicate volatiles
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index cc30a15ea189b2bad02a2c64ce5a5af5a3dd85ca..a87fcef472a951a45e174acd5e811628ad789319 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-424,12
+424,12
@@
extern int init_random_state(struct thread_data *);
* Naturally this would not work for any type of contended semaphore or
* for real locking.
*/
* Naturally this would not work for any type of contended semaphore or
* for real locking.
*/
-static inline void fio_sem_init(volatile int
volatile
*sem, int val)
+static inline void fio_sem_init(volatile int *sem, int val)
{
*sem = val;
}
{
*sem = val;
}
-static inline void fio_sem_down(volatile int
volatile
*sem)
+static inline void fio_sem_down(volatile int *sem)
{
while (*sem == 0)
usleep(10000);
{
while (*sem == 0)
usleep(10000);
@@
-437,7
+437,7
@@
static inline void fio_sem_down(volatile int volatile *sem)
(*sem)--;
}
(*sem)--;
}
-static inline void fio_sem_up(volatile int
volatile
*sem)
+static inline void fio_sem_up(volatile int *sem)
{
(*sem)++;
}
{
(*sem)++;
}