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