Skip to content

Commit aa7f71d

Browse files
committed
include: ring_buffer: fix storage class specifier in RING_BUF_* macros
Include fix from zephyrproject-rtos#36617
1 parent 529a501 commit aa7f71d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/sys/ring_buffer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct ring_buf {
8383
BUILD_ASSERT((1 << pow) < RING_BUFFER_MAX_SIZE,\
8484
RING_BUFFER_SIZE_ASSERT_MSG); \
8585
static uint32_t _ring_buffer_data_##name[BIT(pow)]; \
86-
struct ring_buf name = { \
86+
static struct ring_buf name = { \
8787
.size = (BIT(pow)), \
8888
.mask = (BIT(pow)) - 1, \
8989
.buf = { .buf32 = _ring_buffer_data_##name } \
@@ -107,7 +107,7 @@ struct ring_buf {
107107
BUILD_ASSERT(size32 < RING_BUFFER_MAX_SIZE,\
108108
RING_BUFFER_SIZE_ASSERT_MSG); \
109109
static uint32_t _ring_buffer_data_##name[size32]; \
110-
struct ring_buf name = { \
110+
static struct ring_buf name = { \
111111
.size = size32, \
112112
.buf = { .buf32 = _ring_buffer_data_##name} \
113113
}
@@ -129,7 +129,7 @@ struct ring_buf {
129129
BUILD_ASSERT(size8 < RING_BUFFER_MAX_SIZE,\
130130
RING_BUFFER_SIZE_ASSERT_MSG); \
131131
static uint8_t _ring_buffer_data_##name[size8]; \
132-
struct ring_buf name = { \
132+
static struct ring_buf name = { \
133133
.size = size8, \
134134
.buf = { .buf8 = _ring_buffer_data_##name} \
135135
}

0 commit comments

Comments
 (0)