[PATCH] Fix for module.c in current linus-2.5 BK

Art Haas (ahaas@airmail.net)
Wed, 2 Apr 2003 11:55:03 -0600


Hi.

It looks like the problem is a missing "k". The field "num_syms" is only
defined if CONFIG_KALLSYMS is defined.

Art Haas

===== kernel/module.c 1.72 vs edited =====
--- 1.72/kernel/module.c Mon Mar 24 19:31:40 2003
+++ edited/kernel/module.c Wed Apr 2 11:27:34 2003
@@ -1273,7 +1273,7 @@
goto cleanup;

/* Set up EXPORTed & EXPORT_GPLed symbols (section 0 is 0 length) */
- mod->num_syms = sechdrs[exportindex].sh_size / sizeof(*mod->syms);
+ mod->num_ksyms = sechdrs[exportindex].sh_size / sizeof(*mod->syms);
mod->syms = (void *)sechdrs[exportindex].sh_addr;
if (crcindex)
mod->crcs = (void *)sechdrs[crcindex].sh_addr;

-- 
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
 -- Theodore Roosevelt, Kansas City Star, 1918
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/