public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.4,4.10 1/2] perf cs-etm: Add missing variable in cs_etm__process_queues()
@ 2025-02-24 15:57 Ben Hutchings
  2025-02-24 16:00 ` [PATCH 5.4,5.10 2/2] udf: Fix use of check_add_overflow() with mixed type arguments Ben Hutchings
  2025-02-25 16:13 ` [PATCH 5.4,4.10 1/2] perf cs-etm: Add missing variable in cs_etm__process_queues() Sasha Levin
  0 siblings, 2 replies; 8+ messages in thread
From: Ben Hutchings @ 2025-02-24 15:57 UTC (permalink / raw)
  To: stable; +Cc: James Clark

[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]

Commit 5afd032961e8 "perf cs-etm: Don't flush when packet_queue fills
up" uses i as a loop counter in cs_etm__process_queues().  It was
backported to the 5.4 and 5.10 stable branches, but the i variable
doesn't exist there as it was only added in 5.15.

Declare i with the expected type.

Fixes: 1ed167325c32 ("perf cs-etm: Don't flush when packet_queue fills up")
Fixes: 26db806fa23e ("perf cs-etm: Don't flush when packet_queue fills up")
Signed-off-by: Ben Hutchings <benh@debian.org>
---
 tools/perf/util/cs-etm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
index e3fa32b83367..2055d582a8a4 100644
--- a/tools/perf/util/cs-etm.c
+++ b/tools/perf/util/cs-etm.c
@@ -2171,7 +2171,7 @@ static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
 static int cs_etm__process_queues(struct cs_etm_auxtrace *etm)
 {
 	int ret = 0;
-	unsigned int cs_queue_nr, queue_nr;
+	unsigned int cs_queue_nr, queue_nr, i;
 	u8 trace_chan_id;
 	u64 timestamp;
 	struct auxtrace_queue *queue;


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2025-03-13 15:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 15:57 [PATCH 5.4,4.10 1/2] perf cs-etm: Add missing variable in cs_etm__process_queues() Ben Hutchings
2025-02-24 16:00 ` [PATCH 5.4,5.10 2/2] udf: Fix use of check_add_overflow() with mixed type arguments Ben Hutchings
2025-02-24 22:28   ` Ben Hutchings
2025-03-10 16:29     ` Greg KH
2025-03-11 17:00       ` Ben Hutchings
2025-03-13 15:42         ` Greg KH
2025-02-25 16:13   ` Sasha Levin
2025-02-25 16:13 ` [PATCH 5.4,4.10 1/2] perf cs-etm: Add missing variable in cs_etm__process_queues() Sasha Levin

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