All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] net: ipa: Use the correct value for IPA_STATUS_SIZE
@ 2023-05-27 20:46 Bert Karwatzki
  2023-05-30  5:10 ` Jakub Kicinski
  2023-05-30  7:09 ` Simon Horman
  0 siblings, 2 replies; 14+ messages in thread
From: Bert Karwatzki @ 2023-05-27 20:46 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: elder, netdev, linux-arm-msm, linux-kernel

commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c introduced
IPA_STATUS_SIZE as a replacement for the size of the removed struct
ipa_status. sizeof(struct ipa_status) was sizeof(__le32[8]), use this
as IPA_STATUS_SIZE.

From 0623148733819bb5d3648b1ed404d57c8b6b31d8 Mon Sep 17 00:00:00 2001
From: Bert Karwatzki <spasswolf@web.de>
Date: Sat, 27 May 2023 22:16:52 +0200
Subject: [PATCH] Use the correct value for IPA_STATUS_SIZE.
IPA_STATUS_SIZE
 was introduced in commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c as a
 replacment for the size of the removed struct ipa_status which had
size =
 sizeof(__le32[8]).

Signed-off-by: Bert Karwatzki <spasswolf@web.de>
---
 drivers/net/ipa/ipa_endpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ipa/ipa_endpoint.c
b/drivers/net/ipa/ipa_endpoint.c
index 2ee80ed140b7..afa1d56d9095 100644
--- a/drivers/net/ipa/ipa_endpoint.c
+++ b/drivers/net/ipa/ipa_endpoint.c
@@ -119,7 +119,7 @@ enum ipa_status_field_id {
 };
 
 /* Size in bytes of an IPA packet status structure */
-#define IPA_STATUS_SIZE			sizeof(__le32[4])
+#define IPA_STATUS_SIZE			sizeof(__le32[8])
 
 /* IPA status structure decoder; looks up field values for a structure
*/
 static u32 ipa_status_extract(struct ipa *ipa, const void *data,
-- 
2.40.1

Bert Karwatzki


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

end of thread, other threads:[~2023-06-01 11:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-27 20:46 [PATCH net] net: ipa: Use the correct value for IPA_STATUS_SIZE Bert Karwatzki
2023-05-30  5:10 ` Jakub Kicinski
2023-05-30  7:09 ` Simon Horman
2023-05-30  9:10   ` Bert Karwatzki
2023-05-30 12:29     ` Alex Elder
2023-05-30 18:36       ` Bert Karwatzki
2023-05-30 19:04         ` Alex Elder
2023-05-30 23:25           ` [PATCH net v2] " Bert Karwatzki
2023-05-30 23:43             ` Alex Elder
2023-05-31  0:33               ` Jakub Kicinski
2023-05-31  1:57               ` Alex Elder
2023-05-31 10:36                 ` [PATCH net v3] net: ipa: Use " Bert Karwatzki
2023-05-31 22:07                   ` Simon Horman
2023-06-01 11: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.