From: Al Viro Date: Tue, 17 Jul 2007 07:49:35 +0000 (+0100) Subject: saner typechecking in generic unaligned.h X-Git-Tag: v2.6.23-rc1~527 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d37c6e1b67e8d7f3c5fceba491dcb09a15cb7772;p=pandora-kernel.git saner typechecking in generic unaligned.h Verify that types would match for assignment (under sizeof, so we are safe from side effects or any code actually getting generated), then explicitly cast everywhere to the fixed-sized types. Kills a bunch of bogus warnings about constants being truncated (gcc, sparse), finds a pile of endianness problems hidden by old noise (sparse). Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed