git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
string: factorize skip_spaces and export it to be generally available
[safe/jmp/linux-2.6]
/
scripts
/
mod
/
modpost.c
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index
94e71ef
..
801a16a
100644
(file)
--- a/
scripts/mod/modpost.c
+++ b/
scripts/mod/modpost.c
@@
-691,7
+691,7
@@
static int number_prefix(const char *sym)
* The $ syntax is for sections where ld append a dot number
* to make section name unique.
*/
* The $ syntax is for sections where ld append a dot number
* to make section name unique.
*/
-int match(const char *sym, const char * const pat[])
+
static
int match(const char *sym, const char * const pat[])
{
const char *p;
while (*pat) {
{
const char *p;
while (*pat) {
@@
-1196,7
+1196,7
@@
static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
"The variable %s references\n"
"the %s %s%s%s\n"
"If the reference is valid then annotate the\n"
"The variable %s references\n"
"the %s %s%s%s\n"
"If the reference is valid then annotate the\n"
- "variable with __init* (see linux/init.h) "
+ "variable with __init*
or __refdata
(see linux/init.h) "
"or name the variable:\n",
fromsym, to, sec2annotation(tosec), tosym, to_p);
while (*s)
"or name the variable:\n",
fromsym, to, sec2annotation(tosec), tosym, to_p);
while (*s)
@@
-1746,7
+1746,7
@@
static void add_header(struct buffer *b, struct module *mod)
buf_printf(b, "};\n");
}
buf_printf(b, "};\n");
}
-void add_staging_flag(struct buffer *b, const char *name)
+
static
void add_staging_flag(struct buffer *b, const char *name)
{
static const char *staging_dir = "drivers/staging";
{
static const char *staging_dir = "drivers/staging";