]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix a compile warning in act_ife
authorCong Wang <xiyou.wangcong@gmail.com>
Fri, 13 Oct 2017 19:58:13 +0000 (12:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:43:45 +0000 (18:43 -0700)
commitc03baec3714751ede912953c531c93ac26db7905
treea10955950b97a5c9a6431e491514cd9458f481a3
parent59754480be4761c4b725d62ed263e7b179e462e7
net_sched: fix a compile warning in act_ife

Apparently ife_meta_id2name() is only called when
CONFIG_MODULES is defined.

This fixes:

net/sched/act_ife.c:251:20: warning: ‘ife_meta_id2name’ defined but not used [-Wunused-function]
 static const char *ife_meta_id2name(u32 metaid)
                    ^~~~~~~~~~~~~~~~

Fixes: 5cf799ed80e9 ("net sched actions: fix module auto-loading")
Cc: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ife.c