mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] x86/xen: Remove the unused function p2m_index()
@ 2023-01-05  9:01 Jiapeng Chong
  2023-01-09  6:34 ` Juergen Gross
  2023-01-10  8:08 ` Juergen Gross
  0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2023-01-05  9:01 UTC (permalink / raw)
  To: jgross
  Cc: boris.ostrovsky, tglx, mingo, bp, dave.hansen, x86, hpa,
	xen-devel, linux-kernel, Jiapeng Chong, Abaci Robot

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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
Changes in v2:
  -Modify title and submission.

 arch/x86/xen/p2m.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
index 58db86f7b384..9bdc3b656b2c 100644
--- a/arch/x86/xen/p2m.c
+++ b/arch/x86/xen/p2m.c
@@ -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;
-- 
2.20.1.7.g153144c


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] x86/xen: Remove the unused function p2m_index()
  2023-01-05  9:01 [PATCH v2] x86/xen: Remove the unused function p2m_index() Jiapeng Chong
@ 2023-01-09  6:34 ` Juergen Gross
  2023-01-10  8:08 ` Juergen Gross
  1 sibling, 0 replies; 3+ messages in thread
From: Juergen Gross @ 2023-01-09  6:34 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: boris.ostrovsky, tglx, mingo, bp, dave.hansen, x86, hpa,
	xen-devel, linux-kernel, Abaci Robot


[-- Attachment #1.1.1: Type: text/plain, Size: 478 bytes --]

On 05.01.23 10:01, Jiapeng Chong wrote:
> 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 <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] x86/xen: Remove the unused function p2m_index()
  2023-01-05  9:01 [PATCH v2] x86/xen: Remove the unused function p2m_index() Jiapeng Chong
  2023-01-09  6:34 ` Juergen Gross
@ 2023-01-10  8:08 ` Juergen Gross
  1 sibling, 0 replies; 3+ messages in thread
From: Juergen Gross @ 2023-01-10  8:08 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: boris.ostrovsky, tglx, mingo, bp, dave.hansen, x86, hpa,
	xen-devel, linux-kernel, Abaci Robot


[-- Attachment #1.1.1: Type: text/plain, Size: 469 bytes --]

On 05.01.23 10:01, Jiapeng Chong wrote:
> 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 <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Pushed to xen/tip.git for-linus-6.2


Juergen


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-10  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05  9:01 [PATCH v2] x86/xen: Remove the unused function p2m_index() Jiapeng Chong
2023-01-09  6:34 ` Juergen Gross
2023-01-10  8:08 ` Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®