blob: 810b50344d3589db2a066e7b41e51a019a251882 [file] [log] [blame]
Mark Rutland997acaf2021-01-11 15:37:07 +00001// 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 Zijlstrac8cc7e82021-02-09 09:30:03 +01007noinstr void warn_bogus_irq_restore(void)
Mark Rutland997acaf2021-01-11 15:37:07 +00008{
Peter Zijlstrac8cc7e82021-02-09 09:30:03 +01009 instrumentation_begin();
Mark Rutland997acaf2021-01-11 15:37:07 +000010 WARN_ONCE(1, "raw_local_irq_restore() called with IRQs enabled\n");
Peter Zijlstrac8cc7e82021-02-09 09:30:03 +010011 instrumentation_end();
Mark Rutland997acaf2021-01-11 15:37:07 +000012}
13EXPORT_SYMBOL(warn_bogus_irq_restore);