From: kbuild test robot <lkp@intel.com>
To: Florian Westphal <fw@strlen.de>
Cc: kbuild-all@01.org, netfilter-devel@vger.kernel.org,
Florian Westphal <fw@strlen.de>
Subject: Re: [PATCH next] nft_meta: add skb hash get support
Date: Mon, 31 Oct 2016 21:24:41 +0800 [thread overview]
Message-ID: <201610312147.MLfF4yjl%fengguang.wu@intel.com> (raw)
In-Reply-To: <1477917869-26872-1-git-send-email-fw@strlen.de>
[-- Attachment #1: Type: text/plain, Size: 1907 bytes --]
Hi Florian,
[auto build test WARNING on next-20161028]
url: https://github.com/0day-ci/linux/commits/Florian-Westphal/nft_meta-add-skb-hash-get-support/20161031-204758
config: i386-randconfig-x078-201644 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
net/netfilter/nft_meta.c: In function 'nft_meta_get_eval':
>> net/netfilter/nft_meta.c:197:36: warning: passing argument 1 of '__skb_get_hash_symmetric' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
*dest = __skb_get_hash_symmetric(skb);
^~~
In file included from include/linux/netlink.h:6:0,
from net/netfilter/nft_meta.c:14:
include/linux/skbuff.h:1090:5: note: expected 'struct sk_buff *' but argument is of type 'const struct sk_buff *'
u32 __skb_get_hash_symmetric(struct sk_buff *skb);
^~~~~~~~~~~~~~~~~~~~~~~~
vim +197 net/netfilter/nft_meta.c
181 case NFT_META_CGROUP:
182 sk = skb_to_full_sk(skb);
183 if (!sk || !sk_fullsock(sk))
184 goto err;
185 *dest = sock_cgroup_classid(&sk->sk_cgrp_data);
186 break;
187 #endif
188 case NFT_META_PRANDOM: {
189 struct rnd_state *state = this_cpu_ptr(&nft_prandom_state);
190 *dest = prandom_u32_state(state);
191 break;
192 }
193 case NFT_META_HASH:
194 *dest = skb_get_hash(pkt->skb);
195 break;
196 case NFT_META_SYMHASH:
> 197 *dest = __skb_get_hash_symmetric(skb);
198 break;
199 default:
200 WARN_ON(1);
201 goto err;
202 }
203 return;
204
205 err:
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25103 bytes --]
next prev parent reply other threads:[~2016-10-31 13:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-31 12:44 [PATCH next] nft_meta: add skb hash get support Florian Westphal
2016-10-31 13:24 ` kbuild test robot [this message]
2016-10-31 14:24 ` Pablo Neira Ayuso
2016-11-03 16:47 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201610312147.MLfF4yjl%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=fw@strlen.de \
--cc=kbuild-all@01.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).