lkml.org 
[lkml]   [2004]   [Dec]   [12]   [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: 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 <bunk@stusta.de>

--- linux-2.6.10-rc2-mm4-full/include/linux/posix-timers.h.old 2004-12-12 03:02:00.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/include/linux/posix-timers.h 2004-12-12 03:02:39.000000000 +0100
@@ -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);
--- linux-2.6.10-rc2-mm4-full/kernel/posix-timers.c.old 2004-12-12 03:00:09.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/kernel/posix-timers.c 2004-12-12 03:03:05.000000000 +0100
@@ -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;
-
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:08    [W:0.032 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site