* [net-next:master 126/134] include/net/ipv6.h:555:26: sparse: cast to restricted __be32
[not found] <50f370b4.sImtI783JLS2vUID%yuanhan.liu@linux.intel.com>
@ 2013-01-14 2:55 ` Fengguang Wu
0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2013-01-14 2:55 UTC (permalink / raw)
To: YOSHIFUJI Hideaki / 吉藤英明; +Cc: netdev
Hi YOSHIFUJI,
FYI, there are new sparse warnings show up in
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 25d46f43a911b08c5aa8c8fd4fe7fa9b36445068
commit: 3e4e4c1f2da66b29ee9379ca29f8dd620c2b5a1f [126/134] ipv6: Introduce ip6_flow_hdr() to fill version, tclass and flowlabel.
>> include/net/ipv6.h:555:26: sparse: cast to restricted __be32
>> include/net/ipv6.h:555:63: sparse: restricted __be32 degrades to integer
>> include/net/ipv6.h:555:24: sparse: incorrect type in assignment (different base types)
include/net/ipv6.h:555:24: expected restricted __be32 [usertype] <noident>
include/net/ipv6.h:555:24: got unsigned int
vim +555 include/net/ipv6.h
971f359d YOSHIFUJI Hideaki 2005-11-08 549 /*
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 550 * Header manipulation
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 551 */
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 552 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass,
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 553 __be32 flowlabel)
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 554 {
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 @555 *(__be32 *)hdr = ntohl(0x60000000 | (tclass << 20)) | flowlabel;
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 556 }
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 557
3e4e4c1f YOSHIFUJI Hideaki / 吉藤英明 2013-01-13 558 /*
---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-14 2:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <50f370b4.sImtI783JLS2vUID%yuanhan.liu@linux.intel.com>
2013-01-14 2:55 ` [net-next:master 126/134] include/net/ipv6.h:555:26: sparse: cast to restricted __be32 Fengguang Wu
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).