ChangeSet 1.2231.1.143, 2005/03/28 19:56:15-08:00, [EMAIL PROTECTED]
[PATCH] Exports to enable clock driver modules
The following exports are necessary to allow loadable modules to define
new
clocks. Without these the mmtimer driver cannot be build correctly as a
module (there is another mmtimer specific fix necessary to get it to
build
properly but that will be a separate patch):
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
posix-timers.c | 7 ++++++-
time.c | 2 ++
2 files changed, 8 insertions(+), 1 deletion(-)
diff -Nru a/kernel/posix-timers.c b/kernel/posix-timers.c
--- a/kernel/posix-timers.c 2005-03-28 21:37:57 -08:00
+++ b/kernel/posix-timers.c 2005-03-28 21:37:57 -08:00
@@ -46,6 +46,7 @@
#include <linux/syscalls.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
+#include <linux/module.h>
#ifndef div_long_long_rem
#include <asm/div64.h>
@@ -460,6 +461,7 @@
timr->it_process);
}
}
+EXPORT_SYMBOL_GPL(posix_timer_event);
/*
* This function gets called when a POSIX.1b interval timer expires. It
@@ -555,6 +557,7 @@
posix_clocks[clock_id] = *new_clock;
}
+EXPORT_SYMBOL_GPL(register_posix_clock);
static struct k_itimer * alloc_posix_timer(void)
{
@@ -1246,16 +1249,17 @@
return do_posix_clock_monotonic_get(CLOCK_MONOTONIC, tp);
}
-
int do_posix_clock_nosettime(clockid_t clockid, struct timespec *tp)
{
return -EINVAL;
}
+EXPORT_SYMBOL_GPL(do_posix_clock_nosettime);
int do_posix_clock_notimer_create(struct k_itimer *timer)
{
return -EINVAL;
}
+EXPORT_SYMBOL_GPL(do_posix_clock_notimer_create);
int do_posix_clock_nonanosleep(clockid_t clock, int flags, struct timespec *t)
{
@@ -1265,6 +1269,7 @@
return -ENOTSUP;
#endif
}
+EXPORT_SYMBOL_GPL(do_posix_clock_nonanosleep);
asmlinkage long
sys_clock_settime(clockid_t which_clock, const struct timespec __user *tp)
diff -Nru a/kernel/time.c b/kernel/time.c
--- a/kernel/time.c 2005-03-28 21:37:57 -08:00
+++ b/kernel/time.c 2005-03-28 21:37:57 -08:00
@@ -34,6 +34,7 @@
#include <linux/syscalls.h>
#include <linux/security.h>
#include <linux/fs.h>
+#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
@@ -503,6 +504,7 @@
tv->tv_sec = sec;
tv->tv_nsec = nsec;
}
+EXPORT_SYMBOL_GPL(getnstimeofday);
int do_settimeofday (struct timespec *tv)
{
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html