lkml.org 
[lkml]   [2004]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[2.4.28] Build Error 1: missing THIS_MODULE in dn_neigh.c
Date
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/
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.031 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site