summaryrefslogtreecommitdiff
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-08-07 09:55:19 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-08-07 09:55:19 +0200
commit0074281bb6316108e0cff094bd4db78ab3eee236 (patch)
tree9b5eeb12eed9fd2a8aa329043da7f5150ceb938c /rust/helpers/bug.c
parent63c7bc53a35e785accdc2ceab8f72d94501931ab (diff)
parent6e64f4580381e32c06ee146ca807c555b8f73e24 (diff)
Merge commit '6e64f4580381e32c06ee146ca807c555b8f73e24' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into gpio/for-next
Diffstat (limited to 'rust/helpers/bug.c')
-rw-r--r--rust/helpers/bug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/helpers/bug.c b/rust/helpers/bug.c
index e2d13babc737..a62c96f507d1 100644
--- a/rust/helpers/bug.c
+++ b/rust/helpers/bug.c
@@ -6,3 +6,8 @@ __noreturn void rust_helper_BUG(void)
{
BUG();
}
+
+bool rust_helper_WARN_ON(bool cond)
+{
+ return WARN_ON(cond);
+}