LWN: Comments on "Using sparse for endianness verification" https://lwn.net/Articles/205624/ This is a special feed containing comments posted to the individual LWN article titled "Using sparse for endianness verification". en-us Fri, 19 Sep 2025 19:17:34 +0000 Fri, 19 Sep 2025 19:17:34 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Using sparse for endianness verification https://lwn.net/Articles/207814/ https://lwn.net/Articles/207814/ mdomsch sparse is now available in Fedora Extras for FC 5, 6, and -devel, and I'll be packaging it there going forward. Enjoy!<br> Mon, 06 Nov 2006 03:08:34 +0000 Using sparse for endianness verification https://lwn.net/Articles/206234/ https://lwn.net/Articles/206234/ bos I completely agree with Jon's endorsement of sparse. It's trivial to build and almost trivial to install. I say "almost trivial" because for some reason the binary it builds is called "check", while the program that the kernel build expects to run is called "sparse". So if you're not one to run "make install", remember to "cp check $DESTDIR/sparse".<br> <p> I used sparse heavily to annotate the ipath driver in several different ways: endianness, opacity of some types, and visibility to userspace. These absolutely helped me to find and squish bugs that would not otherwise have been obvious, especially the endianness annotations (which makes sense, since the ipath driver is a network driver).<br> Thu, 26 Oct 2006 04:51:38 +0000