Mark Rutland | 997acaf | 2021-01-11 15:37:07 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | #include <linux/bug.h> |
| 4 | #include <linux/export.h> |
| 5 | #include <linux/irqflags.h> |
| 6 | |
Peter Zijlstra | c8cc7e8 | 2021-02-09 09:30:03 +0100 | [diff] [blame] | 7 | noinstr void warn_bogus_irq_restore(void) |
Mark Rutland | 997acaf | 2021-01-11 15:37:07 +0000 | [diff] [blame] | 8 | { |
Peter Zijlstra | c8cc7e8 | 2021-02-09 09:30:03 +0100 | [diff] [blame] | 9 | instrumentation_begin(); |
Mark Rutland | 997acaf | 2021-01-11 15:37:07 +0000 | [diff] [blame] | 10 | WARN_ONCE(1, "raw_local_irq_restore() called with IRQs enabled\n"); |
Peter Zijlstra | c8cc7e8 | 2021-02-09 09:30:03 +0100 | [diff] [blame] | 11 | instrumentation_end(); |
Mark Rutland | 997acaf | 2021-01-11 15:37:07 +0000 | [diff] [blame] | 12 | } |
| 13 | EXPORT_SYMBOL(warn_bogus_irq_restore); |