Skip to content

Commit

Permalink
lwnbdsvr: define nbd_buffer in only one file
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Jun 11, 2021
1 parent bd8f602 commit 1c4ec89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/network/lwnbdsvr/lwNBD/nbd_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

#include "nbd_server.h"

uint8_t nbd_buffer[NBD_BUFFER_LEN] __attribute__((aligned(64)));

/*
* https://lwip.fandom.com/wiki/Receiving_data_with_LWIP
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/network/lwnbdsvr/lwNBD/nbd_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extern "C" {
#endif

//extern uint8_t buffer[];
uint8_t nbd_buffer[NBD_BUFFER_LEN] __attribute__((aligned(64)));
extern uint8_t nbd_buffer[NBD_BUFFER_LEN] __attribute__((aligned(64)));

/** @ingroup nbd
* NBD context containing callback functions for NBD transfers
Expand Down

0 comments on commit 1c4ec89

Please sign in to comment.