Skip to contentSkip to conversation

kernel/posix-timers.c: cleanups

PATCH New Adrian Bunk 1 participant 1 message Mar 3, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/posix-timers.c: cleanups

This patch contains the following cleanups:
- make a needlessly global function static
- remove the unused global function do_posix_clock_notimer_create

---

 include/linux/posix-timers.h |    3 +--
 kernel/posix-timers.c        |    9 ++-------
 2 files changed, 3 insertions(+), 9 deletions(-)
include/linux/posix-timers.h renamed from include/linux/posix-timers.h.old +1 -2
@@ -89,8 +89,7 @@
 
 void register_posix_clock(clockid_t 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 handlers for nanosleep and settime */
 int do_posix_clock_nonanosleep(clockid_t, int flags, struct timespec *);
 int do_posix_clock_nosettime(clockid_t, struct timespec *tp);
 
kernel/posix-timers.c renamed from kernel/posix-timers.c.old +2 -7
@@ -1252,11 +1252,6 @@
 	return -EINVAL;
 }
 
-int do_posix_clock_notimer_create(struct k_itimer *timer)
-{
-	return -EINVAL;
-}
-
 int do_posix_clock_nonanosleep(clockid_t clock, int flags, struct timespec *t)
 {
 #ifndef ENOTSUP
@@ -1423,7 +1418,7 @@
 	up(&clock_was_set_lock);
 }
 
-long clock_nanosleep_restart(struct restart_block *restart_block);
+static long clock_nanosleep_restart(struct restart_block *restart_block);
 
 asmlinkage long
 sys_clock_nanosleep(clockid_t which_clock, int flags,
@@ -1562,7 +1557,7 @@
 /*
  * This will restart clock_nanosleep.
  */
-long
+static long
 clock_nanosleep_restart(struct restart_block *restart_block)
 {
 	struct timespec t;