Skip to contentSkip to conversation

+ powerpc-mm-fix-__node_distance-undefined.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 17, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

Subject: + powerpc-mm-fix-__node_distance-undefined.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 17 Apr 2014 12:51:16 -0700

The patch titled
Subject: powerpc/mm: fix ".__node_distance" undefined
has been added to the -mm tree. Its filename is
powerpc-mm-fix-__node_distance-undefined.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/powerpc-mm-fix-__node_distance-undefined.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/powerpc-mm-fix-__node_distance-undefined.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Mike Qiu <[email protected]>
Subject: powerpc/mm: fix ".__node_distance" undefined

  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h

...
Building modules, stage 2.
WARNING: 1 bad relocations
c0000000013d6a30 R_PPC64_ADDR64 uprobes_fetch_type_table
WRAP arch/powerpc/boot/zImage.pseries
WRAP arch/powerpc/boot/zImage.epapr
MODPOST 1849 modules
ERROR: ".__node_distance" [drivers/block/nvme.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
make: *** Waiting for unfinished jobs....

The reason is symbol "__node_distance" not been exported in powerpc.

Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Nathan Fontenot <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc Srivatsa S. Bhat <[email protected]>
Cc Jesse Larrew <[email protected]>
Cc Robert Jennings <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Mike Qiu <[email protected]>

---

 arch/powerpc/mm/numa.c |    1 +
 1 file changed, 1 insertion(+)
arch/powerpc/mm/numa.c renamed from arch/powerpc/mm/numa.c~powerpc-mm-fix-__node_distance-undefined +1 -0
diff -puN arch/powerpc/mm/numa.c~powerpc-mm-fix-__node_distance-undefined arch/powerpc/mm/numa.c
@@ -232,6 +232,7 @@ int __node_distance(int a, int b)
 
 	return distance;
 }
+EXPORT_SYMBOL(__node_distance);
 
 static void initialize_distance_lookup_table(int nid,
 		const __be32 *associativity)

_

Patches currently in -mm which might be from [email protected] are

powerpc-mm-fix-__node_distance-undefined.patch linux-next.patch