Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH v2] selftests/breakpoints:Remove unused variable
@ 2024-07-10  2:11 Zhu Jun
  2024-07-10 15:56 ` Shuah Khan
  0 siblings, 1 reply; 2+ messages in thread
From: Zhu Jun @ 2024-07-10  2:11 UTC (permalink / raw)
  To: shuah; +Cc: zhujun2, angquan21, linux-kselftest, linux-kernel

This variable is never referenced in the code, just remove them 
that this problem was discovered by reading the code

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
Changes in v2:
 - modify commit info

 tools/testing/selftests/breakpoints/step_after_suspend_test.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/breakpoints/step_after_suspend_test.c b/tools/testing/selftests/breakpoints/step_after_suspend_test.c
index b8703c499d28..dfec31fb9b30 100644
--- a/tools/testing/selftests/breakpoints/step_after_suspend_test.c
+++ b/tools/testing/selftests/breakpoints/step_after_suspend_test.c
@@ -130,7 +130,6 @@ int run_test(int cpu)
 void suspend(void)
 {
 	int power_state_fd;
-	struct sigevent event = {};
 	int timerfd;
 	int err;
 	struct itimerspec spec = {};
-- 
2.17.1




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

* Re: [PATCH v2] selftests/breakpoints:Remove unused variable
  2024-07-10  2:11 [PATCH v2] selftests/breakpoints:Remove unused variable Zhu Jun
@ 2024-07-10 15:56 ` Shuah Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2024-07-10 15:56 UTC (permalink / raw)
  To: Zhu Jun, shuah; +Cc: angquan21, linux-kselftest, linux-kernel, Shuah Khan

On 7/9/24 20:11, Zhu Jun wrote:
> This variable is never referenced in the code, just remove them
> that this problem was discovered by reading the code
> 
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
> ---
> Changes in v2:
>   - modify commit info
> 
>   tools/testing/selftests/breakpoints/step_after_suspend_test.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/breakpoints/step_after_suspend_test.c b/tools/testing/selftests/breakpoints/step_after_suspend_test.c
> index b8703c499d28..dfec31fb9b30 100644
> --- a/tools/testing/selftests/breakpoints/step_after_suspend_test.c
> +++ b/tools/testing/selftests/breakpoints/step_after_suspend_test.c
> @@ -130,7 +130,6 @@ int run_test(int cpu)
>   void suspend(void)
>   {
>   	int power_state_fd;
> -	struct sigevent event = {};
>   	int timerfd;
>   	int err;
>   	struct itimerspec spec = {};

Applied to linux-kselftest next for Linux 6.11-rc1.

thanks,
-- Shuah

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

end of thread, other threads:[~2024-07-10 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-10  2:11 [PATCH v2] selftests/breakpoints:Remove unused variable Zhu Jun
2024-07-10 15:56 ` Shuah Khan

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