Skip to content

Commit 37c1785

Browse files
wb-zjp846396jgross1
authored andcommitted
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'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3557 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 7cffcad commit 37c1785

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/x86/xen/p2m.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ static inline unsigned p2m_mid_index(unsigned long pfn)
134134
return (pfn / P2M_PER_PAGE) % P2M_MID_PER_PAGE;
135135
}
136136

137-
static inline unsigned p2m_index(unsigned long pfn)
138-
{
139-
return pfn % P2M_PER_PAGE;
140-
}
141-
142137
static void p2m_top_mfn_init(unsigned long *top)
143138
{
144139
unsigned i;

0 commit comments

Comments
 (0)