Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54132
b: refs/heads/master
c: 2a11665
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Sam Ravnborg committed May 2, 2007
1 parent 7638e49 commit b0403e1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63431e75691c410819023ab0e6cd047cbfcf64e2
refs/heads/master: 2a11665945d510e1a4df8dc44dc3668b01945ade
22 changes: 19 additions & 3 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ void warn(const char *fmt, ...)
va_end(arglist);
}

void merror(const char *fmt, ...)
{
va_list arglist;

fprintf(stderr, "ERROR: ");

va_start(arglist, fmt);
vfprintf(stderr, fmt, arglist);
va_end(arglist);
}

static int is_vmlinux(const char *modname)
{
const char *myname;
Expand Down Expand Up @@ -1307,9 +1318,14 @@ static int add_versions(struct buffer *b, struct module *mod)
exp = find_symbol(s->name);
if (!exp || exp->module == mod) {
if (have_vmlinux && !s->weak) {
warn("\"%s\" [%s.ko] undefined!\n",
s->name, mod->name);
err = warn_unresolved ? 0 : 1;
if (warn_unresolved) {
warn("\"%s\" [%s.ko] undefined!\n",
s->name, mod->name);
} else {
merror("\"%s\" [%s.ko] undefined!\n",
s->name, mod->name);
err = 1;
}
}
continue;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/scripts/mod/modpost.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ void release_file(void *file, unsigned long size);

void fatal(const char *fmt, ...);
void warn(const char *fmt, ...);
void merror(const char *fmt, ...);

0 comments on commit b0403e1

Please sign in to comment.