x86/xen: Remove the unused function p2m_index()
Subsystems (2)
PATCH v2 1/1 x86/xen: Remove the unused function p2m_index()
The function p2m_index is defined in the p2m.c file, but not called elsewhere, so remove this unused function.
arch/x86/xen/p2m.c:137:24: warning: unused function 'p2m_index'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
---
Changes in v2:
-Modify title and submission.
arch/x86/xen/p2m.c | 5 ----- 1 file changed, 5 deletions(-)
arch/x86/xen/p2m.c +0 -5
@@ -134,11 +134,6 @@ static inline unsigned p2m_mid_index(unsigned long pfn)return (pfn /P2M_PER_PAGE ) %P2M_MID_PER_PAGE ; } -static inline unsigned p2m_index (unsigned long pfn) -{ -return pfn %P2M_PER_PAGE ; -} -static void p2m_top_mfn_init (unsigned long *top) {unsigned i;
Signature · 1 line
2.20.1.7.g153144c
Quoted 8 lines · Jiapeng Chong
The function
p2m_indexis defined in thep2m.cfile, but not called elsewhere, so remove this unused function.
arch/x86/xen/p2m.c:137:24: warning: unused function 'p2m_index'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Juergen
Quoted 8 lines · Jiapeng Chong
The function
p2m_indexis defined in thep2m.cfile, but not called elsewhere, so remove this unused function.
arch/x86/xen/p2m.c:137:24: warning: unused function 'p2m_index'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Pushed to xen/tip.git for-linus-6.2
Juergen