Merge tag 'kcsan-20241112-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / rust / helpers / refcount.c
blobf47afc148ec36cb07a136228b6555c9aaa220406
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/export.h>
4 #include <linux/refcount.h>
6 refcount_t rust_helper_REFCOUNT_INIT(int n)
8 return (refcount_t)REFCOUNT_INIT(n);
11 void rust_helper_refcount_inc(refcount_t *r)
13 refcount_inc(r);
16 bool rust_helper_refcount_dec_and_test(refcount_t *r)
18 return refcount_dec_and_test(r);