mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH][2.6-mm] __kunmap/oprofile final link failure
Date: Fri, 21 Nov 2003 18:17:45 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.53.0311211811040.2498@montezuma.fsmlabs.com> (raw)

arch/i386/kernel/built-in.o(.text+0x927): In function `__switch_to':
arch/i386/kernel/process.c:564: undefined reference to 
`__kunmap_atomic_type'
arch/i386/kernel/built-in.o(.text+0x92e):arch/i386/kernel/process.c:565: 
undefined reference to `__kunmap_atomic_type'
arch/i386/kernel/built-in.o(.text+0x939):arch/i386/kernel/process.c:566: 
undefined reference to `__kmap_atomic'
arch/i386/kernel/built-in.o(.text+0x944):arch/i386/kernel/process.c:567: 
undefined reference to `__kmap_atomic'
arch/i386/kernel/built-in.o(.text+0x94e):arch/i386/kernel/process.c:572: 
undefined reference to `__kmap_atomic_vaddr'
arch/i386/oprofile/built-in.o(.text+0x171a): In function 
`oprofile_reset_stats':
include/asm/bitops.h:251: undefined reference to `cpu_possible_map'
arch/i386/oprofile/built-in.o(.text+0x179e): In function 
`oprofile_create_stats_files':
include/asm/bitops.h:251: undefined reference to `cpu_possible_map'

Test compiled with NR_CPUS = 4, 64 and !CONFIG_SMP on i386

Index: linux-2.6.0-test9-mm5/arch/i386/kernel/process.c
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test9-mm5/arch/i386/kernel/process.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 process.c
--- linux-2.6.0-test9-mm5/arch/i386/kernel/process.c	21 Nov 2003 20:59:15 -0000	1.1.1.1
+++ linux-2.6.0-test9-mm5/arch/i386/kernel/process.c	21 Nov 2003 22:20:00 -0000
@@ -50,6 +50,7 @@
 #include <asm/desc.h>
 #include <asm/tlbflush.h>
 #include <asm/cpu.h>
+#include <asm/atomic_kmap.h>
 #ifdef CONFIG_MATH_EMULATION
 #include <asm/math_emu.h>
 #endif
Index: linux-2.6.0-test9-mm5/drivers/oprofile/oprofile_stats.c
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test9-mm5/drivers/oprofile/oprofile_stats.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 oprofile_stats.c
--- linux-2.6.0-test9-mm5/drivers/oprofile/oprofile_stats.c	21 Nov 2003 20:59:40 -0000	1.1.1.1
+++ linux-2.6.0-test9-mm5/drivers/oprofile/oprofile_stats.c	21 Nov 2003 21:27:44 -0000
@@ -10,7 +10,8 @@
 #include <linux/oprofile.h>
 #include <linux/cpumask.h>
 #include <linux/threads.h>
- 
+#include <linux/smp.h>
+
 #include "oprofile_stats.h"
 #include "cpu_buffer.h"
  
Index: linux-2.6.0-test9-mm5/include/linux/cpumask.h
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test9-mm5/include/linux/cpumask.h,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 cpumask.h
--- linux-2.6.0-test9-mm5/include/linux/cpumask.h	21 Nov 2003 20:59:57 -0000	1.1.1.1
+++ linux-2.6.0-test9-mm5/include/linux/cpumask.h	21 Nov 2003 21:52:39 -0000
@@ -39,9 +39,8 @@ typedef unsigned long cpumask_t;
 
 
 #ifdef CONFIG_SMP
-
+#include <asm/smp.h>
 extern cpumask_t cpu_online_map;
-extern cpumask_t cpu_possible_map;
 
 #define num_online_cpus()		cpus_weight(cpu_online_map)
 #define cpu_online(cpu)			cpu_isset(cpu, cpu_online_map)

             reply	other threads:[~2003-11-21 23:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21 23:17 Zwane Mwaikambo [this message]
2003-11-23 22:27 ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.53.0311211811040.2498@montezuma.fsmlabs.com \
    --to=zwane@arm.linux.org.uk \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®