Message ID | 20200403064756.36128-1-yuehaibing@huawei.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v2] powerpc/mm: ptdump: Add missing include <asm/hvcall.h> | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (d0c12846a3a24cd6d68b608c866712bc7e471634) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded |
snowpatch_ozlabs/build-pmac32 | fail | build failed! |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 7 lines checked |
snowpatch_ozlabs/needsstable | warning | Please consider tagging this patch for stable! |
diff --git a/arch/powerpc/mm/ptdump/hashpagetable.c b/arch/powerpc/mm/ptdump/hashpagetable.c index b6ed9578382f..3e7e6206688c 100644 --- a/arch/powerpc/mm/ptdump/hashpagetable.c +++ b/arch/powerpc/mm/ptdump/hashpagetable.c @@ -20,6 +20,7 @@ #include <asm/page.h> #include <asm/pgalloc.h> #include <asm/plpar_wrappers.h> +#include <asm/hvcall.h> #include <linux/memblock.h> #include <asm/firmware.h>
while PPC_PSERIES is not set, gcc build fails: arch/powerpc/mm/ptdump/hashpagetable.c: In function ‘pseries_find’: arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: ‘H_SUCCESS’ undeclared (first use in this function); did you mean ‘FL_ACCESS’? if (lpar_rc != H_SUCCESS) ^~~~~~~~~ FL_ACCESS If PPC_PSERIES is not set, <asm/plpar_wrappers.h> does not include <asm/hvcall.h>, which leads to this failure. Add missing include file <asm/hvcall.h> in hashpagetable.c to fix this. Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 65e701b2d2a8 ("powerpc/ptdump: drop non vital #ifdefs") Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- v2: Add hvcall.h instead of vio.h, also rework patch log --- arch/powerpc/mm/ptdump/hashpagetable.c | 1 + 1 file changed, 1 insertion(+)