err.c 325 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/err.h>
  3. __rust_helper __force void *rust_helper_ERR_PTR(long err)
  4. {
  5. return ERR_PTR(err);
  6. }
  7. __rust_helper bool rust_helper_IS_ERR(__force const void *ptr)
  8. {
  9. return IS_ERR(ptr);
  10. }
  11. __rust_helper long rust_helper_PTR_ERR(__force const void *ptr)
  12. {
  13. return PTR_ERR(ptr);
  14. }