From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Haley Subject: [PATCH v2] cls_flower: Fix compile error Date: Thu, 14 May 2015 12:50:17 -0400 Message-ID: <5554D249.6080204@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jiri Pirko , David Miller To: "netdev@vger.kernel.org" Return-path: Received: from g4t3426.houston.hp.com ([15.201.208.54]:51099 "EHLO g4t3426.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbbENQuV (ORCPT ); Thu, 14 May 2015 12:50:21 -0400 Sender: netdev-owner@vger.kernel.org List-ID: =46ix compile error in net/sched/cls_flower.c net/sched/cls_flower.c: In function =E2=80=98fl_set_key=E2=80=99: net/sched/cls_flower.c:240:3: error: implicit declaration of funct= ion=20 =E2=80=98tcf_change_indev=E2=80=99 [-Werror=3Dimplicit-function-declara= tion] err =3D tcf_change_indev(net, tb[TCA_FLOWER_INDEV]); Introduced in 77b9900ef53ae047e36a37d13a2aa33bb2d60641 Signed-off-by: Brian Haley diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c index 9bc654c..8c8f34e 100644 --- a/net/sched/cls_flower.c +++ b/net/sched/cls_flower.c @@ -234,15 +234,15 @@ static void fl_set_key_val(struct nlattr **tb, static int fl_set_key(struct net *net, struct nlattr **tb, struct fl_flow_key *key, struct fl_flow_key *mask) { - int err; - +#ifdef CONFIG_NET_CLS_IND if (tb[TCA_FLOWER_INDEV]) { - err =3D tcf_change_indev(net, tb[TCA_FLOWER_INDEV]); + int err =3D tcf_change_indev(net, tb[TCA_FLOWER_INDEV]); if (err < 0) return err; key->indev_ifindex =3D err; mask->indev_ifindex =3D 0xffffffff; } +#endif fl_set_key_val(tb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST, mask->eth.dst, TCA_FLOWER_KEY_ETH_DST_MASK,