err.c 309 B

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