From f711e3c80a35e0762c719c0ef35fddfa35d92bbd Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 29 Jan 2016 14:41:28 +0100 Subject: trafgen: l2: Make needlessly global symbol eth_fields static This fixes the following sparse warning: trafgen_l2.c:13:20: warning: symbol 'eth_fields' was not declared. Should it be static? Signed-off-by: Tobias Klauser --- trafgen_l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trafgen_l2.c b/trafgen_l2.c index e881b06..60da411 100644 --- a/trafgen_l2.c +++ b/trafgen_l2.c @@ -10,7 +10,7 @@ #include "trafgen_l2.h" #include "trafgen_proto.h" -struct proto_field eth_fields[] = { +static struct proto_field eth_fields[] = { { .id = ETH_DST_ADDR, .len = 6, }, { .id = ETH_SRC_ADDR, .len = 6, .offset = 6 }, { .id = ETH_TYPE, .len = 2, .offset = 12 }, -- cgit v1.2.3-54-g00ecf