aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2014-05-29 11:52:52 -0400
committerChristoph Hellwig <hch@lst.de>2014-06-02 03:54:53 -0400
commit35d697c451678c3bf3f8a24f8e2b3918d1731bc5 (patch)
tree1be105623fdf25cca2ab3a970bf7a522ceaaf31f /drivers/scsi/hpsa.c
parent00701a96f81f4e1b7279f5e05fe02274bbe29e59 (diff)
hpsa: use gcc aligned attribute instead of manually padding structs
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Reviewed-by: Webb Scales <webb.scales@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index e97a7c294548..a02d26a395e3 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -6932,7 +6932,6 @@ reinit_after_soft_reset:
6932 * the 5 lower bits of the address are used by the hardware. and by 6932 * the 5 lower bits of the address are used by the hardware. and by
6933 * the driver. See comments in hpsa.h for more info. 6933 * the driver. See comments in hpsa.h for more info.
6934 */ 6934 */
6935#define COMMANDLIST_ALIGNMENT 128
6936 BUILD_BUG_ON(sizeof(struct CommandList) % COMMANDLIST_ALIGNMENT); 6935 BUILD_BUG_ON(sizeof(struct CommandList) % COMMANDLIST_ALIGNMENT);
6937 h = kzalloc(sizeof(*h), GFP_KERNEL); 6936 h = kzalloc(sizeof(*h), GFP_KERNEL);
6938 if (!h) 6937 if (!h)
@@ -7405,7 +7404,6 @@ static int hpsa_alloc_ioaccel_cmd_and_bft(struct ctlr_info *h)
7405 * because the 7 lower bits of the address are used by the 7404 * because the 7 lower bits of the address are used by the
7406 * hardware. 7405 * hardware.
7407 */ 7406 */
7408#define IOACCEL1_COMMANDLIST_ALIGNMENT 128
7409 BUILD_BUG_ON(sizeof(struct io_accel1_cmd) % 7407 BUILD_BUG_ON(sizeof(struct io_accel1_cmd) %
7410 IOACCEL1_COMMANDLIST_ALIGNMENT); 7408 IOACCEL1_COMMANDLIST_ALIGNMENT);
7411 h->ioaccel_cmd_pool = 7409 h->ioaccel_cmd_pool =
@@ -7443,7 +7441,6 @@ static int ioaccel2_alloc_cmds_and_bft(struct ctlr_info *h)
7443 if (h->ioaccel_maxsg > IOACCEL2_MAXSGENTRIES) 7441 if (h->ioaccel_maxsg > IOACCEL2_MAXSGENTRIES)
7444 h->ioaccel_maxsg = IOACCEL2_MAXSGENTRIES; 7442 h->ioaccel_maxsg = IOACCEL2_MAXSGENTRIES;
7445 7443
7446#define IOACCEL2_COMMANDLIST_ALIGNMENT 128
7447 BUILD_BUG_ON(sizeof(struct io_accel2_cmd) % 7444 BUILD_BUG_ON(sizeof(struct io_accel2_cmd) %
7448 IOACCEL2_COMMANDLIST_ALIGNMENT); 7445 IOACCEL2_COMMANDLIST_ALIGNMENT);
7449 h->ioaccel2_cmd_pool = 7446 h->ioaccel2_cmd_pool =