aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-10-07 17:54:04 -0300
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-07 17:54:04 -0300
commitff08f6fe935ff0854990421e80d04c39c7c2a15a (patch)
tree18d34e97be191d24a895e91e8c638bb190f9d247 /lib
parent500ae9b0021e303de56aa929df3de071d9b629c2 (diff)
downloadhistory-ff08f6fe935ff0854990421e80d04c39c7c2a15a.tar.gz
o kernel/ksyms.c: move remaining EXPORT_SYMBOLs, remove this file from the tree
Diffstat (limited to 'lib')
-rw-r--r--lib/ctype.c3
-rw-r--r--lib/dump_stack.c2
-rw-r--r--lib/percpu_counter.c4
-rw-r--r--lib/string.c6
-rw-r--r--lib/vsprintf.c18
5 files changed, 31 insertions, 2 deletions
diff --git a/lib/ctype.c b/lib/ctype.c
index b5f72a5763ac63..d02ace14a322e5 100644
--- a/lib/ctype.c
+++ b/lib/ctype.c
@@ -5,6 +5,7 @@
*/
#include <linux/ctype.h>
+#include <linux/module.h>
unsigned char _ctype[] = {
_C,_C,_C,_C,_C,_C,_C,_C, /* 0-7 */
@@ -32,4 +33,4 @@ _U,_U,_U,_U,_U,_U,_U,_P,_U,_U,_U,_U,_U,_U,_U,_L, /* 208-223 */
_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L, /* 224-239 */
_L,_L,_L,_L,_L,_L,_L,_P,_L,_L,_L,_L,_L,_L,_L,_L}; /* 240-255 */
-
+EXPORT_SYMBOL(_ctype);
diff --git a/lib/dump_stack.c b/lib/dump_stack.c
index 47c2728ab8c7d3..53bff4c8452b52 100644
--- a/lib/dump_stack.c
+++ b/lib/dump_stack.c
@@ -11,3 +11,5 @@ void dump_stack(void)
printk(KERN_NOTICE
"This architecture does not implement dump_stack()\n");
}
+
+EXPORT_SYMBOL(dump_stack);
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index a9afaec00bdd83..2c5c7b5753616c 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -1,4 +1,4 @@
-
+#include <linux/module.h>
#include <linux/percpu_counter.h>
#include <linux/sched.h>
@@ -17,3 +17,5 @@ void percpu_counter_mod(struct percpu_counter *fbc, long amount)
fbc->counters[cpu].count = count;
put_cpu();
}
+
+EXPORT_SYMBOL(percpu_counter_mod);
diff --git a/lib/string.c b/lib/string.c
index 4917b54e605ff9..5c2ad6a174f44b 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -55,6 +55,8 @@ int strnicmp(const char *s1, const char *s2, size_t len)
}
return (int)c1 - (int)c2;
}
+
+EXPORT_SYMBOL(strnicmp);
#endif
#ifndef __HAVE_ARCH_STRCPY
@@ -325,6 +327,8 @@ size_t strspn(const char *s, const char *accept)
return count;
}
+
+EXPORT_SYMBOL(strspn);
#endif
/**
@@ -396,6 +400,8 @@ char * strsep(char **s, const char *ct)
return sbegin;
}
+
+EXPORT_SYMBOL(strsep);
#endif
#ifndef __HAVE_ARCH_MEMSET
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 0a12089169a61e..0803ac5438e122 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -15,6 +15,7 @@
*/
#include <stdarg.h>
+#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>
@@ -53,6 +54,8 @@ unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base)
return result;
}
+EXPORT_SYMBOL(simple_strtoul);
+
/**
* simple_strtol - convert a string to a signed long
* @cp: The start of the string
@@ -66,6 +69,8 @@ long simple_strtol(const char *cp,char **endp,unsigned int base)
return simple_strtoul(cp,endp,base);
}
+EXPORT_SYMBOL(simple_strtol);
+
/**
* simple_strtoull - convert a string to an unsigned long long
* @cp: The start of the string
@@ -97,6 +102,8 @@ unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base)
return result;
}
+EXPORT_SYMBOL(simple_strtoull);
+
/**
* simple_strtoll - convert a string to a signed long long
* @cp: The start of the string
@@ -458,6 +465,8 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
return str-buf;
}
+EXPORT_SYMBOL(vsnprintf);
+
/**
* snprintf - Format a string and place it in a buffer
* @buf: The buffer to place the result into
@@ -476,6 +485,8 @@ int snprintf(char * buf, size_t size, const char *fmt, ...)
return i;
}
+EXPORT_SYMBOL(snprintf);
+
/**
* vsprintf - Format a string and place it in a buffer
* @buf: The buffer to place the result into
@@ -490,6 +501,7 @@ int vsprintf(char *buf, const char *fmt, va_list args)
return vsnprintf(buf, 0xFFFFFFFFUL, fmt, args);
}
+EXPORT_SYMBOL(vsprintf);
/**
* sprintf - Format a string and place it in a buffer
@@ -508,6 +520,8 @@ int sprintf(char * buf, const char *fmt, ...)
return i;
}
+EXPORT_SYMBOL(sprintf);
+
/**
* vsscanf - Unformat a buffer into a list of arguments
* @buf: input buffer
@@ -707,6 +721,8 @@ int vsscanf(const char * buf, const char * fmt, va_list args)
return num;
}
+EXPORT_SYMBOL(vsscanf);
+
/**
* sscanf - Unformat a buffer into a list of arguments
* @buf: input buffer
@@ -723,3 +739,5 @@ int sscanf(const char * buf, const char * fmt, ...)
va_end(args);
return i;
}
+
+EXPORT_SYMBOL(sscanf);