]> Git Repo - linux.git/commitdiff
x86/xen: Remove the unused function p2m_index()
authorJiapeng Chong <[email protected]>
Thu, 5 Jan 2023 09:01:41 +0000 (17:01 +0800)
committerJuergen Gross <[email protected]>
Mon, 9 Jan 2023 06:54:28 +0000 (07:54 +0100)
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]>
arch/x86/xen/p2m.c

index 58db86f7b3846ef04b749154f0c9e9178654a806..9bdc3b656b2c49ac1bc1323b3e6ec4bf0ec418af 100644 (file)
@@ -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;
This page took 0.057973 seconds and 4 git commands to generate.