2003-06-14 23:44:29

by Gerhard Mack

[permalink] [raw]
Subject: linux-2.5.71: undefined reference to `register_cpu_notifier'

Got this on a fresh tree:

net/built-in.o(.init.text+0x209): In function `flow_cache_init':
: undefined reference to `register_cpu_notifier'
make: *** [.tmp_vmlinux1] Error 1


--
Gerhard Mack

[email protected]

<>< As a computer I find your faith in technology amusing.


2003-06-15 00:03:41

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.5] fix link due to register_cpu_notifier & flow_cache_init

On Sat, 14 Jun 2003, Gerhard Mack wrote:

> Got this on a fresh tree:
>
> net/built-in.o(.init.text+0x209): In function `flow_cache_init':
> : undefined reference to `register_cpu_notifier'
> make: *** [.tmp_vmlinux1] Error 1

Index: linux-2.5-pgcl/net/core/flow.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/core/flow.c,v
retrieving revision 1.7
diff -u -p -B -r1.7 flow.c
--- linux-2.5-pgcl/net/core/flow.c 21 Jun 2003 16:16:59 -0000 1.7
+++ linux-2.5-pgcl/net/core/flow.c 14 Jun 2003 23:05:49 -0000
@@ -13,6 +13,7 @@
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
+#include <linux/cpu.h>
#include <linux/smp.h>
#include <linux/completion.h>
#include <linux/percpu.h>
--
function.linuxpower.ca