* [2.6 patch] kernel/posix-timers.c: cleanups
@ 2005-03-03 21:47 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2005-03-03 21:47 UTC (permalink / raw)
To: george; +Cc: linux-net, linux-kernel
This patch contains the following cleanups:
- make a needlessly global function static
- remove the unused global function do_posix_clock_notimer_create
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/linux/posix-timers.h | 3 +--
kernel/posix-timers.c | 9 ++-------
2 files changed, 3 insertions(+), 9 deletions(-)
--- linux-2.6.11-rc5-mm1-full/include/linux/posix-timers.h.old 2005-03-03 16:57:39.000000000 +0100
+++ linux-2.6.11-rc5-mm1-full/include/linux/posix-timers.h 2005-03-03 16:57:51.000000000 +0100
@@ -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);
--- linux-2.6.11-rc5-mm1-full/kernel/posix-timers.c.old 2005-03-03 16:56:44.000000000 +0100
+++ linux-2.6.11-rc5-mm1-full/kernel/posix-timers.c 2005-03-03 16:58:32.000000000 +0100
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-03 21:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 21:47 [2.6 patch] kernel/posix-timers.c: cleanups Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox