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:
parent
4215078617
commit
5736b71193
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue