Files

19 lines
325 B
C
Raw Permalink Normal View History

2024-08-15 10:30:26 +00:00
// SPDX-License-Identifier: GPL-2.0
#include <linux/err.h>
2026-01-05 12:42:21 +00:00
__rust_helper __force void *rust_helper_ERR_PTR(long err)
2024-08-15 10:30:26 +00:00
{
return ERR_PTR(err);
}
2026-01-05 12:42:21 +00:00
__rust_helper bool rust_helper_IS_ERR(__force const void *ptr)
2024-08-15 10:30:26 +00:00
{
return IS_ERR(ptr);
}
2026-01-05 12:42:21 +00:00
__rust_helper long rust_helper_PTR_ERR(__force const void *ptr)
2024-08-15 10:30:26 +00:00
{
return PTR_ERR(ptr);
}