From patchwork Wed Nov 12 11:10:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 409942 X-Patchwork-Delegate: pablo@netfilter.org 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 B31971400B6 for ; Wed, 12 Nov 2014 22:10:51 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751507AbaKLLKu (ORCPT ); Wed, 12 Nov 2014 06:10:50 -0500 Received: from smtp3.cica.es ([150.214.5.190]:49791 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750850AbaKLLKu (ORCPT ); Wed, 12 Nov 2014 06:10:50 -0500 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id 6CC6951F026; Wed, 12 Nov 2014 11:10:47 +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 2jph8ki8Xewr; Wed, 12 Nov 2014 12:10:42 +0100 (CET) Received: from nfdev.cica.es (nfdev.cica.es [IPv6:2a00:9ac0:c1ca:31::220]) by smtp.cica.es (Postfix) with ESMTP id 19C8951F0B9; Wed, 12 Nov 2014 12:10:41 +0100 (CET) Subject: [PATCH] netfilter: nft_redir: fix sparse warnings: cast to restricted __be32 From: Arturo Borrero Gonzalez To: netfilter-devel@vger.kernel.org Cc: pablo@netfilter.org Date: Wed, 12 Nov 2014 12:10:39 +0100 Message-ID: <20141112111039.323.26439.stgit@nfdev.cica.es> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org This patch fixes some sparse warnings: net/netfilter/nft_redir.c:39:26: sparse: incorrect type in assignment (different base types) net/netfilter/nft_redir.c:39:26: expected unsigned int [unsigned] [usertype] nla_be32 net/netfilter/nft_redir.c:39:26: got restricted __be32 net/netfilter/nft_redir.c:40:40: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:40:40: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:40:40: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:40:40: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:40:40: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:40:40: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:46:34: sparse: incorrect type in assignment (different base types) net/netfilter/nft_redir.c:46:34: expected unsigned int [unsigned] [usertype] nla_be32 net/netfilter/nft_redir.c:46:34: got restricted __be32 net/netfilter/nft_redir.c:47:48: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:47:48: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:47:48: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:47:48: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:47:48: sparse: cast to restricted __be32 net/netfilter/nft_redir.c:47:48: sparse: cast to restricted __be32 Reported-by: kbuild test robot Signed-off-by: Arturo Borrero Gonzalez --- net/netfilter/nft_redir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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_redir.c b/net/netfilter/nft_redir.c index e27b4e3..dd2aa78 100644 --- a/net/netfilter/nft_redir.c +++ b/net/netfilter/nft_redir.c @@ -28,7 +28,7 @@ int nft_redir_init(const struct nft_ctx *ctx, const struct nlattr * const tb[]) { struct nft_redir *priv = nft_expr_priv(expr); - u32 nla_be32; + __be32 nla_be32; int err; err = nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT);