mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "msm: ipa: enable WARN_ON only for debug builds"
This commit is contained in:
commit
8f5f141b1e
1 changed files with 4 additions and 1 deletions
|
|
@ -124,7 +124,7 @@
|
|||
* Printing one warning message in 5 seconds if multiple warning messages
|
||||
* are coming back to back.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_IPA_DEBUG
|
||||
#define WARN_ON_RATELIMIT_IPA(condition) \
|
||||
({ \
|
||||
static DEFINE_RATELIMIT_STATE(_rs, \
|
||||
|
|
@ -135,6 +135,9 @@
|
|||
if (unlikely(rtn && __ratelimit(&_rs))) \
|
||||
WARN_ON(rtn); \
|
||||
})
|
||||
#else
|
||||
#define WARN_ON_RATELIMIT_IPA(condition)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Printing one error message in 5 seconds if multiple error messages
|
||||
|
|
|
|||
Loading…
Reference in a new issue