summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorBenno Lossin <benno.lossin@proton.me>2025-03-08 14:05:22 +0300
committerMiguel Ojeda <ojeda@kernel.org>2025-03-16 23:59:19 +0300
commit7cb5dee4c8349f8cc3e1ce529df4e18ebe3fed2e (patch)
treef32e72a97a86c03d1f1bf92a03ef2ecadef097f5 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent02c01c089d125ccc1ecbf331481e7de6f1f38f4e (diff)
downloadlinux-7cb5dee4c8349f8cc3e1ce529df4e18ebe3fed2e.tar.xz
rust: pin-init: internal: synchronize with user-space version
Synchronize the internal macros crate with the user-space version that uses the quote crate [1] instead of a custom `quote!` macro. The imports in the different version are achieved using `cfg` on the kernel config value. This cfg is always set in the kernel and never set in the user-space version. Since the quote crate requires the proc_macro2 crate, imports also need to be adjusted and `.into()` calls have to be inserted. Link: https://crates.io/crates/quote [1] Signed-off-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Tested-by: Andreas Hindborg <a.hindborg@kernel.org> Reviewed-by: Fiona Behrens <me@Kloenk.dev> Link: https://lore.kernel.org/r/20250308110339.2997091-19-benno.lossin@proton.me 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