Commit 81e1b9a1 authored by Ulrich Drepper's avatar Ulrich Drepper Committed by Linus Torvalds

[PATCH] more generic syscall return value type fixes

It was good to see the syscall return value types being fixed but still
some cases are missing.  I attach a patch which fixes at least those
which cause problems to me in the moment.
parent ec1120f7
...@@ -422,7 +422,7 @@ release_posix_timer(struct k_itimer *tmr) ...@@ -422,7 +422,7 @@ release_posix_timer(struct k_itimer *tmr)
/* Create a POSIX.1b interval timer. */ /* Create a POSIX.1b interval timer. */
asmlinkage int asmlinkage long
sys_timer_create(clockid_t which_clock, sys_timer_create(clockid_t which_clock,
struct sigevent *timer_event_spec, timer_t * created_timer_id) struct sigevent *timer_event_spec, timer_t * created_timer_id)
{ {
...@@ -662,7 +662,7 @@ do_timer_gettime(struct k_itimer *timr, struct itimerspec *cur_setting) ...@@ -662,7 +662,7 @@ do_timer_gettime(struct k_itimer *timr, struct itimerspec *cur_setting)
} }
} }
/* Get the time remaining on a POSIX.1b interval timer. */ /* Get the time remaining on a POSIX.1b interval timer. */
asmlinkage int asmlinkage long
sys_timer_gettime(timer_t timer_id, struct itimerspec *setting) sys_timer_gettime(timer_t timer_id, struct itimerspec *setting)
{ {
struct k_itimer *timr; struct k_itimer *timr;
...@@ -694,7 +694,7 @@ sys_timer_gettime(timer_t timer_id, struct itimerspec *setting) ...@@ -694,7 +694,7 @@ sys_timer_gettime(timer_t timer_id, struct itimerspec *setting)
*/ */
asmlinkage int asmlinkage long
sys_timer_getoverrun(timer_t timer_id) sys_timer_getoverrun(timer_t timer_id)
{ {
struct k_itimer *timr; struct k_itimer *timr;
...@@ -847,7 +847,7 @@ do_timer_settime(struct k_itimer *timr, int flags, ...@@ -847,7 +847,7 @@ do_timer_settime(struct k_itimer *timr, int flags,
} }
/* Set a POSIX.1b interval timer */ /* Set a POSIX.1b interval timer */
asmlinkage int asmlinkage long
sys_timer_settime(timer_t timer_id, int flags, sys_timer_settime(timer_t timer_id, int flags,
const struct itimerspec *new_setting, const struct itimerspec *new_setting,
struct itimerspec *old_setting) struct itimerspec *old_setting)
...@@ -921,7 +921,7 @@ do_timer_delete(struct k_itimer *timer) ...@@ -921,7 +921,7 @@ do_timer_delete(struct k_itimer *timer)
} }
/* Delete a POSIX.1b interval timer. */ /* Delete a POSIX.1b interval timer. */
asmlinkage int asmlinkage long
sys_timer_delete(timer_t timer_id) sys_timer_delete(timer_t timer_id)
{ {
struct k_itimer *timer; struct k_itimer *timer;
...@@ -1056,7 +1056,7 @@ do_posix_clock_monotonic_settime(struct timespec *tp) ...@@ -1056,7 +1056,7 @@ do_posix_clock_monotonic_settime(struct timespec *tp)
return -EINVAL; return -EINVAL;
} }
asmlinkage int asmlinkage long
sys_clock_settime(clockid_t which_clock, const struct timespec *tp) sys_clock_settime(clockid_t which_clock, const struct timespec *tp)
{ {
struct timespec new_tp; struct timespec new_tp;
...@@ -1071,7 +1071,7 @@ sys_clock_settime(clockid_t which_clock, const struct timespec *tp) ...@@ -1071,7 +1071,7 @@ sys_clock_settime(clockid_t which_clock, const struct timespec *tp)
new_tp.tv_nsec /= NSEC_PER_USEC; new_tp.tv_nsec /= NSEC_PER_USEC;
return do_sys_settimeofday((struct timeval *) &new_tp, NULL); return do_sys_settimeofday((struct timeval *) &new_tp, NULL);
} }
asmlinkage int asmlinkage long
sys_clock_gettime(clockid_t which_clock, struct timespec *tp) sys_clock_gettime(clockid_t which_clock, struct timespec *tp)
{ {
struct timespec rtn_tp; struct timespec rtn_tp;
...@@ -1090,7 +1090,7 @@ sys_clock_gettime(clockid_t which_clock, struct timespec *tp) ...@@ -1090,7 +1090,7 @@ sys_clock_gettime(clockid_t which_clock, struct timespec *tp)
return error; return error;
} }
asmlinkage int asmlinkage long
sys_clock_getres(clockid_t which_clock, struct timespec *tp) sys_clock_getres(clockid_t which_clock, struct timespec *tp)
{ {
struct timespec rtn_tp; struct timespec rtn_tp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment