linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.4.28] Build Error 1: missing THIS_MODULE in dn_neigh.c
@ 2004-11-19 10:03 Manfred Schwarb
  0 siblings, 0 replies; only message in thread
From: Manfred Schwarb @ 2004-11-19 10:03 UTC (permalink / raw)
  To: linux-kernel, Marcelo Tosatti, patrick; +Cc: Manfred Schwarb

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-19 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-19 10:03 [2.4.28] Build Error 1: missing THIS_MODULE in dn_neigh.c Manfred Schwarb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).