helpers.c 647 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Non-trivial C macros cannot be used in Rust. Similarly, inlined C functions
  4. * cannot be called either. This file explicitly creates functions ("helpers")
  5. * that wrap those so that they can be called from Rust.
  6. *
  7. * Sorted alphabetically.
  8. */
  9. #include "blk.c"
  10. #include "bug.c"
  11. #include "build_assert.c"
  12. #include "build_bug.c"
  13. #include "err.c"
  14. #include "kunit.c"
  15. #include "mutex.c"
  16. #include "page.c"
  17. #include "rbtree.c"
  18. #include "refcount.c"
  19. #include "signal.c"
  20. #include "slab.c"
  21. #include "spinlock.c"
  22. #include "task.c"
  23. #include "uaccess.c"
  24. #include "vmalloc.c"
  25. #include "wait.c"
  26. #include "workqueue.c"