Skip to contentSkip to conversation

net/dpaa: make mac_idx static

PATCH In review Stephen Hemminger 2 participants 2 messages Oct 16 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/dpaa: make mac_idx static

This array is only used in this file.

---
 drivers/net/dpaa/dpaa_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_flow.c +1 -1
index 05c1c1c065..f77f9f333b 100644
@@ -34,7 +34,7 @@ return &scheme_params->param.key_ext_and_hash.extract_array[hdr_idx];
 /* FMAN mac indexes mappings (0 is unused, first 8 are for 1G, next for 10G
  * ports).
  */
-const uint8_t mac_idx[] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1};
+static const uint8_t mac_idx[] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1};
 
 /* FM global info */
 struct dpaa_fm_info {
Signature · 1 line
2.53.0
Acked-by on v1 1/1
#1 lore raw

NXP Confidential

Quoted 9 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: 16 October 2026 23:36
To: [email protected]
Cc: Stephen Hemminger <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>
Subject: [PATCH] net/dpaa: make mac_idx static
Importance: High

Quoted 3 lines

This array is only used in this file.

Quoted 20 lines
---
 drivers/net/dpaa/dpaa_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_flow.c +1 -1
index 05c1c1c065..f77f9f333b 100644
@@ -34,7 +34,7 @@ return &scheme_params-
 >param.key_ext_and_hash.extract_array[hdr_idx];
 /* FMAN mac indexes mappings (0 is unused, first 8 are for 1G, next for 10G
  * ports).
  */
-const uint8_t mac_idx[] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1};
+static const uint8_t mac_idx[] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1};
 
 /* FM global info */

struct dpaa_fm_info {
--
2.53.0