Skip to contentSkip to conversation

include/kcore: Remove left-over instances of 'kclist_add_remap()'

PATCH New Bhupesh Sharma 2 participants 2 messages Mar 26, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/kcore: Remove left-over instances of 'kclist_add_remap()'

Commit bf904d2762ee ("x86/pti/64: Remove the SYSCALL64 entry trampoline") removed the sole usage of 'kclist_add_remap()' from 'arch/x86/mm/cpu_entry_area.c', but it did not remove the left-over definition from the include file.

Fix the same.

---
 include/linux/kcore.h | 11 -----------
 1 file changed, 11 deletions(-)
include/linux/kcore.h +0 -11
index c843f4a9c512..da676cdbd727 100644
@@ -38,12 +38,6 @@ struct vmcoredd_node {
 
 #ifdef CONFIG_PROC_KCORE
 void __init kclist_add(struct kcore_list *, void *, size_t, int type);
-static inline
-void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
-{
-	m->vaddr = (unsigned long)vaddr;
-	kclist_add(m, addr, sz, KCORE_REMAP);
-}
 
 extern int __init register_mem_pfn_is_ram(int (*fn)(unsigned long pfn));
 #else
@@ -51,11 +45,6 @@ static inline
 void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
 {
 }
-
-static inline
-void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
-{
-}
 #endif
 
 #endif /* _LINUX_KCORE_H */
Signature · 1 line
2.7.4
#1 lore raw

[tip:core/urgent] proc/kcore: Remove unused kclist_add_remap()

proc/kcore: Remove unused kclist_add_remap()
Commit-ID:  db779ef67ffeadbb44e9e818eb64dbe528e2f48f
Gitweb:     https://git.kernel.org/tip/db779ef67ffeadbb44e9e818eb64dbe528e2f48f
Author:     Bhupesh Sharma <[email protected]>
AuthorDate: Tue, 26 Mar 2019 12:20:28 +0530
Committer:  Borislav Petkov <[email protected]>
CommitDate: Tue, 26 Mar 2019 16:36:03 +0100

proc/kcore: Remove unused kclist_add_remap()

Commit

bf904d2762ee ("x86/pti/64: Remove the SYSCALL64 entry trampoline")

removed the sole usage of kclist_add_remap() but it did not remove the left-over definition from the include file.

Fix the same.

Cc Adrian Hunter <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Dave Anderson <[email protected]>
Cc Dave Young <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc James Morse <[email protected]>
Cc Kairui Song <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Omar Sandoval <[email protected]>
Cc "Peter Zijlstra (Intel)" <[email protected]>
Cc Rahul Lakkireddy <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc x86-ml <[email protected]>
---
 include/linux/kcore.h | 11 -----------
 1 file changed, 11 deletions(-)
include/linux/kcore.h +0 -11
index 8c3f8c14eeaa..94b561df3877 100644
@@ -38,22 +38,11 @@ struct vmcoredd_node {
 
 #ifdef CONFIG_PROC_KCORE
 void __init kclist_add(struct kcore_list *, void *, size_t, int type);
-static inline
-void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
-{
-	m->vaddr = (unsigned long)vaddr;
-	kclist_add(m, addr, sz, KCORE_REMAP);
-}
 #else
 static inline
 void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
 {
 }
-
-static inline
-void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
-{
-}
 #endif
 
 #endif /* _LINUX_KCORE_H */