xref: /linux/rust/bindings/bindings_helper.h (revision d5859510d35d8e7d63fed5169f1775317f40fb03)
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 
9 #include <kunit/test.h>
10 #include <linux/errname.h>
11 #include <linux/ethtool.h>
12 #include <linux/jiffies.h>
13 #include <linux/mdio.h>
14 #include <linux/phy.h>
15 #include <linux/refcount.h>
16 #include <linux/sched.h>
17 #include <linux/slab.h>
18 #include <linux/wait.h>
19 #include <linux/workqueue.h>
20 
21 /* `bindgen` gets confused at certain things. */
22 const size_t RUST_CONST_HELPER_ARCH_SLAB_MINALIGN = ARCH_SLAB_MINALIGN;
23 const gfp_t RUST_CONST_HELPER_GFP_ATOMIC = GFP_ATOMIC;
24 const gfp_t RUST_CONST_HELPER_GFP_KERNEL = GFP_KERNEL;
25 const gfp_t RUST_CONST_HELPER_GFP_KERNEL_ACCOUNT = GFP_KERNEL_ACCOUNT;
26 const gfp_t RUST_CONST_HELPER_GFP_NOWAIT = GFP_NOWAIT;
27 const gfp_t RUST_CONST_HELPER___GFP_ZERO = __GFP_ZERO;
28