Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135568
b: refs/heads/master
c: 10cbda9
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Mar 24, 2009
1 parent 8ac1e82 commit 7caffbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7fcd37cdcb47806fb8a9070f006ee34061defa6
refs/heads/master: 10cbda97e73c7d537d7174eadb2d098484f8f1da
7 changes: 7 additions & 0 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -3898,6 +3898,13 @@ static struct pci_driver cciss_pci_driver = {
*/
static int __init cciss_init(void)
{
/*
* The hardware requires that commands are aligned on a 64-bit
* boundary. Given that we use pci_alloc_consistent() to allocate an
* array of them, the size must be a multiple of 8 bytes.
*/
BUILD_BUG_ON(sizeof(CommandList_struct) % 8);

printk(KERN_INFO DRIVER_NAME "\n");

/* Register for our PCI devices */
Expand Down

0 comments on commit 7caffbd

Please sign in to comment.