Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6362921ybh; Wed, 7 Aug 2019 22:43:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKSs43aqdxJjJKmEXu1viCkMF8h3wubfPM1HcqdLt22P1lBk6Vbit5ZQ8wfQibBfJaCRPR X-Received: by 2002:a17:90a:35e6:: with SMTP id r93mr2232823pjb.20.1565243002088; Wed, 07 Aug 2019 22:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565243002; cv=none; d=google.com; s=arc-20160816; b=U/iD/PckZjPjy3HkykOgoK2PwpaVs1kyvhQvwPafAyXLdhBQyYtVL7JO7W/XvnlRC0 TBSNMHlelEUijeKmnWEziCOuFEnXsKUof9wrwpY9kKBTl6VA/Dn6GYaO+HEbL3g9Kngn bM/3Fh1n3MUIgY6Yz/QQLOFl9nkF1Bb/l5ofgwOblEWZjxy3erKT+beauv7KgrUgfVBs na0eDor4ZKGeaTU88LP+mHiV3PlECK8gn+kzbpmYxMzbmAM02Cs0HpWHfEDP5SmSY/Oe 8sKgOqteSwFv2AJ0wXxmbBuqm6qOPOfOYLuFNFzSny6JyI0QxpimSNqqD0KWLO+yhUyk 8U8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:mime-version:subject:cc :to:from; bh=ONCnBgjUfpZrL3xEXxyitnhHR+HMMVGSrZxNYT/XzNs=; b=whrJplGC7ynaDhwJ95hY93/74WQ4n87stPmrZlHYIU7Ez6OeAXMzGO7xKqWrQ6DN81 CKYO/+32nuZhGw9s8OS0i2FPb+jxacfK52/B1wrJrIqhnk4YeG8420u3LBdQNLRYFh1R ArC6QQhv6fifu7VtweJczDlT2kxaNI+8RcrQiYehPzPnxNjuqce+FGrDYzHr4vZjX/dV e3UHwNbXkv1SQ5xWl/qRYLi52NZYBPMJnOFWvgxMV9iuboyFpBdF2WsjpPqq8gKgQjlX qMscJ4Orace7TSow22JVokFxxtLZ+/G58dzTyGKr8nEcg9fIXy51wpnSmY3Uiin65pWa vpeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x185si54236688pfx.243.2019.08.07.22.43.05; Wed, 07 Aug 2019 22:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730811AbfHHF2S (ORCPT + 99 others); Thu, 8 Aug 2019 01:28:18 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:53776 "EHLO omr2.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbfHHF2R (ORCPT ); Thu, 8 Aug 2019 01:28:17 -0400 Received: from mr2.cc.vt.edu (junk.cc.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x785SGO2031815 for ; Thu, 8 Aug 2019 01:28:16 -0400 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x785SBot005548 for ; Thu, 8 Aug 2019 01:28:16 -0400 Received: by mail-qk1-f197.google.com with SMTP id s25so81195014qkj.18 for ; Wed, 07 Aug 2019 22:28:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version:date :message-id; bh=ONCnBgjUfpZrL3xEXxyitnhHR+HMMVGSrZxNYT/XzNs=; b=PA8xuKqCCe5A0x6gGEgt2uuKjlOHHeNE2v1ZwN+xgs1gJsqkqMOKmSdkT0xVSpX5Nl Xi/jHcmh7RhUXF0hO3vSdkpuuYM1wbS5sIpPJ1JmfuAFAeWFqlEidr/dI/OXFAEH2XGf XuUqW78BR/Vkob0NlEAZpWFx2B9Xs+whWR7cyPQFyY54bBJnPxpvtqduLQC50FqCWB0E Cdct8hLs18jFXQZhmhaktmjbqaUjupvQc78rn8QELu0/RiQivVaDXCulHhic3CGqIuoU iji2ASZgAsEWHk+YSgjjKMc3Q7ol0zp1KP4Tt8yK7dBS03e0zmIesYdsDFmuUqgH8z8t 89og== X-Gm-Message-State: APjAAAVwDuq8ur1xQg0LIybpi7JwzykMSju+nh1Xh2uJo6yQ6Lwyn0+O DKgZXzQdZQ2ZFPszSaBcWrocrATm/4gNCreRCqkrNMbjZhkMhEqZeiwpBRwvC6DKUH20xa3XnFX 17jWn35TEntkSgGC8kHYghMdioW/e0/YnjEU= X-Received: by 2002:aed:27d5:: with SMTP id m21mr728402qtg.153.1565242091249; Wed, 07 Aug 2019 22:28:11 -0700 (PDT) X-Received: by 2002:aed:27d5:: with SMTP id m21mr728395qtg.153.1565242090938; Wed, 07 Aug 2019 22:28:10 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::359]) by smtp.gmail.com with ESMTPSA id u16sm46835732qte.32.2019.08.07.22.28.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 22:28:09 -0700 (PDT) From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Google-Original-From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/netfilter - add missing prototypes. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 08 Aug 2019 01:28:08 -0400 Message-ID: <54079.1565242088@turing-police> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse rightly complains about undeclared symbols. CHECK net/netfilter/nft_set_hash.c net/netfilter/nft_set_hash.c:647:21: warning: symbol 'nft_set_rhash_type' was not declared. Should it be static? net/netfilter/nft_set_hash.c:670:21: warning: symbol 'nft_set_hash_type' was not declared. Should it be static? net/netfilter/nft_set_hash.c:690:21: warning: symbol 'nft_set_hash_fast_type' was not declared. Should it be static? CHECK net/netfilter/nft_set_bitmap.c net/netfilter/nft_set_bitmap.c:296:21: warning: symbol 'nft_set_bitmap_type' was not declared. Should it be static? CHECK net/netfilter/nft_set_rbtree.c net/netfilter/nft_set_rbtree.c:470:21: warning: symbol 'nft_set_rbtree_type' was not declared. Should it be static? Include nf_tables_core.h rather than nf_tables.h to pick up the additional definitions. Signed-off-by: Valdis Kletnieks diff --git a/net/netfilter/nft_set_bitmap.c b/net/netfilter/nft_set_bitmap.c index b5aeccdddb22..087a056e34d1 100644 --- a/net/netfilter/nft_set_bitmap.c +++ b/net/netfilter/nft_set_bitmap.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include struct nft_bitmap_elem { struct list_head head; diff --git a/net/netfilter/nft_set_hash.c b/net/netfilter/nft_set_hash.c index 6e8d20c03e3d..c490451fcebf 100644 --- a/net/netfilter/nft_set_hash.c +++ b/net/netfilter/nft_set_hash.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include /* We target a hash table size of 4, element hint is 75% of final size */ #define NFT_RHASH_ELEMENT_HINT 3 diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c index 419d58ef802b..57123259452f 100644 --- a/net/netfilter/nft_set_rbtree.c +++ b/net/netfilter/nft_set_rbtree.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include struct nft_rbtree { struct rb_root root;