This config option enables network debugging checks. This patch adds DEBUG_NET_WARN_ON_ONCE(cond) Note that this is not a replacement for WARN_ON_ONCE(cond) as (cond) is not evaluated if CONFIG_DEBUG_NET is not set.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -148,4 +148,10 @@ do { \ · 147 unmodified lines | ||
| 148 | 148 | #endif |
| 149 | 149 | |
| 150 | 150 | |
| 151 | +#if defined(CONFIG_DEBUG_NET) | |
| 152 | +#define DEBUG_NET_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond) | |
| 153 | +#else | |
| 154 | +#define DEBUG_NET_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) | |
| 155 | +#endif | |
| 156 | + | |
| 151 | 157 | #endif /* _LINUX_NET_DEBUG_H */ |