kernel/posix-timers.c: make some functions static
PATCH 1/1 kernel/posix-timers.c: make some functions static
The patch below makes some functions without external users static.
diffstat output:
include/linux/posix-timers.h | 4 +--- kernel/posix-timers.c | 15 +++++++++------ 2 files changed, 10 insertions(+), 9 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
include/linux/posix-timers.h renamed from include/linux/posix-timers.h.old +1 -3
@@ -46,10 +46,8 @@void register_posix_clock (int clock_id,struct k_clock *new_clock); -/* Error handlers for timer_create, nanosleep and settime */ -int do_posix_clock_notimer_create (struct k_itimer *timer); +/* Error handler for nanosleep */ int do_posix_clock_nonanosleep (int which_clock,int flags,struct timespec * t); -int do_posix_clock_nosettime (struct timespec *tp);/* function to call to trigger timer event */ int posix_timer_event (struct k_itimer *timr,int si_private);
kernel/posix-timers.c renamed from kernel/posix-timers.c.old +9 -6
@@ -196,6 +196,8 @@static int do_posix_clock_process_gettime (struct timespec *tp);static int do_posix_clock_thread_gettime (struct timespec *tp);static struct k_itimer *lock_timer (timer_t timer_id,unsigned long *flags); +static int do_posix_clock_nosettime (struct timespec *tp); +static int do_posix_clock_notimer_create (struct k_itimer *timer);static inline void unlock_timer (struct k_itimer *timr,unsigned long flags) {
@@ -1215,12 +1217,13 @@return 0 ; } -int do_posix_clock_nosettime (struct timespec *tp) +static int do_posix_clock_nosettime (struct timespec *tp) {return -EINVAL ; } -int do_posix_clock_notimer_create (struct k_itimer *timer) { +static int do_posix_clock_notimer_create (struct k_itimer *timer) +{return -EINVAL ; }
@@ -1481,9 +1484,9 @@up (&clock_was_set_lock); } -long clock_nanosleep_restart (struct restart_block *restart_block); +static long clock_nanosleep_restart (struct restart_block *restart_block); -extern long do_clock_nanosleep (clockid_t which_clock,int flags, +static long do_clock_nanosleep (clockid_t which_clock,int flags,struct timespec *t);asmlinkage long
@@ -1521,7 +1524,7 @@return ret; } -long +static long do_clock_nanosleep (clockid_t which_clock,int flags,struct timespec *tsave) {struct timespec t, dum;
@@ -1625,7 +1628,7 @@/* * This will restart clock_nanosleep. */ -long +static long clock_nanosleep_restart (struct restart_block *restart_block) {struct timespec t;