diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-08-17 21:01:49 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-08-20 03:43:14 +0200 |
commit | bdd198d9d4ec84f339d9f77eaf1f90ae04595583 (patch) | |
tree | 38e0a2a68bac6e74a65f2f086d1e56ea15b47546 /rust | |
parent | a2aaff26ffe5316824cc5eac22129bdc321b7b2a (diff) |
samples: rust: pci: convert remaining C code to Rust
Convert the remaining C code to Rust, without adding any abstractions
yet.
Using the C structures directly leads to horrible driver code. However,
this serves as baseline in order to illustrate subsequent incremental
improvements.
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r-- | rust/bindings/bindings_helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h index 90493123bdf1..ad1a5738d69b 100644 --- a/rust/bindings/bindings_helper.h +++ b/rust/bindings/bindings_helper.h @@ -18,6 +18,7 @@ #include <linux/fs.h> #include <linux/jiffies.h> #include <linux/mdio.h> +#include <linux/pci.h> #include <linux/phy.h> #include <linux/pid_namespace.h> #include <linux/poll.h> |