Skip to content

Commit

Permalink
[myri10ge] Fix compilation error in myri10ge_command() with gcc 4.7
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
olafhering authored and mcb30 committed Mar 16, 2012
1 parent 37cb7c7 commit 0e81ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/drivers/net/myri10ge.c
Expand Up @@ -304,10 +304,10 @@ static int myri10ge_command ( struct myri10ge_private *priv,
command->response_addr.high = 0;
command->response_addr.low
= htonl ( virt_to_bus ( &priv->dma->command_response ) );
for ( i=0; i<36; i+=4 )
* ( uint32 * ) &command->pad[i] = 0;
for ( i=0; i<9; i++ )
command->pad[i] = 0;
wmb();
* ( uint32 * ) &command->pad[36] = 0;
command->pad[9] = 0;

/* Wait up to 2 seconds for a response. */

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/net/myri10ge_mcp.h
Expand Up @@ -80,7 +80,7 @@ struct mcp_cmd {
/* 16 */
struct mcp_dma_addr response_addr;
/* 24 */
uint8_t pad[40];
uint32_t pad[10];
};
typedef struct mcp_cmd mcp_cmd_t;

Expand Down

0 comments on commit 0e81ff2

Please sign in to comment.