|
@@ -134,7 +134,7 @@ extern void warn_slowpath_null(const char *file, const int line);
|
|
|
#endif
|
|
|
|
|
|
#define WARN_ON_ONCE(condition) ({ \
|
|
|
- static bool __warned; \
|
|
|
+ static bool __section(.data.unlikely) __warned; \
|
|
|
int __ret_warn_once = !!(condition); \
|
|
|
\
|
|
|
if (unlikely(__ret_warn_once)) \
|
|
@@ -144,7 +144,7 @@ extern void warn_slowpath_null(const char *file, const int line);
|
|
|
})
|
|
|
|
|
|
#define WARN_ONCE(condition, format...) ({ \
|
|
|
- static bool __warned; \
|
|
|
+ static bool __section(.data.unlikely) __warned; \
|
|
|
int __ret_warn_once = !!(condition); \
|
|
|
\
|
|
|
if (unlikely(__ret_warn_once)) \
|
|
@@ -154,7 +154,7 @@ extern void warn_slowpath_null(const char *file, const int line);
|
|
|
})
|
|
|
|
|
|
#define WARN_TAINT_ONCE(condition, taint, format...) ({ \
|
|
|
- static bool __warned; \
|
|
|
+ static bool __section(.data.unlikely) __warned; \
|
|
|
int __ret_warn_once = !!(condition); \
|
|
|
\
|
|
|
if (unlikely(__ret_warn_once)) \
|