Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754219AbYG2HOt (ORCPT ); Tue, 29 Jul 2008 03:14:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752687AbYG2HOj (ORCPT ); Tue, 29 Jul 2008 03:14:39 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:36321 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbYG2HOi (ORCPT ); Tue, 29 Jul 2008 03:14:38 -0400 Date: Tue, 29 Jul 2008 01:14:22 -0600 From: Matthew Wilcox To: linux-ia64@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: Is topology_core_siblings for use by drivers? Message-ID: <20080729071422.GD28989@parisc-linux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1960 Lines: 51 allmodconfig currently dies with: ERROR: "cpu_core_map" [drivers/net/sfc/sfc.ko] undefined! $ grep -r cpu_core_map include/asm-ia64/ include/asm-ia64/smp.h:extern cpumask_t cpu_core_map[NR_CPUS]; include/asm-ia64/topology.h:#define topology_core_siblings(cpu) (cpu_core_map[cpu]) OK ... it's not exported to modules. Do other architectures have this problem? $ grep topology_core_siblings include/asm-*/topology.h include/asm-ia64/topology.h:#define topology_core_siblings(cpu) (cpu_core_map[cpu]) include/asm-powerpc/topology.h:#define topology_core_siblings(cpu) (per_cpu(cpu_core_map, cpu)) include/asm-s390/topology.h:#define topology_core_siblings(cpu) (cpu_core_map[cpu]) include/asm-x86/topology.h:#define topology_core_siblings(cpu) (per_cpu(cpu_core_map, cpu)) s390, I guess. But they don't have PCI device drivers. If device drivers are supposed to call this, please apply this patch: ---- Export cpu_core_map so modules can call topology_core_siblings() Signed-off-by: Matthew Wilcox diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c index 03f1a99..6cb0927 100644 --- a/arch/ia64/kernel/smpboot.c +++ b/arch/ia64/kernel/smpboot.c @@ -138,6 +138,7 @@ cpumask_t cpu_possible_map = CPU_MASK_NONE; EXPORT_SYMBOL(cpu_possible_map); cpumask_t cpu_core_map[NR_CPUS] __cacheline_aligned; +EXPORT_SYMBOL(cpu_core_map); DEFINE_PER_CPU_SHARED_ALIGNED(cpumask_t, cpu_sibling_map); EXPORT_PER_CPU_SYMBOL(cpu_sibling_map); -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- 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/