2021-01-11 23:37:07 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
#include <linux/bug.h>
|
|
|
|
#include <linux/export.h>
|
|
|
|
#include <linux/irqflags.h>
|
|
|
|
|
2021-02-09 16:30:03 +08:00
|
|
|
noinstr void warn_bogus_irq_restore(void)
|
2021-01-11 23:37:07 +08:00
|
|
|
{
|
2021-02-09 16:30:03 +08:00
|
|
|
instrumentation_begin();
|
2021-01-11 23:37:07 +08:00
|
|
|
WARN_ONCE(1, "raw_local_irq_restore() called with IRQs enabled\n");
|
2021-02-09 16:30:03 +08:00
|
|
|
instrumentation_end();
|
2021-01-11 23:37:07 +08:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(warn_bogus_irq_restore);
|