From: Adrian Bunk <bunk@stusta.de>
To: george@mvista.com
Cc: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] kernel/posix-timers.c: make some functions static
Date: Sun, 12 Dec 2004 20:54:01 +0100 [thread overview]
Message-ID: <20041212195401.GJ22324@stusta.de> (raw)
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;
reply other threads:[~2004-12-12 19:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041212195401.GJ22324@stusta.de \
--to=bunk@stusta.de \
--cc=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.