From 1c4ec897bf01e2f687413df39569490570df09dd Mon Sep 17 00:00:00 2001 From: uyjulian Date: Fri, 11 Jun 2021 09:27:32 -0500 Subject: [PATCH] lwnbdsvr: define nbd_buffer in only one file --- modules/network/lwnbdsvr/lwNBD/nbd_server.c | 2 ++ modules/network/lwnbdsvr/lwNBD/nbd_server.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/network/lwnbdsvr/lwNBD/nbd_server.c b/modules/network/lwnbdsvr/lwNBD/nbd_server.c index a8377ea84..37596ef68 100644 --- a/modules/network/lwnbdsvr/lwNBD/nbd_server.c +++ b/modules/network/lwnbdsvr/lwNBD/nbd_server.c @@ -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 */ diff --git a/modules/network/lwnbdsvr/lwNBD/nbd_server.h b/modules/network/lwnbdsvr/lwNBD/nbd_server.h index e0387163e..6c19c41b6 100644 --- a/modules/network/lwnbdsvr/lwNBD/nbd_server.h +++ b/modules/network/lwnbdsvr/lwNBD/nbd_server.h @@ -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