From: Matthew Dobson <colpatch@us.ibm.com>
To: Christoph Lameter <christoph@lameter.com>
Cc: "Martin J. Bligh" <mbligh@mbligh.org>,
Andrew Morton <akpm@osdl.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.12-rc4-mm2 build failure
Date: Tue, 17 May 2005 17:04:39 -0700 [thread overview]
Message-ID: <428A8697.4010606@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0505161602460.20110@graphe.net>
[-- Attachment #1: Type: text/plain, Size: 2043 bytes --]
Christoph Lameter wrote:
> On Mon, 16 May 2005, Martin J. Bligh wrote:
>
>
>>ppc64 box
>>
>>drivers/ide/ide-probe.c: In function `ide_init_queue':
>>drivers/ide/ide-probe.c:982: warning: implicit declaration of function `pcibus_to_node'
>>drivers/ide/ide-disk.c: In function `ide_disk_probe':
>>drivers/ide/ide-disk.c:1225: warning: implicit declaration of function `pcibus_to_node'
>>drivers/built-in.o(.text+0xaee4c): In function `.init_irq':
>>: undefined reference to `.pcibus_to_node'
>>drivers/built-in.o(.text+0xaf01c): In function `.init_irq':
>>: undefined reference to `.pcibus_to_node'
>>drivers/built-in.o(.text+0xb7808): In function `.ide_disk_probe':
>>: undefined reference to `.pcibus_to_node'
>>make: *** [.tmp_vmlinux1] Error 1
>>05/16/05-07:36:03 Build the kernel. Failed rc = 2
>>05/16/05-07:36:03 build: kernel build Failed rc = 1
>
>
> There was a prior discussion with the ppc64 folks about the way that
> asm-generic/topology.h was included only for CONFIG_NUMA. I thought that
> was fixed?
>
> asm-generic/topology.h must also be included if CONFIG_NUMA is not set
> inorder to provide the fall back pcibus_to_node function.
>
> patch follows. Cannot test since I do not have a ppc64.
>
> Index: linux-2.6.12-rc4/include/asm-ppc64/topology.h
> ===================================================================
> --- linux-2.6.12-rc4.orig/include/asm-ppc64/topology.h 2005-03-01 23:38:32.000000000 -0800
> +++ linux-2.6.12-rc4/include/asm-ppc64/topology.h 2005-05-16 16:06:24.000000000 -0700
> @@ -59,10 +59,8 @@
> .nr_balance_failed = 0, \
> }
>
> -#else /* !CONFIG_NUMA */
> +#endif /* CONFIG_NUMA */
>
> #include <asm-generic/topology.h>
>
> -#endif /* CONFIG_NUMA */
> -
> #endif /* _ASM_PPC64_TOPOLOGY_H */
Not a big fan of this patch. It's not wrong, per-se, but it just doesn't
sit right with me. asm-generic/topology.h should be a fallback file for
the arches that just want some sort of sane UP/SMP defaults. The better
(IMHO) solution is this patch. Builds fine on PPC64.
-Matt
[-- Attachment #2: ppc64_topology-fix.patch --]
[-- Type: text/x-patch, Size: 414 bytes --]
--- linux-2.6.12-rc4-mm1/include/asm-ppc64/topology.h 2005-05-12 11:15:46.000000000 -0700
+++ linux-2.6.12-rc4-mm1/include/asm-ppc64/topology.h.fixed 2005-05-17 15:40:40.630853728 -0700
@@ -33,6 +33,8 @@ static inline int node_to_first_cpu(int
return first_cpu(tmp);
}
+#define pcibus_to_node(bus) (-1)
+
#define pcibus_to_cpumask(bus) (cpu_online_map)
#define nr_cpus_node(node) (nr_cpus_in_node[node])
next prev parent reply other threads:[~2005-05-18 0:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 21:00 2.6.12-rc4-mm2 build failure Martin J. Bligh
2005-05-16 23:07 ` Christoph Lameter
2005-05-16 23:15 ` Martin J. Bligh
2005-05-17 17:08 ` Martin J. Bligh
2005-05-17 17:09 ` Martin J. Bligh
2005-05-17 17:20 ` Christoph Lameter
2005-05-17 17:34 ` Martin J. Bligh
2005-05-18 0:04 ` Matthew Dobson [this message]
2005-05-18 0:08 ` Christoph Lameter
2005-05-18 17:24 ` Matthew Dobson
2005-05-18 17:39 ` Christoph Lameter
2005-05-19 0:55 ` Matthew Dobson
2005-05-19 3:36 ` [PATCH] fix pcibus_to_node for x86_64 Christoph Lameter
[not found] <200505162320.j4GNKDLN002527@shell0.pdx.osdl.net>
[not found] ` <200505170433.59091.adobriyan@gmail.com>
2005-05-17 0:39 ` 2.6.12-rc4-mm2 build failure Christoph Lameter
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=428A8697.4010606@us.ibm.com \
--to=colpatch@us.ibm.com \
--cc=akpm@osdl.org \
--cc=christoph@lameter.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@mbligh.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