lkml.org 
[lkml]   [2005]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] 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

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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.033 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site