modpost did not warn on symbols which are exported but not defined
in the current module, but it should.
Also, fix a compile time warning, and have bk ignore *.mod.c files.
for (s = mod->unres; s; s = s->next) {
exp = find_symbol(s->name);
- if (!exp) {
+ if (!exp || exp->module == mod) {
if (have_vmlinux)
fprintf(stderr, "*** Warning: \"%s\" [%s.ko] "
"undefined!\n", s->name, mod->name);
{
struct module *mod;
struct buffer buf = { };
- struct symbol *s;
char fname[SZ];
for (; argv[1]; argv++) {