Re: The sheer number of sparse warnings in the kernel

From: Valdis . Kletnieks
Date: Tue Mar 04 2014 - 18:14:06 EST


On Wed, 26 Feb 2014 15:31:47 -0800, "H. Peter Anvin" said:

> Yes... it looks like the 0.4.5-rc1 that shipped in Fedora is indeed out
> of date. With 0.5.0 I "only" see 8,207 messages, which means that at
> least the linux/err.h issue is gone.

Unfortunately, that's not true, at least with the Fedora Rawhide
version of sparse. From yesterday's build of next-20140403:

[/usr/src/linux-next] sparse --version
0.5.0
[/usr/src/linux-next] grep err.h build.default | sort | uniq -c
1491 include/linux/err.h:29:23: warning: dereference of noderef expression
2 include/linux/err.h:29:23: warning: too many warnings
2493 include/linux/err.h:34:16: warning: dereference of noderef expression
59 include/linux/err.h:39:17: warning: dereference of noderef expression
59 include/linux/err.h:39:24: warning: dereference of noderef expression
124 include/linux/err.h:52:25: warning: dereference of noderef expression
18 include/linux/err.h:57:20: warning: dereference of noderef expression
18 include/linux/err.h:58:32: warning: dereference of noderef expression

(Oddly enough, the tarball in the .src.rpm seems to match the one on kernel.org,
and nothing fishy in the .spec file, so I'm confused now...)




Attachment: pgpkA5qhm8A0H.pgp
Description: PGP signature