diff options
author | Brice Goglin <brice@myri.com> | 2008-05-08 20:17:37 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-05-13 01:30:27 -0400 |
commit | f8fd57c11159d89d0d9cd624eafad41c680e8f6e (patch) | |
tree | 92287113bd036a509d5cac313d19a24e7b0d430a /drivers/net/myri10ge/myri10ge.c | |
parent | d93ca2a453f8e5734359267866ab4f3341aa8749 (diff) |
myri10ge: properly align scratch buffers
Properly align scratch buffers when making boot commands.
Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Andrew Gallatin <gallatin@myri.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/myri10ge/myri10ge.c')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index ad6c619e3a56..3f871c467ed2 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -443,7 +443,7 @@ abort: | |||
443 | static void myri10ge_dummy_rdma(struct myri10ge_priv *mgp, int enable) | 443 | static void myri10ge_dummy_rdma(struct myri10ge_priv *mgp, int enable) |
444 | { | 444 | { |
445 | char __iomem *submit; | 445 | char __iomem *submit; |
446 | __be32 buf[16]; | 446 | __be32 buf[16] __attribute__ ((__aligned__(8))); |
447 | u32 dma_low, dma_high; | 447 | u32 dma_low, dma_high; |
448 | int i; | 448 | int i; |
449 | 449 | ||
@@ -613,7 +613,7 @@ static int myri10ge_adopt_running_firmware(struct myri10ge_priv *mgp) | |||
613 | static int myri10ge_load_firmware(struct myri10ge_priv *mgp) | 613 | static int myri10ge_load_firmware(struct myri10ge_priv *mgp) |
614 | { | 614 | { |
615 | char __iomem *submit; | 615 | char __iomem *submit; |
616 | __be32 buf[16]; | 616 | __be32 buf[16] __attribute__ ((__aligned__(8))); |
617 | u32 dma_low, dma_high, size; | 617 | u32 dma_low, dma_high, size; |
618 | int status, i; | 618 | int status, i; |
619 | struct myri10ge_cmd cmd; | 619 | struct myri10ge_cmd cmd; |