Skip to contentSkip to conversation

mm: remove unneeded kallsyms include

PATCH New [email protected] 1 participant 1 message Feb 6, 2018

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 87/114 mm: remove unneeded kallsyms include

From: Sergey Senozhatsky <[email protected]>
Subject: mm: remove unneeded kallsyms include

The file was converted from print_symbol() to %pSR a while ago in 071361d3473ebb814 ("mm: Convert print_symbol to %pSR"). kallsyms does not seem to be needed anymore.

---

 mm/memory.c |    4 ----
 1 file changed, 4 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-remove-unneeded-kallsyms-include +0 -4
diff -puN mm/memory.c~mm-remove-unneeded-kallsyms-include mm/memory.c
@@ -59,7 +59,6 @@
 #include <linux/writeback.h>
 #include <linux/memcontrol.h>
 #include <linux/mmu_notifier.h>
-#include <linux/kallsyms.h>
 #include <linux/swapops.h>
 #include <linux/elf.h>
 #include <linux/gfp.h>
@@ -767,9 +766,6 @@ static void print_bad_pte(struct vm_area
 		dump_page(page, "bad pte");
 	pr_alert("addr:%p vm_flags:%08lx anon_vma:%p mapping:%p index:%lx\n",
 		 (void *)addr, vma->vm_flags, vma->anon_vma, mapping, index);
-	/*
-	 * Choose text because data symbols depend on CONFIG_KALLSYMS_ALL=y
-	 */
 	pr_alert("file:%pD fault:%pf mmap:%pf readpage:%pf\n",
 		 vma->vm_file,
 		 vma->vm_ops ? vma->vm_ops->fault : NULL,

_