Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755391AbeAHEMU (ORCPT + 1 other); Sun, 7 Jan 2018 23:12:20 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34923 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754987AbeAHEMS (ORCPT ); Sun, 7 Jan 2018 23:12:18 -0500 X-Google-Smtp-Source: ACJfBouGOKfthN+TP3g/E3ZfzqljeeXkWMn5xH/CedB4ZAQeG8NUdVto2v2skri8fQy7XeihgVdDLA== Date: Sun, 7 Jan 2018 20:12:16 -0800 From: Guenter Roeck To: Michal Hocko Cc: Andrew Morton , James Hogan , linux-metag@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: metag build error in -next due to 'fs, elf: drop MAP_FIXED usage from elf_map' Message-ID: <20180108041216.GA9132@roeck-us.net> References: <20180107010733.GA317@roeck-us.net> <20180107085031.GA24862@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180107085031.GA24862@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sun, Jan 07, 2018 at 09:50:31AM +0100, Michal Hocko wrote: > On Sat 06-01-18 17:07:33, Guenter Roeck wrote: > > The following build error is seen when building metag:meta2_defconfig > > or metag:tz1090_defconfig. > > > > arch/metag/kernel/process.c: In function '__metag_elf_map': > > arch/metag/kernel/process.c:421: error: 'tsk' undeclared > > Sorry about that and thanks for your report. The following should fix > the issue. Andrew, could you fold it to the original patch please? > --- > From 64da2e0c134ecf3936a4c36b949bcf2cdc98977e Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Sun, 7 Jan 2018 09:47:41 +0100 > Subject: [PATCH] fs-elf-drop-map_fixed-usage-from-elf_map-fix-fix > > The following build error is seen when building metag:meta2_defconfig > or metag:tz1090_defconfig. > > arch/metag/kernel/process.c: In function '__metag_elf_map': > arch/metag/kernel/process.c:421: error: 'tsk' undeclared > > Reported-by: Guenter Roeck > Signed-off-by: Michal Hocko Compiled and booted with qemu. Tested-by: Guenter Roeck Guenter > --- > arch/metag/kernel/process.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/metag/kernel/process.c b/arch/metag/kernel/process.c > index 9e007195038d..0cca2c95a091 100644 > --- a/arch/metag/kernel/process.c > +++ b/arch/metag/kernel/process.c > @@ -419,7 +419,7 @@ unsigned long __metag_elf_map(struct file *filep, unsigned long addr, > > if ((type & MAP_FIXED_NOREPLACE) && BAD_ADDR(map_addr)) > pr_info("%d (%s): Uhuuh, elf segment at %p requested but the memory is mapped already\n", > - task_pid_nr(current), tsk->comm, (void *)addr); > + task_pid_nr(current), current->comm, (void *)addr); > > if (!BAD_ADDR(map_addr) && tcm_tag != TCM_INVALID_TAG) { > struct tcm_allocation *tcm; > -- > 2.15.1 > > -- > Michal Hocko > SUSE Labs