From 578cadcc68035943062d74507c3b7989741b353f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 16 Jun 2019 14:46:02 -0700 Subject: [PATCH] ipmroute: Prevent overlapping storage of `filter` global This variable has the same name as `struct xfrm_filter filter` in ip/ipxfrm.c, but overrides that definition since `struct rtfilter` is larger. This is visible when built with -Wl,--warn-common in LDFLAGS: /usr/bin/ld: ipxfrm.o: warning: common of `filter' overridden by larger common from ipmroute.o Signed-off-by: Michael Forney Signed-off-by: Stephen Hemminger --- ip/ipmroute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipmroute.c b/ip/ipmroute.c index 6cf91fe93..3537bdf4d 100644 --- a/ip/ipmroute.c +++ b/ip/ipmroute.c @@ -44,7 +44,7 @@ static void usage(void) exit(-1); } -struct rtfilter { +static struct rtfilter { int tb; int af; int iif; -- 2.47.2