From patchwork Sun Jun 4 21:44:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 771043 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wgs1969c5z9ryv for ; Mon, 5 Jun 2017 07:44:45 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="U7RZfxA4"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751236AbdFDVoZ (ORCPT ); Sun, 4 Jun 2017 17:44:25 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35504 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbdFDVoW (ORCPT ); Sun, 4 Jun 2017 17:44:22 -0400 Received: by mail-wr0-f195.google.com with SMTP id g76so5877620wrd.2; Sun, 04 Jun 2017 14:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=HDu6b1Rsx/DquwtmP4CbkKPNBTV4XyeAFNU7boV5mPs=; b=U7RZfxA4PexjZsWv4LJ0NO2CPOepjiO8/wPSocW9uC4EOqJ/qRtWUHGauUoXxPxs1A 0UdmjXUR+dH5w8wql9jfzSKu2gsfkYq4an0M8L7BZ9H3MSBiLEPZ8ITw7kbLc5t0M7ba iti5nOV7aAEfPZ75rHjRDvrn1d2MnyTqCpUzJldOcy/PWZMuIBMEMKI2rwumRwbiHe9c 4yaJUx3MJKcUe8hAM6HtfrKJ0J9MbIKSVxuHBtWHcyfYYAzFVlOwduuJgTRIgeTQtGZe AcNY+WzZ9zchEQhqJmnaqSJxehakC/A/0GRPG4Az/2DTmdhGVelpZp/qnYxnAkGyFUyy b85Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HDu6b1Rsx/DquwtmP4CbkKPNBTV4XyeAFNU7boV5mPs=; b=RGkX/3tpGhzwseCs85JRX0Xz6Gp6Ahx15W1u2Ua8Lldwmaw1arEFqyf3mkAsa50pba t8me0RJq6b+sk8WAmCj7WothnrAOiZLhzV3/+MmpQ9PNvmohNr1OWX8L48bIZwP5nrXN FiP0A1TxfO/QNwtIIenlLBsHmn5f0cDYbuoJskuwx/CnwapOKErgfb5cUk8pBh8flqcx zOFL/ikaZRItgh3A1qHUt/hG98mdUTODz7MTiJzcHYAC2PH71NduuTttTd4Yv/SmWNcF e55CTfr2Zz70nrEzHa1vUGNJ2nP+VltVkq48wI2OA01buZS2DVWcWlD7d6kVLF5fG6vr 920Q== X-Gm-Message-State: AODbwcA2+LOFfouszdN+yTTJ47tBd2FswciKzvsd/SmwJAoSpAIrTONn LbgEIroGFPfA1w== X-Received: by 10.223.135.227 with SMTP id c32mr13893523wrc.10.1496612660901; Sun, 04 Jun 2017 14:44:20 -0700 (PDT) Received: from localhost.localdomain (cpc101300-bagu16-2-0-cust362.1-3.cable.virginm.net. [86.21.41.107]) by smtp.gmail.com with ESMTPSA id p76sm9459923wma.15.2017.06.04.14.44.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Jun 2017 14:44:20 -0700 (PDT) From: Sudip Mukherjee To: Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Ralf Baechle Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-mips@linux-mips.org, Sudip Mukherjee Subject: [PATCH] net: sched: fix mips build failure Date: Sun, 4 Jun 2017 22:44:13 +0100 Message-Id: <1496612653-12419-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The build of mips ar7_defconfig was failing with the error: ../net/sched/act_api.c: In function 'tcf_action_goto_chain_init': ../net/sched/act_api.c:37:18: error: implicit declaration of function 'tcf_chain_get' [-Werror=implicit-function-declaration] ../net/sched/act_api.c: In function 'tcf_action_goto_chain_fini': ../net/sched/act_api.c:45:2: error: implicit declaration of function 'tcf_chain_put' [-Werror=implicit-function-declaration] Add two inline helpers for the case where CONFIG_NET_CLS is not enabled. Signed-off-by: Sudip Mukherjee --- The build log of the latest linux-next is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/238623031/ include/net/pkt_cls.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 537d0a0..c34ade5 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -29,6 +29,17 @@ int tcf_classify(struct sk_buff *skb, const struct tcf_proto *tp, #else static inline +struct tcf_chain *tcf_chain_get(struct tcf_block *block, + u32 chain_index, bool create) +{ + return NULL; +} + +static inline void tcf_chain_put(struct tcf_chain *chain) +{ +} + +static inline int tcf_block_get(struct tcf_block **p_block, struct tcf_proto __rcu **p_filter_chain) {