Bluetooth: Host: Fix incorrect build assert

We want to make sure `struct closure` fits in the user data, so a user data
size of `sizeof(struct closure)` is valid.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
This commit is contained in:
Johan Hedberg 2024-08-26 10:34:15 +03:00 committed by Carles Cufí
commit 5736b71193

View file

@ -333,7 +333,7 @@ struct closure {
} __packed; } __packed;
#if defined(CONFIG_BT_CONN_TX_USER_DATA_SIZE) #if defined(CONFIG_BT_CONN_TX_USER_DATA_SIZE)
BUILD_ASSERT(sizeof(struct closure) < CONFIG_BT_CONN_TX_USER_DATA_SIZE); BUILD_ASSERT(sizeof(struct closure) <= CONFIG_BT_CONN_TX_USER_DATA_SIZE);
#endif #endif
static inline void make_closure(void *storage, void *cb, void *data) static inline void make_closure(void *storage, void *cb, void *data)