Re: [PATCH v2 0/3] Inline helpers into Rust without full LTO
Andrew Lunn <[email protected]>
| Newsgroups | org.infradead.lists.linux-um,dev.linux.lists.llvm,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
> > If you want netlink on um, arm32, riscv, loongarch you would need a > > different implementation of the binding? > > It doesn't need this feature to build and function. It'll just be a bit slower > because inlining from C to Rust won't happen. So it sounds like my understanding is out of date. When the first Ethernet PHY driver was being merged, Rust could not access inline C functions. The binding had to replicate the functionality. But you are saying that Rust can now make use of inline C code, but not actually inline it? It results in a function call? What this feature does it actually allows inline C functions to be inline? So it is just an optimisation? Andrew