aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorTamir Duberstein <[email protected]>2025-02-13 11:34:18 +0000
committerMiguel Ojeda <[email protected]>2025-03-05 22:57:48 +0000
commitff64846bee0e7e3e7bc9363ebad3bab42dd27e24 (patch)
tree6c4e0a668c447fb02162e19b1ef410f4fa7b4c65 /scripts/generate_rust_analyzer.py
parentrust: init: fix `Zeroable` implementation for `Option<NonNull<T>>` and `Optio... (diff)
downloadkernel-ff64846bee0e7e3e7bc9363ebad3bab42dd27e24.tar.gz
kernel-ff64846bee0e7e3e7bc9363ebad3bab42dd27e24.zip
rust: alloc: satisfy POSIX alignment requirement
ISO C's `aligned_alloc` is partially implementation-defined; on some systems it inherits stricter requirements from POSIX's `posix_memalign`. This causes the call added in commit dd09538fb409 ("rust: alloc: implement `Cmalloc` in module allocator_test") to fail on macOS because it doesn't meet the requirements of `posix_memalign`. Adjust the call to meet the POSIX requirement and add a comment. This fixes failures in `make rusttest` on macOS. Acked-by: Danilo Krummrich <[email protected]> Cc: [email protected] Fixes: dd09538fb409 ("rust: alloc: implement `Cmalloc` in module allocator_test") Signed-off-by: Tamir Duberstein <[email protected]> Reviewed-by: Gary Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Added Cc: stable. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions