* Exports to enable clock driver modules
@ 2005-03-15 4:37 Christoph Lameter
2005-03-15 4:52 ` Andrew Morton
2005-03-15 5:29 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Lameter @ 2005-03-15 4:37 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, roland, sivanich
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 <clameter@sgi.com>
Index: linux-2.6.11/kernel/time.c
===================================================================
--- linux-2.6.11.orig/kernel/time.c 2005-03-01 23:37:50.000000000 -0800
+++ linux-2.6.11/kernel/time.c 2005-03-14 20:24:02.000000000 -0800
@@ -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>
@@ -495,6 +496,8 @@ void getnstimeofday (struct timespec *tv
tv->tv_nsec = nsec;
}
+EXPORT_SYMBOL(getnstimeofday);
+
int do_settimeofday (struct timespec *tv)
{
time_t wtm_sec, sec = tv->tv_sec;
Index: linux-2.6.11/kernel/posix-timers.c
===================================================================
--- linux-2.6.11.orig/kernel/posix-timers.c 2005-03-01 23:38:09.000000000 -0800
+++ linux-2.6.11/kernel/posix-timers.c 2005-03-14 20:24:02.000000000 -0800
@@ -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>
@@ -397,6 +398,8 @@ int posix_timer_event(struct k_itimer *t
}
}
+EXPORT_SYMBOL(posix_timer_event);
+
/*
* This function gets called when a POSIX.1b interval timer expires. It
* is used as a callback from the kernel internal timer. The
@@ -491,6 +494,8 @@ void register_posix_clock(int clock_id,
posix_clocks[clock_id] = *new_clock;
}
+EXPORT_SYMBOL(register_posix_clock);
+
static struct k_itimer * alloc_posix_timer(void)
{
struct k_itimer *tmr;
@@ -1198,11 +1203,15 @@ int do_posix_clock_nosettime(struct time
return -EINVAL;
}
+EXPORT_SYMBOL(do_posix_clock_nosettime);
+
int do_posix_clock_notimer_create(struct k_itimer *timer)
{
return -EINVAL;
}
+EXPORT_SYMBOL(do_posix_clock_notimer_create);
+
int do_posix_clock_nonanosleep(int which_clock, int flags, struct timespec *t)
{
#ifndef ENOTSUP
@@ -1212,6 +1221,8 @@ int do_posix_clock_nonanosleep(int which
#endif
}
+EXPORT_SYMBOL(do_posix_clock_nonanosleep);
+
asmlinkage long
sys_clock_settime(clockid_t which_clock, const struct timespec __user *tp)
{
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Exports to enable clock driver modules
2005-03-15 4:37 Exports to enable clock driver modules Christoph Lameter
@ 2005-03-15 4:52 ` Andrew Morton
2005-03-15 5:29 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2005-03-15 4:52 UTC (permalink / raw)
To: Christoph Lameter; +Cc: linux-kernel, roland, sivanich
Christoph Lameter <clameter@sgi.com> wrote:
>
> The following exports are necessary to allow loadable modules to define
> new clocks.
I'll convert these to EXPORT_SYMBOL_GPL, OK?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Exports to enable clock driver modules
2005-03-15 4:37 Exports to enable clock driver modules Christoph Lameter
2005-03-15 4:52 ` Andrew Morton
@ 2005-03-15 5:29 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2005-03-15 5:29 UTC (permalink / raw)
To: Christoph Lameter; +Cc: akpm, linux-kernel, roland, sivanich
On Mon, Mar 14, 2005 at 08:37:43PM -0800, Christoph Lameter wrote:
> 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):
I'd say just disallow modular mmtimer instead.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-15 5:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 4:37 Exports to enable clock driver modules Christoph Lameter
2005-03-15 4:52 ` Andrew Morton
2005-03-15 5:29 ` Christoph Hellwig
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.