|
@@ -113,22 +113,22 @@ extern void warn_slowpath_null(const char *file, const int line);
|
|
|
#endif
|
|
|
|
|
|
#define WARN_ON_ONCE(condition) ({ \
|
|
|
- static int __warned; \
|
|
|
+ static bool __warned; \
|
|
|
int __ret_warn_once = !!(condition); \
|
|
|
\
|
|
|
if (unlikely(__ret_warn_once)) \
|
|
|
if (WARN_ON(!__warned)) \
|
|
|
- __warned = 1; \
|
|
|
+ __warned = true; \
|
|
|
unlikely(__ret_warn_once); \
|
|
|
})
|
|
|
|
|
|
#define WARN_ONCE(condition, format...) ({ \
|
|
|
- static int __warned; \
|
|
|
+ static bool __warned; \
|
|
|
int __ret_warn_once = !!(condition); \
|
|
|
\
|
|
|
if (unlikely(__ret_warn_once)) \
|
|
|
if (WARN(!__warned, format)) \
|
|
|
- __warned = 1; \
|
|
|
+ __warned = true; \
|
|
|
unlikely(__ret_warn_once); \
|
|
|
})
|
|
|
|