xref: /linux/rust/helpers/bug.c (revision 458c95de5c55c05b7a149da1509f4f0f68d28625)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/bug.h>
4 
5 __rust_helper __noreturn void rust_helper_BUG(void)
6 {
7 	BUG();
8 }
9 
10 __rust_helper bool rust_helper_WARN_ON(bool cond)
11 {
12 	return WARN_ON(cond);
13 }
14