Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ LLVM=1 make -j6
- RUSTC [M] drivers/block/rnull/rnull.o
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- CC [M] drivers/misc/cardreader/rtsx_usb.o
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:45:18
- |
- 45 | type Child = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::GroupOperations::Child`
- --> rust/kernel/configfs.rs:521:27
- |
- 521 | type Child: 'static + Send;
- | ^^^^ required by this bound in `GroupOperations::Child`
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:130:17
- |
- 130 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:168:17
- |
- 168 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:192:17
- |
- 192 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:219:17
- |
- 219 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:242:17
- |
- 242 | type Data = DeviceConfig;
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- note: required by a bound in `kernel::configfs::AttributeOperations::Data`
- --> rust/kernel/configfs.rs:680:16
- |
- 680 | type Data: Sync;
- | ^^^^ required by this bound in `AttributeOperations::Data`
- CC drivers/mfd/stmpe.o
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Child>(
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:20:16
- |
- 20 | child: DeviceConfig,
- | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- --> rust/kernel/configfs.rs:786:36
- |
- 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
- | ------------------- required by a bound in this associated function
- ...
- 786 | Arc<Group<Child>>: Send,
- | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
- ...
- 824 | impl_item_type!(Subsystem<Data>);
- | -------------------------------- in this macro invocation
- = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*const blk_mq_ops` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut c_void` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut c_void` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut *mut blk_mq_tags` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut blk_mq_tags` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
- note: required because it appears within the type `bindings::bindings_raw::mutex`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
- |
- 35653 | pub struct mutex {
- | ^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
- note: required because it appears within the type `bindings::bindings_raw::list_head`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
- |
- 28151 | pub struct list_head {
- | ^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
- note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
- |
- 40479 | pub struct rw_semaphore {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0277]: `*mut u32` cannot be sent between threads safely
- --> drivers/block/rnull/configfs.rs:51:25
- |
- 51 | let item_type = configfs_attrs! {
- | _________________________^
- 52 | | container: configfs::Group<DeviceConfig>,
- 53 | | data: DeviceConfig,
- 54 | | attributes: [
- ... |
- 61 | | ],
- 62 | | };
- | | ^
- | | |
- | |_________`*mut u32` cannot be sent between threads safely
- | required by a bound introduced by this call
- |
- = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
- note: required because it appears within the type `blk_mq_queue_map`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
- |
- 93747 | pub struct blk_mq_queue_map {
- | ^^^^^^^^^^^^^^^^
- = note: required because it appears within the type `[blk_mq_queue_map; 3]`
- note: required because it appears within the type `blk_mq_tag_set`
- --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
- |
- 93768 | pub struct blk_mq_tag_set {
- | ^^^^^^^^^^^^^^
- note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
- |
- 73 | pub struct MaybeDangling<P: ?Sized>(P);
- | ^^^^^^^^^^^^^
- note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
- |
- 158 | pub struct ManuallyDrop<T: ?Sized> {
- | ^^^^^^^^^^^^
- note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
- |
- 355 | pub union MaybeUninit<T> {
- | ^^^^^^^^^^^
- note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
- |
- 2323 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `Opaque<blk_mq_tag_set>`
- --> rust/kernel/types.rs:332:12
- |
- 332 | pub struct Opaque<T> {
- | ^^^^^^
- note: required because it appears within the type `TagSet<NullBlkDevice>`
- --> rust/kernel/block/mq/tag_set.rs:28:12
- |
- 28 | pub struct TagSet<T: Operations> {
- | ^^^^^^
- = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
- note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
- --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
- |
- 598 | pub enum Option<T> {
- | ^^^^^^
- note: required because it appears within the type `DeviceConfigInner`
- --> drivers/block/rnull/configfs.rs:118:8
- |
- 118 | struct DeviceConfigInner {
- | ^^^^^^^^^^^^^^^^^
- = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
- note: required because it appears within the type `DeviceConfig`
- --> drivers/block/rnull/configfs.rs:112:19
- |
- 112 | pub(crate) struct DeviceConfig {
- | ^^^^^^^^^^^^
- = note: required for `Group<DeviceConfig>` to implement `Send`
- = note: 1 redundant requirement hidden
- = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
- note: required by a bound in `ItemType::<Group<Data>, Data>::new`
- --> rust/kernel/configfs.rs:807:35
- |
- 802 | pub const fn new<const N: usize>(
- | --- required by a bound in this associated function
- ...
- 807 | Arc<Group<Data>>: Send,
- | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
- ...
- 825 | impl_item_type!(Group<Data>);
- | ---------------------------- in this macro invocation
- = note: this error originates in the macro `$crate::configfs_attrs` which comes from the expansion of the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
- error: aborting due to 80 previous errors
- For more information about this error, try `rustc --explain E0277`.
- make[5]: *** [scripts/Makefile.build:361: drivers/block/rnull/rnull.o] Error 1
- make[4]: *** [scripts/Makefile.build:551: drivers/block/rnull] Error 2
- make[3]: *** [scripts/Makefile.build:551: drivers/block] Error 2
- make[3]: *** Waiting for unfinished jobs....
- CC drivers/mfd/stmpe-i2c.o
- CC drivers/mfd/stmpe-spi.o
- CC drivers/mfd/mfd-core.o
- CC [M] drivers/misc/apds9802als.o
- CC drivers/mfd/axp20x.o
- CC [M] drivers/misc/isl29003.o
- CC drivers/mfd/axp20x-i2c.o
- CC drivers/mfd/max77620.o
- CC [M] drivers/misc/isl29020.o
- CC drivers/mfd/max77686.o
- CC [M] drivers/misc/tsl2550.o
- CC drivers/mfd/syscon.o
- CC [M] drivers/misc/dw-xdata-pcie.o
- CC [M] drivers/misc/xilinx_sdfec.o
- CC [M] drivers/misc/ntsync.o
- CC drivers/mfd/vexpress-sysreg.o
- CC [M] drivers/misc/hi6421v600-irq.o
- CC drivers/mfd/as3722.o
- CC [M] drivers/misc/open-dice.o
- CC drivers/mfd/rohm-pwrbutton.o
- CC [M] drivers/misc/vcpu_stall_detector.o
- CC drivers/mfd/rohm-bd718x7.o
- CC [M] drivers/misc/tps6594-esm.o
- CC [M] drivers/mfd/sm501.o
- CC [M] drivers/misc/tps6594-pfsm.o
- CC [M] drivers/mfd/bd9571mwv.o
- CC [M] drivers/misc/nsm.o
- CC [M] drivers/mfd/cros_ec_dev.o
- CC [M] drivers/misc/altera-stapl/altera-jtag.o
- CC [M] drivers/mfd/cs42l43.o
- CC [M] drivers/misc/vmw_vmci/vmci_context.o
- CC [M] drivers/misc/vmw_vmci/vmci_datagram.o
- CC [M] drivers/misc/vmw_vmci/vmci_doorbell.o
- CC [M] drivers/misc/altera-stapl/altera-comp.o
- CC [M] drivers/misc/vmw_vmci/vmci_driver.o
- CC [M] drivers/misc/altera-stapl/altera.o
- CC [M] drivers/misc/altera-stapl/altera-lpt.o
- CC [M] drivers/misc/bcm-vk/bcm_vk_dev.o
- CC [M] drivers/mfd/cs42l43-i2c.o
- CC [M] drivers/mfd/cs42l43-sdw.o
- CC [M] drivers/misc/vmw_vmci/vmci_event.o
- CC [M] drivers/misc/uacce/uacce.o
- CC [M] drivers/misc/vmw_vmci/vmci_guest.o
- LD [M] drivers/misc/altera-stapl/altera-stapl.o
- CC [M] drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.o
- CC [M] drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.o
- CC [M] drivers/misc/bcm-vk/bcm_vk_msg.o
- CC [M] drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.o
- CC [M] drivers/mfd/macsmc.o
- CC [M] drivers/misc/vmw_vmci/vmci_handle_array.o
- CC [M] drivers/misc/vmw_vmci/vmci_host.o
- CC [M] drivers/misc/bcm-vk/bcm_vk_sg.o
- CC [M] drivers/misc/bcm-vk/bcm_vk_tty.o
- CC [M] drivers/mfd/wcd934x.o
- CC [M] drivers/misc/vmw_vmci/vmci_queue_pair.o
- CC [M] drivers/misc/vmw_vmci/vmci_resource.o
- CC [M] drivers/misc/vmw_vmci/vmci_route.o
- LD [M] drivers/misc/bcm-vk/bcm_vk.o
- CC [M] drivers/mfd/wm8994-core.o
- CC [M] drivers/mfd/wm8994-irq.o
- CC [M] drivers/misc/rp1/rp1_pci.o
- AR drivers/misc/built-in.a
- CC [M] drivers/mfd/wm8994-regmap.o
- CC [M] drivers/mfd/cs40l50-core.o
- LD [M] drivers/misc/vmw_vmci/vmw_vmci.o
- CC [M] drivers/mfd/cs40l50-i2c.o
- CC [M] drivers/mfd/cs40l50-spi.o
- CC [M] drivers/mfd/tps65086.o
- CC [M] drivers/mfd/tps65219.o
- CC [M] drivers/mfd/tps6594-core.o
- CC [M] drivers/mfd/tps6594-i2c.o
- CC [M] drivers/mfd/max77650.o
- CC [M] drivers/mfd/max77705.o
- CC [M] drivers/mfd/max77714.o
- CC [M] drivers/mfd/max77759.o
- CC [M] drivers/mfd/adp5585.o
- CC [M] drivers/mfd/vx855.o
- CC [M] drivers/mfd/rk8xx-core.o
- CC [M] drivers/mfd/rk8xx-i2c.o
- CC [M] drivers/mfd/rk8xx-spi.o
- CC [M] drivers/mfd/hi6421-pmic-core.o
- CC [M] drivers/mfd/hi6421-spmi-pmic.o
- CC [M] drivers/mfd/dln2.o
- CC [M] drivers/mfd/rt4831.o
- CC [M] drivers/mfd/rt5033.o
- CC [M] drivers/mfd/rt5120.o
- CC [M] drivers/mfd/rohm-bd96801.o
- CC [M] drivers/mfd/qcom-pm8008.o
- CC [M] drivers/mfd/simple-mfd-i2c.o
- CC [M] drivers/mfd/smpro-core.o
- CC [M] drivers/mfd/intel-m10-bmc-core.o
- CC [M] drivers/mfd/intel-m10-bmc-spi.o
- CC [M] drivers/mfd/qnap-mcu.o
- CC [M] drivers/mfd/rsmu_i2c.o
- CC [M] drivers/mfd/rsmu_core.o
- CC [M] drivers/mfd/rsmu_spi.o
- AR drivers/mfd/built-in.a
- LD [M] drivers/mfd/wm8994.o
- make[2]: *** [scripts/Makefile.build:551: drivers] Error 2
- make[1]: *** [/home/alice/Coding/Linux/Makefile:2230: .] Error 2
- make: *** [Makefile:248: __sub-make] Error 2
Advertisement
Add Comment
Please, Sign In to add comment