blob: d175898ad7b81ee9da3d9d125764db02e837da52 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0
#include <linux/refcount.h>
refcount_t rust_helper_REFCOUNT_INIT(int n)
{
return (refcount_t)REFCOUNT_INIT(n);
}
void rust_helper_refcount_set(refcount_t *r, int n)
{
refcount_set(r, n);
}
void rust_helper_refcount_inc(refcount_t *r)
{
refcount_inc(r);
}
void rust_helper_refcount_dec(refcount_t *r)
{
refcount_dec(r);
}
bool rust_helper_refcount_dec_and_test(refcount_t *r)
{
return refcount_dec_and_test(r);
}