On Sun, Sep 1, 2013 at 4:10 AM, Theodore Ts'o <tytso@xxxxxxx> wrote: > Speaking of bool (and I'm not a fan of it either), is this warning > just noise (which is bad enough since it masks real warnings), or is > this going to cause serious problems? > > CHECK /usr/projects/linux/ext4/kernel/trace/trace.c > /usr/projects/linux/ext4/kernel/trace/trace.c:559:6: warning: symbol 'free_snapshot' was not declared. Should it be static? > /usr/projects/linux/ext4/kernel/trace/trace.c:1489:14: warning: expression using sizeof bool It's just because sparse is being a bit odd. Internally, sparse thinks that "bool" has a size of one bit. So it then the sizeof code has a special case to make it one byte, and when that special case was added, people added the warning too. I suspect we sparse should just make the size of "bool" be 8 bits internally, and we should drop the warning. As it is, sparse will actually do odd and wrong things due to the "bool is one bit" if you put "bool" types in structures or unions, I think. Nobody used to care, because we used to not use that broken type in the kernel. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html