From patchwork Tue Apr 1 11:18:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 335739 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AE1A4140095 for ; Tue, 1 Apr 2014 21:50:25 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbaDAKuZ (ORCPT ); Tue, 1 Apr 2014 06:50:25 -0400 Received: from smtp3.cica.es ([150.214.5.190]:45076 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751260AbaDAKuY (ORCPT ); Tue, 1 Apr 2014 06:50:24 -0400 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id 2FC0751EEA0; Tue, 1 Apr 2014 10:50:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at cica.es Received: from smtp.cica.es ([127.0.0.1]) by localhost (mail.cica.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ybVpw1aT38wM; Tue, 1 Apr 2014 12:50:19 +0200 (CEST) Received: from nfbe.cica.es (nfbe.cica.es [IPv6:2a00:9ac0:c1ca:31::219]) by smtp.cica.es (Postfix) with ESMTP id EC9C051EE7F; Tue, 1 Apr 2014 12:50:18 +0200 (CEST) Subject: [nf_tables PATCH] netfilter: nft_hash: fix inclusion of linux/vmalloc.h To: netfilter-devel@vger.kernel.org From: Arturo Borrero Gonzalez Cc: kaber@trash.net, pablo@netfilter.org Date: Tue, 01 Apr 2014 13:18:10 +0200 Message-ID: <20140401111810.18995.17628.stgit@nfbe.cica.es> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org This solves this compilation warning: net/netfilter/nft_hash.c: In function 'nft_hash_tbl_free': net/netfilter/nft_hash.c:79:3: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration] net/netfilter/nft_hash.c: In function 'nft_hash_tbl_alloc': net/netfilter/nft_hash.c:92:3: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration] net/netfilter/nft_hash.c:92:7: warning: assignment makes pointer from integer without a cast [enabled by default] cc1: some warnings being treated as errors make[4]: *** [net/netfilter/nft_hash.o] Error 1 make[3]: *** [net/netfilter] Error 2 make[2]: *** [net] Error 2 [...] Spotted when building the kernel in SPARC. Signed-off-by: Arturo Borrero Gonzalez --- net/netfilter/nft_hash.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c index 6a1acde..2732402 100644 --- a/net/netfilter/nft_hash.c +++ b/net/netfilter/nft_hash.c @@ -8,6 +8,7 @@ * Development of this code funded by Astaro AG (http://www.astaro.com/) */ +#include #include #include #include