bindings_helper.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Header that contains the code (mostly headers) for which Rust bindings
  4. * will be automatically generated by `bindgen`.
  5. *
  6. * Sorted alphabetically.
  7. */
  8. #include <kunit/test.h>
  9. #include <linux/blk-mq.h>
  10. #include <linux/blk_types.h>
  11. #include <linux/blkdev.h>
  12. #include <linux/errname.h>
  13. #include <linux/ethtool.h>
  14. #include <linux/firmware.h>
  15. #include <linux/jiffies.h>
  16. #include <linux/mdio.h>
  17. #include <linux/phy.h>
  18. #include <linux/refcount.h>
  19. #include <linux/sched.h>
  20. #include <linux/slab.h>
  21. #include <linux/wait.h>
  22. #include <linux/workqueue.h>
  23. /* `bindgen` gets confused at certain things. */
  24. const size_t RUST_CONST_HELPER_ARCH_SLAB_MINALIGN = ARCH_SLAB_MINALIGN;
  25. const size_t RUST_CONST_HELPER_PAGE_SIZE = PAGE_SIZE;
  26. const gfp_t RUST_CONST_HELPER_GFP_ATOMIC = GFP_ATOMIC;
  27. const gfp_t RUST_CONST_HELPER_GFP_KERNEL = GFP_KERNEL;
  28. const gfp_t RUST_CONST_HELPER_GFP_KERNEL_ACCOUNT = GFP_KERNEL_ACCOUNT;
  29. const gfp_t RUST_CONST_HELPER_GFP_NOWAIT = GFP_NOWAIT;
  30. const gfp_t RUST_CONST_HELPER___GFP_ZERO = __GFP_ZERO;
  31. const gfp_t RUST_CONST_HELPER___GFP_HIGHMEM = ___GFP_HIGHMEM;
  32. const gfp_t RUST_CONST_HELPER___GFP_NOWARN = ___GFP_NOWARN;
  33. const blk_features_t RUST_CONST_HELPER_BLK_FEAT_ROTATIONAL = BLK_FEAT_ROTATIONAL;
  34. const vm_flags_t RUST_CONST_HELPER_VM_MERGEABLE = VM_MERGEABLE;