* [jtkirshe-net-next:community 284/296] net/mpls/af_mpls.c:215:25: sparse: symbol 'rtm_mpls_policy' was not declared. Should it be static?
@ 2015-03-04 21:33 kbuild test robot
2015-03-04 21:33 ` [PATCH jtkirshe-net-next] mpls: rtm_mpls_policy[] can be static kbuild test robot
0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2015-03-04 21:33 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: kbuild-all, netdev, linux-kernel
tree: jtkirshe-net-next/community
head: 2d7208e1fa7f4f7667632746c0e1b6fa3640e0b3
commit: 03c0566542f4c7a45ce3193f27cbf5700b506c18 [284/296] mpls: Netlink commands to add, remove, and dump routes
reproduce:
# apt-get install sparse
git checkout 03c0566542f4c7a45ce3193f27cbf5700b506c18
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> net/mpls/af_mpls.c:215:25: sparse: symbol 'rtm_mpls_policy' was not declared. Should it be static?
net/mpls/af_mpls.c:237:22: sparse: incorrect type in argument 1 (different base types)
net/mpls/af_mpls.c:237:22: expected unsigned long [unsigned] [usertype] size
net/mpls/af_mpls.c:237:22: got restricted gfp_t
net/mpls/af_mpls.c:237:46: sparse: incorrect type in argument 2 (different base types)
net/mpls/af_mpls.c:237:46: expected restricted gfp_t [usertype] flags
net/mpls/af_mpls.c:237:46: got unsigned long
net/mpls/af_mpls.c:257:12: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:257:12: expected struct mpls_route *rt
net/mpls/af_mpls.c:257:12: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4><noident>
net/mpls/af_mpls.c:259:17: sparse: cast removes address space of expression
net/mpls/af_mpls.c:327:13: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:327:13: expected struct mpls_route *old
net/mpls/af_mpls.c:327:13: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4><noident>
net/mpls/af_mpls.c:392:65: sparse: incorrect type in initializer (different address spaces)
net/mpls/af_mpls.c:392:65: expected struct mpls_route *rt
net/mpls/af_mpls.c:392:65: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4><noident>
net/mpls/af_mpls.c:681:20: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:681:20: expected struct mpls_route *rt
net/mpls/af_mpls.c:681:20: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4><noident>
net/mpls/af_mpls.c:737:13: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:737:13: expected struct mpls_route [noderef] <asn:4>**old
net/mpls/af_mpls.c:737:13: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4>*platform_label
net/mpls/af_mpls.c:754:50: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:754:50: expected struct mpls_route [noderef] <asn:4>*<noident>
net/mpls/af_mpls.c:754:50: got struct mpls_route *[assigned] rt2
net/mpls/af_mpls.c:760:50: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:760:50: expected struct mpls_route [noderef] <asn:4>*<noident>
net/mpls/af_mpls.c:760:50: got struct mpls_route *[assigned] rt0
net/mpls/af_mpls.c:766:34: sparse: incorrect type in assignment (different address spaces)
net/mpls/af_mpls.c:766:34: expected struct mpls_route [noderef] <asn:4>*[noderef] <asn:4>*platform_label
net/mpls/af_mpls.c:766:34: got struct mpls_route [noderef] <asn:4>**[assigned] labels
net/mpls/af_mpls.c:860:65: sparse: incorrect type in initializer (different address spaces)
net/mpls/af_mpls.c:860:65: expected struct mpls_route *rt
net/mpls/af_mpls.c:860:65: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4><noident>
net/mpls/af_mpls.c:861:17: sparse: cast removes address space of expression
net/mpls/af_mpls.c:866:25: sparse: incorrect type in argument 1 (different address spaces)
net/mpls/af_mpls.c:866:25: expected void const *addr
net/mpls/af_mpls.c:866:25: got struct mpls_route [noderef] <asn:4>*[noderef] <asn:4>*platform_label
net/mpls/af_mpls.c:271:46: sparse: dereference of noderef expression
net/mpls/af_mpls.c:392:65: sparse: dereference of noderef expression
net/mpls/af_mpls.c:860:65: sparse: dereference of noderef expression
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH jtkirshe-net-next] mpls: rtm_mpls_policy[] can be static
2015-03-04 21:33 [jtkirshe-net-next:community 284/296] net/mpls/af_mpls.c:215:25: sparse: symbol 'rtm_mpls_policy' was not declared. Should it be static? kbuild test robot
@ 2015-03-04 21:33 ` kbuild test robot
2015-03-04 21:40 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2015-03-04 21:33 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: kbuild-all, netdev, linux-kernel
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
af_mpls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index b4d7cec..ee9a4b6 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -212,7 +212,7 @@ static struct packet_type mpls_packet_type __read_mostly = {
.func = mpls_forward,
};
-const struct nla_policy rtm_mpls_policy[RTA_MAX+1] = {
+static const struct nla_policy rtm_mpls_policy[RTA_MAX+1] = {
[RTA_DST] = { .type = NLA_U32 },
[RTA_OIF] = { .type = NLA_U32 },
};
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH jtkirshe-net-next] mpls: rtm_mpls_policy[] can be static
2015-03-04 21:33 ` [PATCH jtkirshe-net-next] mpls: rtm_mpls_policy[] can be static kbuild test robot
@ 2015-03-04 21:40 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2015-03-04 21:40 UTC (permalink / raw)
To: fengguang.wu; +Cc: ebiederm, kbuild-all, netdev, linux-kernel
From: kbuild test robot <fengguang.wu@intel.com>
Date: Thu, 5 Mar 2015 05:33:54 +0800
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-04 21:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 21:33 [jtkirshe-net-next:community 284/296] net/mpls/af_mpls.c:215:25: sparse: symbol 'rtm_mpls_policy' was not declared. Should it be static? kbuild test robot
2015-03-04 21:33 ` [PATCH jtkirshe-net-next] mpls: rtm_mpls_policy[] can be static kbuild test robot
2015-03-04 21:40 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®