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: cleanups
Date: Thu, 3 Mar 2005 22:47:09 +0100 [thread overview]
Message-ID: <20050303214709.GO4608@stusta.de> (raw)
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;
reply other threads:[~2005-03-03 21: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=20050303214709.GO4608@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox