]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: kernel: make impl_has_work compatible with more generics
authorRoland Xu <mu001999@outlook.com>
Wed, 22 May 2024 16:08:46 +0000 (00:08 +0800)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 8 Jul 2024 20:39:39 +0000 (22:39 +0200)
commitfe7d9d804337180d2377f0654537970c6cd863f7
treea35ee96e0f564e3590e1381f9f0c2ec70cf3bbcd
parent526c539452cec6e7e65776d5807e6c66dd65d636
rust: kernel: make impl_has_work compatible with more generics

Make the impl_has_work macro compatible with more complex generics such
as lifetimes and const generic arguments.

Signed-off-by: Roland Xu <mu001999@outlook.com>
Link: https://lore.kernel.org/r/ME0P282MB4890A180B99490CC65EF64FDCCEB2@ME0P282MB4890.AUSP282.PROD.OUTLOOK.COM
Suggested-by: Benno Lossin <benno.lossin@proton.me>
Link: https://github.com/Rust-for-Linux/linux/issues/1077
[ Wrapped message to 72 columns. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/workqueue.rs