aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 85f8d6698d48..b78e3a8f5ee7 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -13,6 +13,8 @@
13 * Copyright (c) 2007-2010 Paul Mundt <lethal@linux-sh.org> 13 * Copyright (c) 2007-2010 Paul Mundt <lethal@linux-sh.org>
14 */ 14 */
15 15
16#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
17
16#include <linux/export.h> 18#include <linux/export.h>
17#include <linux/mm.h> 19#include <linux/mm.h>
18#include <linux/vmacache.h> 20#include <linux/vmacache.h>
@@ -32,6 +34,7 @@
32#include <linux/syscalls.h> 34#include <linux/syscalls.h>
33#include <linux/audit.h> 35#include <linux/audit.h>
34#include <linux/sched/sysctl.h> 36#include <linux/sched/sysctl.h>
37#include <linux/printk.h>
35 38
36#include <asm/uaccess.h> 39#include <asm/uaccess.h>
37#include <asm/tlb.h> 40#include <asm/tlb.h>
@@ -1246,7 +1249,7 @@ error_free:
1246 return ret; 1249 return ret;
1247 1250
1248enomem: 1251enomem:
1249 printk("Allocation of length %lu from process %d (%s) failed\n", 1252 pr_err("Allocation of length %lu from process %d (%s) failed\n",
1250 len, current->pid, current->comm); 1253 len, current->pid, current->comm);
1251 show_free_areas(0); 1254 show_free_areas(0);
1252 return -ENOMEM; 1255 return -ENOMEM;