mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
linux_6_12: patch to fix build with Rust 1.85
This commit is contained in:
parent
5191424342
commit
c5d327cc97
3 changed files with 19 additions and 0 deletions
13
pkgs/os-specific/linux/kernel/linux-612-rust-185.patch
Normal file
13
pkgs/os-specific/linux/kernel/linux-612-rust-185.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
|
||||
index 447740d79d3d..da405d18d8a8 100644
|
||||
--- a/drivers/gpu/drm/drm_panic_qr.rs
|
||||
+++ b/drivers/gpu/drm/drm_panic_qr.rs
|
||||
@@ -931,7 +931,7 @@ fn draw_all(&mut self, data: impl Iterator<Item = u8>) {
|
||||
/// They must remain valid for the duration of the function call.
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn drm_panic_qr_generate(
|
||||
- url: *const i8,
|
||||
+ url: *const core::ffi::c_char,
|
||||
data: *mut u8,
|
||||
data_len: usize,
|
||||
data_size: usize,
|
|
@ -76,4 +76,9 @@
|
|||
name = "export-rt-sched-migrate";
|
||||
patch = ./export-rt-sched-migrate.patch;
|
||||
};
|
||||
|
||||
linux-612-rust-185 = {
|
||||
name = "linux-612-rust-185";
|
||||
patch = ./linux-612-rust-185.patch;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -194,6 +194,7 @@ in {
|
|||
kernelPatches = [
|
||||
kernelPatches.bridge_stp_helper
|
||||
kernelPatches.request_key_helper
|
||||
kernelPatches.linux-612-rust-185
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue