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

Hemant Agrawal hemant.agrawal at oss.nxp.com
Thu Oct 16 07:14:55 CEST 2025


On 16-10-2025 04:37, Stephen Hemminger wrote:
> The table wriop_bytecode can be static to avoid name conflicts.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>   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
>   };
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>



More information about the dev mailing list