[PATCH] fs-elf-drop-map_fixed-usage-from-elf_map-fix-fix
From: Michal Hocko
Date: Sun Jan 07 2018 - 03:47:41 EST
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 <linux@xxxxxxxxxxxx>
Signed-off-by: Michal Hocko <mhocko@xxxxxxxx>
---
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