Commit f8fd57c1 authored by Brice Goglin's avatar Brice Goglin Committed by Jeff Garzik

myri10ge: properly align scratch buffers

Properly align scratch buffers when making boot commands.
Signed-off-by: default avatarBrice Goglin <brice@myri.com>
Signed-off-by: default avatarAndrew Gallatin <gallatin@myri.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent d93ca2a4
...@@ -443,7 +443,7 @@ abort: ...@@ -443,7 +443,7 @@ abort:
static void myri10ge_dummy_rdma(struct myri10ge_priv *mgp, int enable) static void myri10ge_dummy_rdma(struct myri10ge_priv *mgp, int enable)
{ {
char __iomem *submit; char __iomem *submit;
__be32 buf[16]; __be32 buf[16] __attribute__ ((__aligned__(8)));
u32 dma_low, dma_high; u32 dma_low, dma_high;
int i; int i;
...@@ -613,7 +613,7 @@ static int myri10ge_adopt_running_firmware(struct myri10ge_priv *mgp) ...@@ -613,7 +613,7 @@ static int myri10ge_adopt_running_firmware(struct myri10ge_priv *mgp)
static int myri10ge_load_firmware(struct myri10ge_priv *mgp) static int myri10ge_load_firmware(struct myri10ge_priv *mgp)
{ {
char __iomem *submit; char __iomem *submit;
__be32 buf[16]; __be32 buf[16] __attribute__ ((__aligned__(8)));
u32 dma_low, dma_high, size; u32 dma_low, dma_high, size;
int status, i; int status, i;
struct myri10ge_cmd cmd; struct myri10ge_cmd cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment