diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-11-05 16:56:23 +0100 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-11-05 16:56:23 +0100 |
| commit | 22733b6e2e1ebf75228a1e15b9fb9760a86137cc (patch) | |
| tree | c7388fd1cb44ed49347418ae058ead753d2c473b /rust/kernel/alloc | |
| parent | d54c3cc224dab59cb6b4db43cceaf84a4b39c87a (diff) | |
| parent | cf09d02dc0c49593fdd9e0ec2f17251cba39a94e (diff) | |
Merge tag 'asoc-fix-v7.4-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v7.4
More fixes that have come in since -rc1, a lot of this is quirks but
there's some bug fixes as well. The bug fixes should mostly be those
that seem to be affecting actual users rather than just being pure
static analysis work. I also took some fixes for missing Kconfig
dependencies which won't have any runtime impact.
Diffstat (limited to 'rust/kernel/alloc')
| -rw-r--r-- | rust/kernel/alloc/kbox.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rust/kernel/alloc/kbox.rs b/rust/kernel/alloc/kbox.rs index c63d6acdbb6f..2c929eb1c3d6 100644 --- a/rust/kernel/alloc/kbox.rs +++ b/rust/kernel/alloc/kbox.rs @@ -345,7 +345,7 @@ where /// } /// /// // Allocate a boxed slice of 10 `Example`s. - /// let s = KBox::pin_slice( + /// let s = KBox::pin_slice::<_, _, Error, _>( /// | _i | Example::new(), /// 10, /// GFP_KERNEL @@ -355,15 +355,16 @@ where /// assert_eq!(s[3].d.lock().a, 20); /// # Ok::<(), Error>(()) /// ``` - pub fn pin_slice<Func, Item, E>( + pub fn pin_slice<Func, Item, E, E2>( mut init: Func, len: usize, flags: Flags, ) -> Result<Pin<Box<[T], A>>, E> where Func: FnMut(usize) -> Item, - Item: PinInit<T, E>, + Item: PinInit<T, E2>, E: From<AllocError>, + E: From<E2>, { let mut buffer = super::Vec::<T, A>::with_capacity(len, flags)?; for i in 0..len { |
