]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix build break due to pnv_npu2_init()
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Jan 2019 00:47:45 +0000 (16:47 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jan 2019 10:27:47 +0000 (21:27 +1100)
commit000a51bc611b8f54bc089dd940f997bd8ceb5fba
treece2c6ec9533f70489b4bd15f744a74d2038df2ef
parent667f0eac45e698e504c2bd3c64dac7a039766af6
powerpc/pseries: Fix build break due to pnv_npu2_init()

Commit a69b548b6b37 ("powerpc/pseries/npu: Enable platform support")
added a call to pnv_npu2_init() in pseries code. This causes a build
break if we build with CONFIG_PPC_PSERIES && !CONFIG_PPC_POWERNV:

  powerpc64le-pc-linux-gnu-ld: arch/powerpc/platforms/pseries/pci.o: in function `pSeries_final_fixup':
  pci.c:(.init.text+0x1b0): undefined reference to `pnv_npu2_init'

This commit therefore wraps that line in an ifdef, so that pseries
builds without powernv.

Fixes: a69b548b6b37 ("powerpc/pseries/npu: Enable platform support")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[mpe: Frob change log a bit to blame a different commit]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/pci.c