mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:38:27 -04:00
staging: wfx: replace compiletime_assert() by BUILD_BUG_ON_MSG()
It seems that BUILD_BUG_ON_MSG() is a bit more popular. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20220113085524.1110708-25-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
76bf5775de
commit
b9bf5fb178
@@ -391,8 +391,8 @@ void wfx_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control, struc
|
||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
||||
size_t driver_data_room = sizeof_field(struct ieee80211_tx_info, rate_driver_data);
|
||||
|
||||
compiletime_assert(sizeof(struct wfx_tx_priv) <= driver_data_room,
|
||||
"struct tx_priv is too large");
|
||||
BUILD_BUG_ON_MSG(sizeof(struct wfx_tx_priv) > driver_data_room,
|
||||
"struct tx_priv is too large");
|
||||
WARN(skb->next || skb->prev, "skb is already member of a list");
|
||||
/* control.vif can be NULL for injected frames */
|
||||
if (tx_info->control.vif)
|
||||
|
||||
Reference in New Issue
Block a user