[PATCH] kvm: hardware_disable_test: remove unused macro

Ba Jing posted 1 patch 3 days, 9 hours ago
tools/testing/selftests/kvm/hardware_disable_test.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] kvm: hardware_disable_test: remove unused macro
Posted by Ba Jing 3 days, 9 hours ago
After reviewing the code, it was found that the macro GUEST_CODE_PIO_PORT
is never referenced in the code. Just remove it.

Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
---
 tools/testing/selftests/kvm/hardware_disable_test.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/kvm/hardware_disable_test.c b/tools/testing/selftests/kvm/hardware_disable_test.c
index bce73bcb973c..94bd6ed24cf3 100644
--- a/tools/testing/selftests/kvm/hardware_disable_test.c
+++ b/tools/testing/selftests/kvm/hardware_disable_test.c
@@ -20,7 +20,6 @@
 #define SLEEPING_THREAD_NUM (1 << 4)
 #define FORK_NUM (1ULL << 9)
 #define DELAY_US_MAX 2000
-#define GUEST_CODE_PIO_PORT 4
 
 sem_t *sem;
 
-- 
2.33.0
Re: [PATCH] kvm: hardware_disable_test: remove unused macro
Posted by Sean Christopherson 2 days, 21 hours ago
On Mon, Nov 18, 2024, Ba Jing wrote:
> After reviewing the code, it was found that the macro GUEST_CODE_PIO_PORT
> is never referenced in the code. Just remove it.
> 
> Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
> ---
>  tools/testing/selftests/kvm/hardware_disable_test.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/kvm/hardware_disable_test.c b/tools/testing/selftests/kvm/hardware_disable_test.c
> index bce73bcb973c..94bd6ed24cf3 100644
> --- a/tools/testing/selftests/kvm/hardware_disable_test.c
> +++ b/tools/testing/selftests/kvm/hardware_disable_test.c
> @@ -20,7 +20,6 @@
>  #define SLEEPING_THREAD_NUM (1 << 4)
>  #define FORK_NUM (1ULL << 9)
>  #define DELAY_US_MAX 2000
> -#define GUEST_CODE_PIO_PORT 4

You already sent this patch, albeit with a slightly different shortlog+changelog,
and said patch was applied.

https://lore.kernel.org/all/20240903043135.11087-1-bajing@cmss.chinamobile.com