Messages in this thread Patch in this message | | | From | Manfred Schwarb <> | Subject | [2.4.28] Build Error 1: missing THIS_MODULE in dn_neigh.c | Date | Fri, 19 Nov 2004 05:03:14 -0500 |
| |
Hi, building vanilla 2.4.28, I got this:
dn_neigh.c:584: error: `THIS_MODULE' undeclared here (not in a function) dn_neigh.c:584: error: initializer element is not constant dn_neigh.c:584: error: (near initialization for `dn_neigh_seq_fops.owner') make[2]: *** [dn_neigh.o] Error 1 make[1]: *** [_modsubdir_decnet] Error 2 make: *** [_mod_net] Error 2
I think, a patch could look like this:
--- linux-2.4.28/net/decnet/dn_neigh.c.orig 2004-11-18 22:24:38.000000000 +0100 +++ linux-2.4.28/net/decnet/dn_neigh.c 2004-11-18 22:25:24.000000000 +0100 @@ -26,6 +26,7 @@ #include <linux/config.h> #include <linux/net.h> +#include <linux/module.h> #include <linux/socket.h> #include <linux/if_arp.h> #include <linux/if_ether.h> - 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/
| |