All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Picco <bob.picco@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Recent SPARSEMEM and DISCONTIG changes break some builds
Date: Mon, 31 Oct 2005 18:25:25 +0000	[thread overview]
Message-ID: <20051031182525.GH6019@localhost.localdomain> (raw)
In-Reply-To: <17253.37207.664571.236714@wombat.chubb.wattle.id.au>

luck wrote:	[Mon Oct 31 2005, 12:45:42PM EST]
> Peter Chubb wrote:
> >Is it intended that CONFIG_SPARSEMEM and CONFIG_DISCONTIGMEM be usable
> >without CONFIG_NUMA?
> >
> >Currently (2.6.14+GIT as of 31 October) 
> >	  -- compiling with CONFIG_SPARSEMEM gives undefined ref to
> >	     pfn_to_node().
> >	  -- compiling with CONFIG_DISCONTIGMEM gives many errors
> >	     linux-2.6-import/arch/ia64/mm/discontig.c:326: error: dereferencing
> >	     pointer to incomplete type when referencing struct
> >	     ia64_node_data 
> 
> All of my standard configs build ... the only one that
> fails is arch/ia64/configs/gensparse_defconfig which gets
> a link error for an undefined reference to pfn_to_kaddr in
> sparse_add_one_section.
> 
> -Tonh
> -
Tony,

Your build must be against -mm because pfn_to_kaddr shouldn't be required
in 2.6.14.  The patch below will fix this.

My only objection to pfn_to_kaddr, which was introduced for HotPlug memory,
is that all arches have an identical implementation. I haven't had a chance
to pursue why yet.  There is probably some arch issue I'm unaware of.

bob


Signed-off-by: Bob Picco <bob.picco@hp.com>

 include/asm-ia64/page.h |    1 +
 1 files changed, 1 insertion(+)

Index: linux-2.6.14-rc5-mm1/include/asm-ia64/page.h
=================================--- linux-2.6.14-rc5-mm1.orig/include/asm-ia64/page.h	2005-10-24 14:38:36.000000000 -0400
+++ linux-2.6.14-rc5-mm1/include/asm-ia64/page.h	2005-10-31 13:03:40.000000000 -0500
@@ -120,6 +120,7 @@ extern unsigned long max_low_pfn;
 
 #define page_to_phys(page)	(page_to_pfn(page) << PAGE_SHIFT)
 #define virt_to_page(kaddr)	pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
+#define pfn_to_kaddr(pfn)	__va((pfn) << PAGE_SHIFT)
 
 typedef union ia64_va {
 	struct {


  parent reply	other threads:[~2005-10-31 18:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31  3:36 Recent SPARSEMEM and DISCONTIG changes break some builds Peter Chubb
2005-10-31 17:45 ` Luck, Tony
2005-10-31 18:25 ` Bob Picco [this message]
2005-10-31 19:00 ` Luck, Tony
2005-11-01  0:25 ` Bob Picco
2005-11-01  0:31 ` Peter Chubb
2005-11-01  0:46 ` Luck, Tony
2005-11-01  2:11 ` Peter Chubb

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=20051031182525.GH6019@localhost.localdomain \
    --to=bob.picco@hp.com \
    --cc=linux-ia64@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.