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

#include <linux/bug.h>

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

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