[PATCH] trace: define TEST_FAIL and TEST_FAIL_TAG as inline function

Jouni Malinen j at w1.fi
Fri Oct 17 10:15:25 PDT 2025


On Tue, Oct 14, 2025 at 10:09:43AM +0200, Benjamin Berg wrote:
> While these macros are usually used in conditions, they can also simply
> be used as a statement in order to check whether a certain code path was
> taken. In that case, using a macro that turns into a constant 0 may
> cause a compiler warning.
> 
> Avoid that issue by using a static inline function that returns 0. This
> fixes a build regression introduced by f5790e97cd64 ("nl80211: Delay
> event processing during command handling").

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list