[PATCH v2 2/3] net/dpaa2: make local array static

Stephen Hemminger stephen at networkplumber.org
Fri Oct 17 00:09:02 CEST 2025


The table wriop_bytecode can be static to avoid name conflicts.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
 drivers/net/dpaa2/dpaa2_sparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dpaa2/dpaa2_sparser.c b/drivers/net/dpaa2/dpaa2_sparser.c
index 0b3e9f1920..6c3e6eb573 100644
--- a/drivers/net/dpaa2/dpaa2_sparser.c
+++ b/drivers/net/dpaa2/dpaa2_sparser.c
@@ -23,7 +23,7 @@
 #include <stdint.h>
 #include <inttypes.h>
 
-uint8_t wriop_bytecode[] = {
+static uint8_t wriop_bytecode[] = {
 	0x00, 0x04, 0x29, 0x42, 0x03, 0xe0, 0x12, 0x00, 0x29, 0x02,
 	0x18, 0x00, 0x87, 0x3c, 0x00, 0x02, 0x18, 0x00, 0x00, 0x00
 };
-- 
2.47.3



More information about the dev mailing list