]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64e: Fix kexec build error
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Aug 2022 06:29:41 +0000 (16:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Aug 2022 06:32:18 +0000 (16:32 +1000)
commit1bc31d8bede57e33476ecbefcf96b5451451a72e
tree31ea5c3e87adbf1fcce897d49f4c1f50eb0b9569
parenta91e10ca6467530e2c026938439f5eae883fd09b
powerpc/64e: Fix kexec build error

When building ppc64_book3e_allmodconfig the build fails with:

  arch/powerpc/kexec/file_load_64.c:1063:14: error: implicit declaration of function ‘firmware_has_feature’
   1063 |         if (!firmware_has_feature(FW_FEATURE_LPAR))
        |              ^~~~~~~~~~~~~~~~~~~~

Add a direct include of asm/firmware.h to fix the error.

Fixes: 01638238b912 ("pseries/iommu/ddw: Fix kdump to work in absence of ibm,dma-window")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220803063152.1249270-1-mpe@ellerman.id.au
arch/powerpc/kexec/file_load_64.c