net/dpaa: make mac_idx static
PATCH 1/1 net/dpaa: make mac_idx static
This array is only used in this file.
Signed-off-by Stephen Hemminger <[email protected]>
--- drivers/net/dpaa/dpaa_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_flow.c +1 -1
@@ -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
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: makemac_idxstatic
Importance: High
Quoted 3 lines
This array is only used in this file.
Signed-off-by Stephen Hemminger <[email protected]>
Acked-by Hemant Agrawal <[email protected]>
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@@ -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