mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 20:21:30 +00:00
Fix of WARN_ON_ONCE() braindamage
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -72,7 +72,10 @@
|
||||
typeof(condition) __ret_warn_once = (condition); \
|
||||
\
|
||||
if (unlikely(__ret_warn_once)) \
|
||||
__warned = 1; \
|
||||
if (!__warned) { \
|
||||
WARN_ON(1); \
|
||||
__warned = 1; \
|
||||
} \
|
||||
unlikely(__ret_warn_once); \
|
||||
})
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user