mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
s390/bug: Implement WARN_ONCE()
This is the s390 variant of commit 11bb4944f0 ("x86/bug: Implement
WARN_ONCE()").
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
04dabb4261
commit
940cfea427
|
|
@ -104,6 +104,17 @@ do { \
|
|||
#define __WARN_printf(taint, fmt, arg...) \
|
||||
__WARN_print_arg(BUGFLAG_TAINT(taint), fmt, ## arg)
|
||||
|
||||
#define WARN_ONCE(cond, format, arg...) \
|
||||
({ \
|
||||
int __ret_warn_on = !!(cond); \
|
||||
\
|
||||
if (unlikely(__ret_warn_on)) { \
|
||||
__WARN_print_arg(BUGFLAG_ONCE|BUGFLAG_TAINT(TAINT_WARN),\
|
||||
format, ## arg); \
|
||||
} \
|
||||
__ret_warn_on; \
|
||||
})
|
||||
|
||||
#define HAVE_ARCH_BUG
|
||||
#define HAVE_ARCH_BUG_FORMAT
|
||||
#define HAVE_ARCH_BUG_FORMAT_ARGS
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user