]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
arm unaligned.h annotations
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 26 Jul 2007 16:46:19 +0000 (17:46 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 18:11:57 +0000 (11:11 -0700)
commit60262e58e305f27d05eefeda172117521514f364
tree5922886821cecd727554b8e8b0544bc01b6b985e
parente7cf261b447ed7edbf7c10c046e078bda799afaf
arm unaligned.h annotations

Have put_unaligned() warn if types would be wrong
for assignment, slap force-casts where needed.  Cast the
result of get_unaligned to typeof(*ptr).  With that in
place we get proper typechecking, both from gcc and from sparse,
including that for bitwise types.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-arm/unaligned.h