Commit 12c743eb authored by Mike Qiu's avatar Mike Qiu Committed by Linus Torvalds
Browse files

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.

Signed-off-by: default avatarMike Qiu <>
Acked-by: default avatarBenjamin Herrenschmidt <>
Cc: Paul Mackerras <>
Cc: Nathan Fontenot <>
Cc: Stephen Rothwell <>
Cc: Srivatsa S. Bhat <>
Cc: Jesse Larrew <>
Cc: Robert Jennings <>
Cc: Alistair Popple <>
Cc: Mike Qiu <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7861144b
......@@ -232,6 +232,7 @@ int __node_distance(int a, int b)
return distance;
static void initialize_distance_lookup_table(int nid,
const __be32 *associativity)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment