[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87fu6ttk0u.fsf@xmission.com>
Date: Thu, 25 Jan 2018 20:45:53 -0600
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Stephen Rothwell <sfr@...b.auug.org.au>
Cc: Linux-Next Mailing List <linux-next@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Ram Pai <linuxram@...ibm.com>
Subject: Re: linux-next: build failure after merge of the userns tree
Stephen Rothwell <sfr@...b.auug.org.au> writes:
> Hi Eric,
>
> After merging the userns tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
>
> arch/powerpc/kernel/mce.c: In function 'machine_process_ue_event':
> arch/powerpc/kernel/mce.c:276:5: error: too many arguments to function 'memory_failure'
> memory_failure(pfn, SIGBUS, 0);
> ^~~~~~~~~~~~~~
> In file included from include/linux/pid_namespace.h:7:0,
> from include/linux/ptrace.h:10,
> from arch/powerpc/kernel/mce.c:27:
> include/linux/mm.h:2571:12: note: declared here
> extern int memory_failure(unsigned long pfn, int flags);
> ^~~~~~~~~~~~~~
>
> Caused by commit
>
> 83b57531c58f ("mm/memory_failure: Remove unused trapno from memory_failure")
>
> I have added the following patch for today:
Acked-by: "Eric W. Biederman" <ebiederm@...ssion.com>
The patch below is correct, and it really makes me appreciate my removal
of unused trapno parameter.
Thank you for catching that.
Eric
> From: Stephen Rothwell <sfr@...b.auug.org.au>
> Date: Fri, 26 Jan 2018 11:54:39 +1100
> Subject: [PATCH] mm/memory_failure: update powerpc for memory_failure() API change
>
> Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
> ---
> arch/powerpc/kernel/mce.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kernel/mce.c b/arch/powerpc/kernel/mce.c
> index d2fecaec4fec..efdd16a79075 100644
> --- a/arch/powerpc/kernel/mce.c
> +++ b/arch/powerpc/kernel/mce.c
> @@ -273,7 +273,7 @@ static void machine_process_ue_event(struct work_struct *work)
>
> pfn = evt->u.ue_error.physical_address >>
> PAGE_SHIFT;
> - memory_failure(pfn, SIGBUS, 0);
> + memory_failure(pfn, 0);
> } else
> pr_warn("Failed to identify bad address from "
> "where the uncorrectable error (UE) "
> --
> 2.15.1
Powered by blists - more mailing lists