CHECK /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c
/home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: warning: incorrect type in argument 4 (different base types)
/home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: expected restricted __le16 [usertype] target_rcode
/home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: got int
/home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: warning: incorrect type in argument 4 (different base types)
/home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: expected restricted __le16 [usertype] target_rcode
/home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: got int
Hi,
On 19 Nov 2009, at 13:51, Johannes Berg wrote:
> CHECK /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c
> /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: warning: incorrect type in argument 4 (different base types)
> /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: expected restricted __le16 [usertype] target_rcode
> /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: got int
> /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: warning: incorrect type in argument 4 (different base types)
> /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: expected restricted __le16 [usertype] target_rcode
> /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: got int
Thanks Johannes. How does one perform this check?
--
Rui Paulo
On Thu, 2009-11-19 at 15:50 +0000, Rui Paulo wrote:
> Hi,
>
> On 19 Nov 2009, at 13:51, Johannes Berg wrote:
>
> > CHECK /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: warning: incorrect type in argument 4 (different base types)
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: expected restricted __le16 [usertype] target_rcode
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: got int
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: warning: incorrect type in argument 4 (different base types)
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: expected restricted __le16 [usertype] target_rcode
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: got int
>
> Thanks Johannes. How does one perform this check?
make M=net/mac80211 C=1
However, due to a stupid kmemcheck thing it's broken, runs into an error
in skbuff.h and you need to fix that first by removing the :16 on that
line.
johannes
On Thu, 2009-11-19 at 23:29 +0100, Johannes Berg wrote:
> make M=net/mac80211 C=1
or C=2 to check all files (C=1 checks files that are recompiled, C=2
checks all files)
johannes
On Thu, 2009-11-19 at 15:50 +0000, Rui Paulo wrote:
> Hi,
>
> On 19 Nov 2009, at 13:51, Johannes Berg wrote:
>
> > CHECK /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: warning: incorrect type in argument 4 (different base types)
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: expected restricted __le16 [usertype] target_rcode
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:471:41: got int
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: warning: incorrect type in argument 4 (different base types)
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: expected restricted __le16 [usertype] target_rcode
> > /home/johannes/sys/wireless-testing/net/mac80211/mesh_pathtbl.c:617:36: got int
>
> Thanks Johannes. How does one perform this check?
With sparse:
http://lwn.net/Articles/205624/
Dan