]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] memblks compile fixes
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 00:53:08 +0000 (16:53 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 6 Feb 2004 00:53:08 +0000 (16:53 -0800)
From: jbarnes@sgi.com (Jesse Barnes)

Looks like Jes forgot missed some conversions in his NR_MEMBLKS removal
patch.  Here's are the fixes to get ia64 going again.

arch/ia64/sn/kernel/setup.c

index 8d9200eecb3f3cf726f0a9b7d26eef222c403a9a..cb80ed553f7a03983261b1e0e23d4c8c69a62f3a 100644 (file)
@@ -136,7 +136,7 @@ pxm_to_nasid(int pxm)
        int nid;
 
        nid = pxm_to_nid_map[pxm];
-       for (i = 0; i < num_memblks; i++) {
+       for (i = 0; i < num_node_memblks; i++) {
                if (node_memblk[i].nid == nid) {
                        return NASID_GET(node_memblk[i].start_paddr);
                }