History

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.

Bhupesh Sharma committed 7 years ago

Commit db779ef1 parent 48084ab1 file · +0 −11Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/kcore.h+0−11
@@ -38,22 +38,11 @@ struct vmcoredd_node { · 37 unmodified lines
38 38
39#ifdef CONFIG_PROC_KCORE39#ifdef CONFIG_PROC_KCORE
40void __init kclist_add(struct kcore_list *, void *, size_t, int type);40void __init kclist_add(struct kcore_list *, void *, size_t, int type);
41static inline
42void 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}
47#else41#else
48static inline42static inline
49void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)43void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
50{44{
51}45}
52
53static inline
54void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
55{
56}
57#endif46#endif
58 47
59#endif /* _LINUX_KCORE_H */48#endif /* _LINUX_KCORE_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t