Skip to content

Commit db779ef

Browse files
Bhupesh Sharmasuryasaimadhu
authored andcommitted
proc/kcore: Remove unused kclist_add_remap()
Commit bf904d2 ("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. Signed-off-by: Bhupesh Sharma <bhsharma@redhat.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dave Anderson <anderson@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Ingo Molnar <mingo@kernel.org> Cc: James Morse <james.morse@arm.com> Cc: Kairui Song <kasong@redhat.com> Cc: kexec@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Omar Sandoval <osandov@fb.com> Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org> Cc: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/1553583028-17804-1-git-send-email-bhsharma@redhat.com
1 parent 48084ab commit db779ef

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

include/linux/kcore.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,11 @@ struct vmcoredd_node {
3838

3939
#ifdef CONFIG_PROC_KCORE
4040
void __init kclist_add(struct kcore_list *, void *, size_t, int type);
41-
static inline
42-
void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
43-
{
44-
m->vaddr = (unsigned long)vaddr;
45-
kclist_add(m, addr, sz, KCORE_REMAP);
46-
}
4741
#else
4842
static inline
4943
void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
5044
{
5145
}
52-
53-
static inline
54-
void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
55-
{
56-
}
5746
#endif
5847

5948
#endif /* _LINUX_KCORE_H */

0 commit comments

Comments
 (0)