lkml.org 
[lkml]   [2020]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] powerpc/mm: ptdump: Add missing include <asm/vio.h>
Date
YueHaibing <yuehaibing@huawei.com> writes:
> gcc build fails:

What config? Custom?

> 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
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Fixes: 65e701b2d2a8 ("powerpc/ptdump: drop non vital #ifdefs")
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> arch/powerpc/mm/ptdump/hashpagetable.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/powerpc/mm/ptdump/hashpagetable.c b/arch/powerpc/mm/ptdump/hashpagetable.c
> index b6ed9578382f..8ea5f9a3b658 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/vio.h>

I don't think you want vio.h, hvcall.h has the definition of H_SUCCESS.

cheers

\
 
 \ /
  Last update: 2020-04-03 06:59    [W:0.045 / U:1.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site