summaryrefslogtreecommitdiff
path: root/rust/helpers/bug.c
blob: b51e607725785f540dc46156630ca848dd0de491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: GPL-2.0

#include <linux/bug.h>

__rust_helper __noreturn void rust_helper_BUG(void)
{
	BUG();
}

__rust_helper bool rust_helper_WARN_ON(bool cond)
{
	return WARN_ON(cond);
}