Skip to contentSkip to conversation

compile fix for neighbour scalability backport

PATCH In review Chris Wright 1 participant 2 messages Nov 6, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compile fix for neighbour scalability backport

Compile fix for neighbour scalability backport.

neighbour.c:1901: error: THIS_MODULE' undeclared here (not in a function) neighbour.c:1901: error: initializer element is not constant neighbour.c:1901: error: (near initialization for neigh_stat_seq_fops.owner')

===== net/core/neighbour.c 1.14 vs edited =====

net/core/neighbour.c +1 -0
@@ -19,6 +19,7 @@
 #include <linux/config.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/socket.h>
 #include <linux/sched.h>
 #include <linux/netdevice.h>
#1 lore raw

And another compile fix for neighbour scalability fixes.

arp.c:1342: error: THIS_MODULE' undeclared here (not in a function) arp.c:1342: error: initializer element is not constant arp.c:1342: error: (near initialization for arp_seq_fops.owner')

===== net/ipv4/arp.c 1.18 vs edited =====

net/ipv4/arp.c +1 -0
@@ -76,6 +76,7 @@
 #include <linux/types.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/config.h>
 #include <linux/socket.h>