From 2443c7a6f12bc330fcf88949786703d358f2f771 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 7 Oct 2007 14:27:24 +0200 Subject: export symbols --- common/clock.c | 4 ++++ common/console.c | 11 +++++++++++ common/date.c | 1 + common/env.c | 3 +++ common/misc.c | 1 + 5 files changed, 20 insertions(+) (limited to 'common') diff --git a/common/clock.c b/common/clock.c index fb2e0e43ab..4069d4e83b 100644 --- a/common/clock.c +++ b/common/clock.c @@ -54,6 +54,7 @@ uint64_t get_time_ns(void) time_ns += ns_offset; return time_ns; } +EXPORT_SYMBOL(get_time_ns); /** * clocksource_hz2mult - calculates mult from hz and shift @@ -89,6 +90,7 @@ int is_timeout(uint64_t start_ns, uint64_t time_offset_ns) else return 0; } +EXPORT_SYMBOL(is_timeout); void udelay(unsigned long usecs) { @@ -96,6 +98,7 @@ void udelay(unsigned long usecs) while(!is_timeout(start, usecs * 1000)); } +EXPORT_SYMBOL(udelay); void mdelay(unsigned long msecs) { @@ -103,6 +106,7 @@ void mdelay(unsigned long msecs) while(!is_timeout(start, msecs * 1000000)); } +EXPORT_SYMBOL(mdelay); int init_clock(struct clocksource *cs) { diff --git a/common/console.c b/common/console.c index 685271ceb0..870e860625 100644 --- a/common/console.c +++ b/common/console.c @@ -134,6 +134,7 @@ int console_register(struct console_device *newcdev) cdev = cdev->next; } } +EXPORT_SYMBOL(console_register); int getc_raw(void) { @@ -176,6 +177,7 @@ int getc(void) kfifo_getc(console_buffer, &ch); return ch; } +EXPORT_SYMBOL(getc); int fgetc(int fd) { @@ -185,6 +187,7 @@ int fgetc(int fd) return getc(); return read(fd, &c, 1); } +EXPORT_SYMBOL(fgetc); int tstc(void) { @@ -198,6 +201,7 @@ int tstc(void) return 0; } +EXPORT_SYMBOL(tstc); void __initdata *early_console_base; @@ -233,6 +237,7 @@ void console_putc(unsigned int ch, char c) hang(); } } +EXPORT_SYMBOL(console_putc); int fputc(int fd, char c) { @@ -250,6 +255,7 @@ int fputc(int fd, char c) return write(fd, &c, 1); return 0; } +EXPORT_SYMBOL(fputc); void console_puts(unsigned int ch, const char *str) { @@ -261,6 +267,7 @@ void console_puts(unsigned int ch, const char *str) s++; } } +EXPORT_SYMBOL(console_puts); int fputs(int fd, const char *s) { @@ -272,6 +279,7 @@ int fputs(int fd, const char *s) return write(fd, s, strlen(s)); return 0; } +EXPORT_SYMBOL(fputs); void fprintf (int file, const char *fmt, ...) { @@ -290,6 +298,7 @@ void fprintf (int file, const char *fmt, ...) /* Print the string */ fputs (file, printbuffer); } +EXPORT_SYMBOL(fprintf); int printf (const char *fmt, ...) { @@ -327,6 +336,7 @@ int vprintf (const char *fmt, va_list args) return i; } +EXPORT_SYMBOL(vprintf); /* test if ctrl-c was pressed */ int ctrlc (void) @@ -335,6 +345,7 @@ int ctrlc (void) return 1; return 0; } +EXPORT_SYMBOL(ctrlc); #ifdef CONFIG_HAS_EARLY_INIT diff --git a/common/date.c b/common/date.c index d9f911cd51..c656b9678a 100644 --- a/common/date.c +++ b/common/date.c @@ -117,6 +117,7 @@ void to_tm(int tim, struct rtc_time * tm) */ GregorianDay(tm); } +EXPORT_SYMBOL(to_tm); /* Converts Gregorian date to seconds since 1970-01-01 00:00:00. * Assumes input in normal date format, i.e. 1980-12-31 23:59:59 diff --git a/common/env.c b/common/env.c index 18a0d32c04..62134bda33 100644 --- a/common/env.c +++ b/common/env.c @@ -143,6 +143,7 @@ const char *getenv (const char *name) } return NULL; } +EXPORT_SYMBOL(getenv); static int setenv_raw(struct variable_d *var, const char *name, const char *value) { @@ -205,6 +206,7 @@ int setenv(const char *name, const char *value) return 0; } +EXPORT_SYMBOL(setenv); int export(const char *varname) { @@ -217,6 +219,7 @@ int export(const char *varname) } return -1; } +EXPORT_SYMBOL(export); static int do_printenv (cmd_tbl_t *cmdtp, int argc, char *argv[]) { diff --git a/common/misc.c b/common/misc.c index ee11ead87d..6970ab7e6e 100644 --- a/common/misc.c +++ b/common/misc.c @@ -162,3 +162,4 @@ void perror(const char *s) printf("%s returned with %d\n", s, errno); #endif } +EXPORT_SYMBOL(perror); -- cgit v1.2.3