All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/bpf: remove unused variable
@ 2024-08-20  5:51 Zhu Jun
  2024-08-21 20:57 ` Yonghong Song
  0 siblings, 1 reply; 4+ messages in thread
From: Zhu Jun @ 2024-08-20  5:51 UTC (permalink / raw)
  To: song
  Cc: yonghong.song, ast, daniel, kpsingh, sdf, haoluo, zhujun2, jolsa,
	linux-kernel

The variable is never referenced in the code, just remove them.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 tools/bpf/runqslower/runqslower.bpf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/bpf/runqslower/runqslower.bpf.c b/tools/bpf/runqslower/runqslower.bpf.c
index 9a5c1f008fe6..fced54a3adf6 100644
--- a/tools/bpf/runqslower/runqslower.bpf.c
+++ b/tools/bpf/runqslower/runqslower.bpf.c
@@ -70,7 +70,6 @@ int handle__sched_switch(u64 *ctx)
 	struct task_struct *next = (struct task_struct *)ctx[2];
 	struct runq_event event = {};
 	u64 *tsp, delta_us;
-	long state;
 	u32 pid;
 
 	/* ivcsw: treat like an enqueue event and store timestamp */
-- 
2.17.1




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

* Re: [PATCH] tools/bpf: remove unused variable
  2024-08-20  5:51 [PATCH] tools/bpf: remove unused variable Zhu Jun
@ 2024-08-21 20:57 ` Yonghong Song
  0 siblings, 0 replies; 4+ messages in thread
From: Yonghong Song @ 2024-08-21 20:57 UTC (permalink / raw)
  To: Zhu Jun, song; +Cc: ast, daniel, kpsingh, sdf, haoluo, jolsa, linux-kernel


On 8/19/24 10:51 PM, Zhu Jun wrote:
> The variable is never referenced in the code, just remove them.
>
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>

Acked-by: Yonghong Song <yonghong.song@linux.dev>


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

* [PATCH] tools/bpf:remove unused variable
@ 2024-09-25 10:00 Zhu Jun
  2024-09-27 20:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 4+ messages in thread
From: Zhu Jun @ 2024-09-25 10:00 UTC (permalink / raw)
  To: eddyz87
  Cc: song, yonghong.song, john.fastabend, kpsingh, sdf, haoluo, jolsa,
	zhujun2, bpf, ast, daniel, andrii, martin.lau

This variable is never referenced in the code, just remove it.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 tools/bpf/runqslower/runqslower.bpf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/bpf/runqslower/runqslower.bpf.c b/tools/bpf/runqslower/runqslower.bpf.c
index 9a5c1f008fe6..fced54a3adf6 100644
--- a/tools/bpf/runqslower/runqslower.bpf.c
+++ b/tools/bpf/runqslower/runqslower.bpf.c
@@ -70,7 +70,6 @@ int handle__sched_switch(u64 *ctx)
 	struct task_struct *next = (struct task_struct *)ctx[2];
 	struct runq_event event = {};
 	u64 *tsp, delta_us;
-	long state;
 	u32 pid;
 
 	/* ivcsw: treat like an enqueue event and store timestamp */
-- 
2.17.1




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

* Re: [PATCH] tools/bpf:remove unused variable
  2024-09-25 10:00 [PATCH] tools/bpf:remove " Zhu Jun
@ 2024-09-27 20:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-27 20:40 UTC (permalink / raw)
  To: Zhu Jun
  Cc: eddyz87, song, yonghong.song, john.fastabend, kpsingh, sdf,
	haoluo, jolsa, bpf, ast, daniel, andrii, martin.lau

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Wed, 25 Sep 2024 03:00:05 -0700 you wrote:
> This variable is never referenced in the code, just remove it.
> 
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
> ---
>  tools/bpf/runqslower/runqslower.bpf.c | 1 -
>  1 file changed, 1 deletion(-)

Here is the summary with links:
  - tools/bpf:remove unused variable
    https://git.kernel.org/bpf/bpf-next/c/fc7a391998b9

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2024-09-27 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20  5:51 [PATCH] tools/bpf: remove unused variable Zhu Jun
2024-08-21 20:57 ` Yonghong Song
  -- strict thread matches above, loose matches on Subject: below --
2024-09-25 10:00 [PATCH] tools/bpf:remove " Zhu Jun
2024-09-27 20:40 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.