diff options
author | Benno Lossin <benno.lossin@proton.me> | 2025-03-08 14:05:12 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-03-16 23:59:19 +0300 |
commit | 9b2299af3b92eb5b2c2f87965a5fa24a93e90d06 (patch) | |
tree | 95e5e6dd0ab9ede77d0e35a7cf608079b3e9fd9c /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | dbd5058ba60c3499b24a7133a4e2e24dba6ea77b (diff) | |
download | linux-9b2299af3b92eb5b2c2f87965a5fa24a93e90d06.tar.xz |
rust: pin-init: add `std` and `alloc` support from the user-space version
To synchronize the kernel's version of pin-init with the user-space
version, introduce support for `std` and `alloc`. While the kernel uses
neither, the user-space version has to support both. Thus include the
required `#[cfg]`s and additional code.
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250308110339.2997091-17-benno.lossin@proton.me
[ Undo the temporary `--extern force:alloc` since now we have contents
for `alloc` here. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions