]> Git Repo - linux.git/commitdiff
powerpc/64e: Fix kexec build error
authorMichael Ellerman <[email protected]>
Wed, 3 Aug 2022 06:29:41 +0000 (16:29 +1000)
committerMichael Ellerman <[email protected]>
Wed, 3 Aug 2022 06:32:18 +0000 (16:32 +1000)
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: b1fc44eaa9ba ("pseries/iommu/ddw: Fix kdump to work in absence of ibm,dma-window")
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/powerpc/kexec/file_load_64.c

index 5d2c22aa34fb87bd40af9da9b311931c4bea61fb..683462e4556bf24e792a0a1cf1847fd5a38c4045 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/vmalloc.h>
 #include <asm/setup.h>
 #include <asm/drmem.h>
+#include <asm/firmware.h>
 #include <asm/kexec_ranges.h>
 #include <asm/crashdump-ppc64.h>
 
This page took 0.059262 seconds and 4 git commands to generate.