diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2025-06-17 15:50:41 +0200 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-07-28 08:07:07 +0200 |
| commit | ed845c363d8c93eeaad4ce48bb7d5f81b6a75b61 (patch) | |
| tree | d77c404fd82643f7084dc990610f3abcc809855b | |
| parent | 28ea295f941e39965c562097d5de0e66a373f19d (diff) | |
bugs/s390: Remove private WARN_ON() implementation
Besides an odd __builtin_constant_p() optimization the s390 specific
WARN_ON() implementation is identical to the generic variant.
Drop the s390 variant in favor of the generic variant.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org> # Rebased ancestor commits
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/r/20250617135042.1878068-2-hca@linux.ibm.com
| -rw-r--r-- | arch/s390/include/asm/bug.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/s390/include/asm/bug.h b/arch/s390/include/asm/bug.h index c39500eec300..acb4b13d98c5 100644 --- a/arch/s390/include/asm/bug.h +++ b/arch/s390/include/asm/bug.h @@ -50,20 +50,7 @@ do { \ unreachable(); \ } while (0) -#define WARN_ON(x) ({ \ - int __ret_warn_on = !!(x); \ - if (__builtin_constant_p(__ret_warn_on)) { \ - if (__ret_warn_on) \ - __WARN(); \ - } else { \ - if (unlikely(__ret_warn_on)) \ - __WARN(); \ - } \ - unlikely(__ret_warn_on); \ -}) - #define HAVE_ARCH_BUG -#define HAVE_ARCH_WARN_ON #include <asm-generic/bug.h> |
