]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: add BUILD_BUG_ON() for catching bad CommandList_struct alignment
authorJens Axboe <jens.axboe@oracle.com>
Fri, 27 Feb 2009 19:14:20 +0000 (20:14 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 24 Mar 2009 11:35:16 +0000 (12:35 +0100)
commit92131bcebc1c77010066c62a81fe8685a3ec71aa
tree9e67224345a082533d273f4926ce3281d6fe8bf1
parentf32462f208464244729c3b7f996ed8833a7fd63b
cciss: add BUILD_BUG_ON() for catching bad CommandList_struct alignment

The hardware requires 64-bit alignment of commands, so add a build bug
check for that. The recent commit dfb0edd4d055d525bc1e8bd9d71d0ec67db18847
didn't change the size of the command, but other additions/changes may and
thus break badly at runtime.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c