cremfuelled

v7.3.6-rc1 Rust Compilation Failure

Nov 18th, 2026
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 272.22 KB | None | 0 0
  1. $ LLVM=1 make -j6
  2. RUSTC [M] drivers/block/rnull/rnull.o
  3. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  4. --> drivers/block/rnull/configfs.rs:45:18
  5. |
  6. 45 | type Child = DeviceConfig;
  7. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  8. |
  9. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  10. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  11. --> rust/kernel/types.rs:332:12
  12. |
  13. 332 | pub struct Opaque<T> {
  14. | ^^^^^^
  15. note: required because it appears within the type `TagSet<NullBlkDevice>`
  16. --> rust/kernel/block/mq/tag_set.rs:28:12
  17. |
  18. 28 | pub struct TagSet<T: Operations> {
  19. | ^^^^^^
  20. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  21. = note: 1 redundant requirement hidden
  22. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  23. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  24. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  25. |
  26. 598 | pub enum Option<T> {
  27. | ^^^^^^
  28. note: required because it appears within the type `DeviceConfigInner`
  29. --> drivers/block/rnull/configfs.rs:118:8
  30. |
  31. 118 | struct DeviceConfigInner {
  32. | ^^^^^^^^^^^^^^^^^
  33. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  34. note: required because it appears within the type `DeviceConfig`
  35. --> drivers/block/rnull/configfs.rs:112:19
  36. |
  37. 112 | pub(crate) struct DeviceConfig {
  38. | ^^^^^^^^^^^^
  39. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  40. --> rust/kernel/configfs.rs:521:27
  41. |
  42. 521 | type Child: 'static + Send;
  43. | ^^^^ required by this bound in `GroupOperations::Child`
  44.  
  45. CC [M] drivers/misc/cardreader/rtsx_usb.o
  46. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  47. --> drivers/block/rnull/configfs.rs:45:18
  48. |
  49. 45 | type Child = DeviceConfig;
  50. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  51. |
  52. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  53. note: required because it appears within the type `blk_mq_tag_set`
  54. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  55. |
  56. 93768 | pub struct blk_mq_tag_set {
  57. | ^^^^^^^^^^^^^^
  58. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  59. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  60. |
  61. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  62. | ^^^^^^^^^^^^^
  63. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  64. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  65. |
  66. 158 | pub struct ManuallyDrop<T: ?Sized> {
  67. | ^^^^^^^^^^^^
  68. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  69. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  70. |
  71. 355 | pub union MaybeUninit<T> {
  72. | ^^^^^^^^^^^
  73. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  74. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  75. |
  76. 2323 | pub struct UnsafeCell<T: ?Sized> {
  77. | ^^^^^^^^^^
  78. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  79. --> rust/kernel/types.rs:332:12
  80. |
  81. 332 | pub struct Opaque<T> {
  82. | ^^^^^^
  83. note: required because it appears within the type `TagSet<NullBlkDevice>`
  84. --> rust/kernel/block/mq/tag_set.rs:28:12
  85. |
  86. 28 | pub struct TagSet<T: Operations> {
  87. | ^^^^^^
  88. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  89. = note: 1 redundant requirement hidden
  90. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  91. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  92. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  93. |
  94. 598 | pub enum Option<T> {
  95. | ^^^^^^
  96. note: required because it appears within the type `DeviceConfigInner`
  97. --> drivers/block/rnull/configfs.rs:118:8
  98. |
  99. 118 | struct DeviceConfigInner {
  100. | ^^^^^^^^^^^^^^^^^
  101. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  102. note: required because it appears within the type `DeviceConfig`
  103. --> drivers/block/rnull/configfs.rs:112:19
  104. |
  105. 112 | pub(crate) struct DeviceConfig {
  106. | ^^^^^^^^^^^^
  107. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  108. --> rust/kernel/configfs.rs:521:27
  109. |
  110. 521 | type Child: 'static + Send;
  111. | ^^^^ required by this bound in `GroupOperations::Child`
  112.  
  113. error[E0277]: `*mut c_void` cannot be sent between threads safely
  114. --> drivers/block/rnull/configfs.rs:45:18
  115. |
  116. 45 | type Child = DeviceConfig;
  117. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  118. |
  119. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  120. note: required because it appears within the type `blk_mq_tag_set`
  121. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  122. |
  123. 93768 | pub struct blk_mq_tag_set {
  124. | ^^^^^^^^^^^^^^
  125. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  126. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  127. |
  128. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  129. | ^^^^^^^^^^^^^
  130. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  131. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  132. |
  133. 158 | pub struct ManuallyDrop<T: ?Sized> {
  134. | ^^^^^^^^^^^^
  135. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  136. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  137. |
  138. 355 | pub union MaybeUninit<T> {
  139. | ^^^^^^^^^^^
  140. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  141. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  142. |
  143. 2323 | pub struct UnsafeCell<T: ?Sized> {
  144. | ^^^^^^^^^^
  145. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  146. --> rust/kernel/types.rs:332:12
  147. |
  148. 332 | pub struct Opaque<T> {
  149. | ^^^^^^
  150. note: required because it appears within the type `TagSet<NullBlkDevice>`
  151. --> rust/kernel/block/mq/tag_set.rs:28:12
  152. |
  153. 28 | pub struct TagSet<T: Operations> {
  154. | ^^^^^^
  155. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  156. = note: 1 redundant requirement hidden
  157. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  158. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  159. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  160. |
  161. 598 | pub enum Option<T> {
  162. | ^^^^^^
  163. note: required because it appears within the type `DeviceConfigInner`
  164. --> drivers/block/rnull/configfs.rs:118:8
  165. |
  166. 118 | struct DeviceConfigInner {
  167. | ^^^^^^^^^^^^^^^^^
  168. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  169. note: required because it appears within the type `DeviceConfig`
  170. --> drivers/block/rnull/configfs.rs:112:19
  171. |
  172. 112 | pub(crate) struct DeviceConfig {
  173. | ^^^^^^^^^^^^
  174. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  175. --> rust/kernel/configfs.rs:521:27
  176. |
  177. 521 | type Child: 'static + Send;
  178. | ^^^^ required by this bound in `GroupOperations::Child`
  179.  
  180. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  181. --> drivers/block/rnull/configfs.rs:45:18
  182. |
  183. 45 | type Child = DeviceConfig;
  184. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  185. |
  186. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  187. note: required because it appears within the type `blk_mq_tag_set`
  188. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  189. |
  190. 93768 | pub struct blk_mq_tag_set {
  191. | ^^^^^^^^^^^^^^
  192. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  193. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  194. |
  195. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  196. | ^^^^^^^^^^^^^
  197. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  198. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  199. |
  200. 158 | pub struct ManuallyDrop<T: ?Sized> {
  201. | ^^^^^^^^^^^^
  202. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  203. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  204. |
  205. 355 | pub union MaybeUninit<T> {
  206. | ^^^^^^^^^^^
  207. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  208. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  209. |
  210. 2323 | pub struct UnsafeCell<T: ?Sized> {
  211. | ^^^^^^^^^^
  212. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  213. --> rust/kernel/types.rs:332:12
  214. |
  215. 332 | pub struct Opaque<T> {
  216. | ^^^^^^
  217. note: required because it appears within the type `TagSet<NullBlkDevice>`
  218. --> rust/kernel/block/mq/tag_set.rs:28:12
  219. |
  220. 28 | pub struct TagSet<T: Operations> {
  221. | ^^^^^^
  222. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  223. = note: 1 redundant requirement hidden
  224. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  225. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  226. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  227. |
  228. 598 | pub enum Option<T> {
  229. | ^^^^^^
  230. note: required because it appears within the type `DeviceConfigInner`
  231. --> drivers/block/rnull/configfs.rs:118:8
  232. |
  233. 118 | struct DeviceConfigInner {
  234. | ^^^^^^^^^^^^^^^^^
  235. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  236. note: required because it appears within the type `DeviceConfig`
  237. --> drivers/block/rnull/configfs.rs:112:19
  238. |
  239. 112 | pub(crate) struct DeviceConfig {
  240. | ^^^^^^^^^^^^
  241. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  242. --> rust/kernel/configfs.rs:521:27
  243. |
  244. 521 | type Child: 'static + Send;
  245. | ^^^^ required by this bound in `GroupOperations::Child`
  246.  
  247. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  248. --> drivers/block/rnull/configfs.rs:45:18
  249. |
  250. 45 | type Child = DeviceConfig;
  251. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  252. |
  253. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  254. note: required because it appears within the type `blk_mq_tag_set`
  255. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  256. |
  257. 93768 | pub struct blk_mq_tag_set {
  258. | ^^^^^^^^^^^^^^
  259. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  260. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  261. |
  262. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  263. | ^^^^^^^^^^^^^
  264. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  265. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  266. |
  267. 158 | pub struct ManuallyDrop<T: ?Sized> {
  268. | ^^^^^^^^^^^^
  269. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  270. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  271. |
  272. 355 | pub union MaybeUninit<T> {
  273. | ^^^^^^^^^^^
  274. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  275. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  276. |
  277. 2323 | pub struct UnsafeCell<T: ?Sized> {
  278. | ^^^^^^^^^^
  279. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  280. --> rust/kernel/types.rs:332:12
  281. |
  282. 332 | pub struct Opaque<T> {
  283. | ^^^^^^
  284. note: required because it appears within the type `TagSet<NullBlkDevice>`
  285. --> rust/kernel/block/mq/tag_set.rs:28:12
  286. |
  287. 28 | pub struct TagSet<T: Operations> {
  288. | ^^^^^^
  289. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  290. = note: 1 redundant requirement hidden
  291. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  292. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  293. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  294. |
  295. 598 | pub enum Option<T> {
  296. | ^^^^^^
  297. note: required because it appears within the type `DeviceConfigInner`
  298. --> drivers/block/rnull/configfs.rs:118:8
  299. |
  300. 118 | struct DeviceConfigInner {
  301. | ^^^^^^^^^^^^^^^^^
  302. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  303. note: required because it appears within the type `DeviceConfig`
  304. --> drivers/block/rnull/configfs.rs:112:19
  305. |
  306. 112 | pub(crate) struct DeviceConfig {
  307. | ^^^^^^^^^^^^
  308. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  309. --> rust/kernel/configfs.rs:521:27
  310. |
  311. 521 | type Child: 'static + Send;
  312. | ^^^^ required by this bound in `GroupOperations::Child`
  313.  
  314. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  315. --> drivers/block/rnull/configfs.rs:45:18
  316. |
  317. 45 | type Child = DeviceConfig;
  318. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  319. |
  320. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  321. note: required because it appears within the type `blk_mq_tag_set`
  322. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  323. |
  324. 93768 | pub struct blk_mq_tag_set {
  325. | ^^^^^^^^^^^^^^
  326. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  327. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  328. |
  329. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  330. | ^^^^^^^^^^^^^
  331. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  332. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  333. |
  334. 158 | pub struct ManuallyDrop<T: ?Sized> {
  335. | ^^^^^^^^^^^^
  336. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  337. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  338. |
  339. 355 | pub union MaybeUninit<T> {
  340. | ^^^^^^^^^^^
  341. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  342. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  343. |
  344. 2323 | pub struct UnsafeCell<T: ?Sized> {
  345. | ^^^^^^^^^^
  346. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  347. --> rust/kernel/types.rs:332:12
  348. |
  349. 332 | pub struct Opaque<T> {
  350. | ^^^^^^
  351. note: required because it appears within the type `TagSet<NullBlkDevice>`
  352. --> rust/kernel/block/mq/tag_set.rs:28:12
  353. |
  354. 28 | pub struct TagSet<T: Operations> {
  355. | ^^^^^^
  356. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  357. = note: 1 redundant requirement hidden
  358. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  359. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  360. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  361. |
  362. 598 | pub enum Option<T> {
  363. | ^^^^^^
  364. note: required because it appears within the type `DeviceConfigInner`
  365. --> drivers/block/rnull/configfs.rs:118:8
  366. |
  367. 118 | struct DeviceConfigInner {
  368. | ^^^^^^^^^^^^^^^^^
  369. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  370. note: required because it appears within the type `DeviceConfig`
  371. --> drivers/block/rnull/configfs.rs:112:19
  372. |
  373. 112 | pub(crate) struct DeviceConfig {
  374. | ^^^^^^^^^^^^
  375. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  376. --> rust/kernel/configfs.rs:521:27
  377. |
  378. 521 | type Child: 'static + Send;
  379. | ^^^^ required by this bound in `GroupOperations::Child`
  380.  
  381. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  382. --> drivers/block/rnull/configfs.rs:45:18
  383. |
  384. 45 | type Child = DeviceConfig;
  385. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  386. |
  387. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  388. note: required because it appears within the type `bindings::bindings_raw::mutex`
  389. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  390. |
  391. 35653 | pub struct mutex {
  392. | ^^^^^
  393. note: required because it appears within the type `blk_mq_tag_set`
  394. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  395. |
  396. 93768 | pub struct blk_mq_tag_set {
  397. | ^^^^^^^^^^^^^^
  398. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  399. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  400. |
  401. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  402. | ^^^^^^^^^^^^^
  403. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  404. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  405. |
  406. 158 | pub struct ManuallyDrop<T: ?Sized> {
  407. | ^^^^^^^^^^^^
  408. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  409. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  410. |
  411. 355 | pub union MaybeUninit<T> {
  412. | ^^^^^^^^^^^
  413. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  414. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  415. |
  416. 2323 | pub struct UnsafeCell<T: ?Sized> {
  417. | ^^^^^^^^^^
  418. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  419. --> rust/kernel/types.rs:332:12
  420. |
  421. 332 | pub struct Opaque<T> {
  422. | ^^^^^^
  423. note: required because it appears within the type `TagSet<NullBlkDevice>`
  424. --> rust/kernel/block/mq/tag_set.rs:28:12
  425. |
  426. 28 | pub struct TagSet<T: Operations> {
  427. | ^^^^^^
  428. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  429. = note: 1 redundant requirement hidden
  430. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  431. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  432. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  433. |
  434. 598 | pub enum Option<T> {
  435. | ^^^^^^
  436. note: required because it appears within the type `DeviceConfigInner`
  437. --> drivers/block/rnull/configfs.rs:118:8
  438. |
  439. 118 | struct DeviceConfigInner {
  440. | ^^^^^^^^^^^^^^^^^
  441. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  442. note: required because it appears within the type `DeviceConfig`
  443. --> drivers/block/rnull/configfs.rs:112:19
  444. |
  445. 112 | pub(crate) struct DeviceConfig {
  446. | ^^^^^^^^^^^^
  447. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  448. --> rust/kernel/configfs.rs:521:27
  449. |
  450. 521 | type Child: 'static + Send;
  451. | ^^^^ required by this bound in `GroupOperations::Child`
  452.  
  453. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  454. --> drivers/block/rnull/configfs.rs:45:18
  455. |
  456. 45 | type Child = DeviceConfig;
  457. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  458. |
  459. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  460. note: required because it appears within the type `bindings::bindings_raw::list_head`
  461. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  462. |
  463. 28151 | pub struct list_head {
  464. | ^^^^^^^^^
  465. note: required because it appears within the type `blk_mq_tag_set`
  466. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  467. |
  468. 93768 | pub struct blk_mq_tag_set {
  469. | ^^^^^^^^^^^^^^
  470. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  471. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  472. |
  473. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  474. | ^^^^^^^^^^^^^
  475. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  476. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  477. |
  478. 158 | pub struct ManuallyDrop<T: ?Sized> {
  479. | ^^^^^^^^^^^^
  480. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  481. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  482. |
  483. 355 | pub union MaybeUninit<T> {
  484. | ^^^^^^^^^^^
  485. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  486. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  487. |
  488. 2323 | pub struct UnsafeCell<T: ?Sized> {
  489. | ^^^^^^^^^^
  490. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  491. --> rust/kernel/types.rs:332:12
  492. |
  493. 332 | pub struct Opaque<T> {
  494. | ^^^^^^
  495. note: required because it appears within the type `TagSet<NullBlkDevice>`
  496. --> rust/kernel/block/mq/tag_set.rs:28:12
  497. |
  498. 28 | pub struct TagSet<T: Operations> {
  499. | ^^^^^^
  500. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  501. = note: 1 redundant requirement hidden
  502. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  503. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  504. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  505. |
  506. 598 | pub enum Option<T> {
  507. | ^^^^^^
  508. note: required because it appears within the type `DeviceConfigInner`
  509. --> drivers/block/rnull/configfs.rs:118:8
  510. |
  511. 118 | struct DeviceConfigInner {
  512. | ^^^^^^^^^^^^^^^^^
  513. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  514. note: required because it appears within the type `DeviceConfig`
  515. --> drivers/block/rnull/configfs.rs:112:19
  516. |
  517. 112 | pub(crate) struct DeviceConfig {
  518. | ^^^^^^^^^^^^
  519. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  520. --> rust/kernel/configfs.rs:521:27
  521. |
  522. 521 | type Child: 'static + Send;
  523. | ^^^^ required by this bound in `GroupOperations::Child`
  524.  
  525. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  526. --> drivers/block/rnull/configfs.rs:45:18
  527. |
  528. 45 | type Child = DeviceConfig;
  529. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  530. |
  531. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  532. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  533. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  534. |
  535. 40479 | pub struct rw_semaphore {
  536. | ^^^^^^^^^^^^
  537. note: required because it appears within the type `blk_mq_tag_set`
  538. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  539. |
  540. 93768 | pub struct blk_mq_tag_set {
  541. | ^^^^^^^^^^^^^^
  542. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  543. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  544. |
  545. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  546. | ^^^^^^^^^^^^^
  547. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  548. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  549. |
  550. 158 | pub struct ManuallyDrop<T: ?Sized> {
  551. | ^^^^^^^^^^^^
  552. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  553. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  554. |
  555. 355 | pub union MaybeUninit<T> {
  556. | ^^^^^^^^^^^
  557. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  558. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  559. |
  560. 2323 | pub struct UnsafeCell<T: ?Sized> {
  561. | ^^^^^^^^^^
  562. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  563. --> rust/kernel/types.rs:332:12
  564. |
  565. 332 | pub struct Opaque<T> {
  566. | ^^^^^^
  567. note: required because it appears within the type `TagSet<NullBlkDevice>`
  568. --> rust/kernel/block/mq/tag_set.rs:28:12
  569. |
  570. 28 | pub struct TagSet<T: Operations> {
  571. | ^^^^^^
  572. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  573. = note: 1 redundant requirement hidden
  574. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  575. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  576. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  577. |
  578. 598 | pub enum Option<T> {
  579. | ^^^^^^
  580. note: required because it appears within the type `DeviceConfigInner`
  581. --> drivers/block/rnull/configfs.rs:118:8
  582. |
  583. 118 | struct DeviceConfigInner {
  584. | ^^^^^^^^^^^^^^^^^
  585. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  586. note: required because it appears within the type `DeviceConfig`
  587. --> drivers/block/rnull/configfs.rs:112:19
  588. |
  589. 112 | pub(crate) struct DeviceConfig {
  590. | ^^^^^^^^^^^^
  591. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  592. --> rust/kernel/configfs.rs:521:27
  593. |
  594. 521 | type Child: 'static + Send;
  595. | ^^^^ required by this bound in `GroupOperations::Child`
  596.  
  597. error[E0277]: `*mut u32` cannot be sent between threads safely
  598. --> drivers/block/rnull/configfs.rs:45:18
  599. |
  600. 45 | type Child = DeviceConfig;
  601. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  602. |
  603. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  604. note: required because it appears within the type `blk_mq_queue_map`
  605. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  606. |
  607. 93747 | pub struct blk_mq_queue_map {
  608. | ^^^^^^^^^^^^^^^^
  609. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  610. note: required because it appears within the type `blk_mq_tag_set`
  611. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  612. |
  613. 93768 | pub struct blk_mq_tag_set {
  614. | ^^^^^^^^^^^^^^
  615. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  616. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  617. |
  618. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  619. | ^^^^^^^^^^^^^
  620. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  621. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  622. |
  623. 158 | pub struct ManuallyDrop<T: ?Sized> {
  624. | ^^^^^^^^^^^^
  625. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  626. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  627. |
  628. 355 | pub union MaybeUninit<T> {
  629. | ^^^^^^^^^^^
  630. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  631. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  632. |
  633. 2323 | pub struct UnsafeCell<T: ?Sized> {
  634. | ^^^^^^^^^^
  635. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  636. --> rust/kernel/types.rs:332:12
  637. |
  638. 332 | pub struct Opaque<T> {
  639. | ^^^^^^
  640. note: required because it appears within the type `TagSet<NullBlkDevice>`
  641. --> rust/kernel/block/mq/tag_set.rs:28:12
  642. |
  643. 28 | pub struct TagSet<T: Operations> {
  644. | ^^^^^^
  645. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  646. = note: 1 redundant requirement hidden
  647. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  648. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  649. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  650. |
  651. 598 | pub enum Option<T> {
  652. | ^^^^^^
  653. note: required because it appears within the type `DeviceConfigInner`
  654. --> drivers/block/rnull/configfs.rs:118:8
  655. |
  656. 118 | struct DeviceConfigInner {
  657. | ^^^^^^^^^^^^^^^^^
  658. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  659. note: required because it appears within the type `DeviceConfig`
  660. --> drivers/block/rnull/configfs.rs:112:19
  661. |
  662. 112 | pub(crate) struct DeviceConfig {
  663. | ^^^^^^^^^^^^
  664. note: required by a bound in `kernel::configfs::GroupOperations::Child`
  665. --> rust/kernel/configfs.rs:521:27
  666. |
  667. 521 | type Child: 'static + Send;
  668. | ^^^^ required by this bound in `GroupOperations::Child`
  669.  
  670. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  671. --> drivers/block/rnull/configfs.rs:130:17
  672. |
  673. 130 | type Data = DeviceConfig;
  674. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  675. |
  676. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  677. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  678. --> rust/kernel/types.rs:332:12
  679. |
  680. 332 | pub struct Opaque<T> {
  681. | ^^^^^^
  682. note: required because it appears within the type `TagSet<NullBlkDevice>`
  683. --> rust/kernel/block/mq/tag_set.rs:28:12
  684. |
  685. 28 | pub struct TagSet<T: Operations> {
  686. | ^^^^^^
  687. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  688. = note: 1 redundant requirement hidden
  689. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  690. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  691. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  692. |
  693. 598 | pub enum Option<T> {
  694. | ^^^^^^
  695. note: required because it appears within the type `DeviceConfigInner`
  696. --> drivers/block/rnull/configfs.rs:118:8
  697. |
  698. 118 | struct DeviceConfigInner {
  699. | ^^^^^^^^^^^^^^^^^
  700. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  701. note: required because it appears within the type `DeviceConfig`
  702. --> drivers/block/rnull/configfs.rs:112:19
  703. |
  704. 112 | pub(crate) struct DeviceConfig {
  705. | ^^^^^^^^^^^^
  706. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  707. --> rust/kernel/configfs.rs:680:16
  708. |
  709. 680 | type Data: Sync;
  710. | ^^^^ required by this bound in `AttributeOperations::Data`
  711.  
  712. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  713. --> drivers/block/rnull/configfs.rs:130:17
  714. |
  715. 130 | type Data = DeviceConfig;
  716. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  717. |
  718. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  719. note: required because it appears within the type `blk_mq_tag_set`
  720. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  721. |
  722. 93768 | pub struct blk_mq_tag_set {
  723. | ^^^^^^^^^^^^^^
  724. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  725. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  726. |
  727. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  728. | ^^^^^^^^^^^^^
  729. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  730. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  731. |
  732. 158 | pub struct ManuallyDrop<T: ?Sized> {
  733. | ^^^^^^^^^^^^
  734. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  735. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  736. |
  737. 355 | pub union MaybeUninit<T> {
  738. | ^^^^^^^^^^^
  739. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  740. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  741. |
  742. 2323 | pub struct UnsafeCell<T: ?Sized> {
  743. | ^^^^^^^^^^
  744. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  745. --> rust/kernel/types.rs:332:12
  746. |
  747. 332 | pub struct Opaque<T> {
  748. | ^^^^^^
  749. note: required because it appears within the type `TagSet<NullBlkDevice>`
  750. --> rust/kernel/block/mq/tag_set.rs:28:12
  751. |
  752. 28 | pub struct TagSet<T: Operations> {
  753. | ^^^^^^
  754. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  755. = note: 1 redundant requirement hidden
  756. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  757. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  758. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  759. |
  760. 598 | pub enum Option<T> {
  761. | ^^^^^^
  762. note: required because it appears within the type `DeviceConfigInner`
  763. --> drivers/block/rnull/configfs.rs:118:8
  764. |
  765. 118 | struct DeviceConfigInner {
  766. | ^^^^^^^^^^^^^^^^^
  767. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  768. note: required because it appears within the type `DeviceConfig`
  769. --> drivers/block/rnull/configfs.rs:112:19
  770. |
  771. 112 | pub(crate) struct DeviceConfig {
  772. | ^^^^^^^^^^^^
  773. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  774. --> rust/kernel/configfs.rs:680:16
  775. |
  776. 680 | type Data: Sync;
  777. | ^^^^ required by this bound in `AttributeOperations::Data`
  778.  
  779. error[E0277]: `*mut c_void` cannot be sent between threads safely
  780. --> drivers/block/rnull/configfs.rs:130:17
  781. |
  782. 130 | type Data = DeviceConfig;
  783. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  784. |
  785. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  786. note: required because it appears within the type `blk_mq_tag_set`
  787. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  788. |
  789. 93768 | pub struct blk_mq_tag_set {
  790. | ^^^^^^^^^^^^^^
  791. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  792. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  793. |
  794. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  795. | ^^^^^^^^^^^^^
  796. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  797. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  798. |
  799. 158 | pub struct ManuallyDrop<T: ?Sized> {
  800. | ^^^^^^^^^^^^
  801. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  802. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  803. |
  804. 355 | pub union MaybeUninit<T> {
  805. | ^^^^^^^^^^^
  806. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  807. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  808. |
  809. 2323 | pub struct UnsafeCell<T: ?Sized> {
  810. | ^^^^^^^^^^
  811. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  812. --> rust/kernel/types.rs:332:12
  813. |
  814. 332 | pub struct Opaque<T> {
  815. | ^^^^^^
  816. note: required because it appears within the type `TagSet<NullBlkDevice>`
  817. --> rust/kernel/block/mq/tag_set.rs:28:12
  818. |
  819. 28 | pub struct TagSet<T: Operations> {
  820. | ^^^^^^
  821. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  822. = note: 1 redundant requirement hidden
  823. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  824. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  825. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  826. |
  827. 598 | pub enum Option<T> {
  828. | ^^^^^^
  829. note: required because it appears within the type `DeviceConfigInner`
  830. --> drivers/block/rnull/configfs.rs:118:8
  831. |
  832. 118 | struct DeviceConfigInner {
  833. | ^^^^^^^^^^^^^^^^^
  834. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  835. note: required because it appears within the type `DeviceConfig`
  836. --> drivers/block/rnull/configfs.rs:112:19
  837. |
  838. 112 | pub(crate) struct DeviceConfig {
  839. | ^^^^^^^^^^^^
  840. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  841. --> rust/kernel/configfs.rs:680:16
  842. |
  843. 680 | type Data: Sync;
  844. | ^^^^ required by this bound in `AttributeOperations::Data`
  845.  
  846. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  847. --> drivers/block/rnull/configfs.rs:130:17
  848. |
  849. 130 | type Data = DeviceConfig;
  850. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  851. |
  852. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  853. note: required because it appears within the type `blk_mq_tag_set`
  854. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  855. |
  856. 93768 | pub struct blk_mq_tag_set {
  857. | ^^^^^^^^^^^^^^
  858. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  859. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  860. |
  861. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  862. | ^^^^^^^^^^^^^
  863. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  864. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  865. |
  866. 158 | pub struct ManuallyDrop<T: ?Sized> {
  867. | ^^^^^^^^^^^^
  868. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  869. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  870. |
  871. 355 | pub union MaybeUninit<T> {
  872. | ^^^^^^^^^^^
  873. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  874. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  875. |
  876. 2323 | pub struct UnsafeCell<T: ?Sized> {
  877. | ^^^^^^^^^^
  878. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  879. --> rust/kernel/types.rs:332:12
  880. |
  881. 332 | pub struct Opaque<T> {
  882. | ^^^^^^
  883. note: required because it appears within the type `TagSet<NullBlkDevice>`
  884. --> rust/kernel/block/mq/tag_set.rs:28:12
  885. |
  886. 28 | pub struct TagSet<T: Operations> {
  887. | ^^^^^^
  888. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  889. = note: 1 redundant requirement hidden
  890. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  891. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  892. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  893. |
  894. 598 | pub enum Option<T> {
  895. | ^^^^^^
  896. note: required because it appears within the type `DeviceConfigInner`
  897. --> drivers/block/rnull/configfs.rs:118:8
  898. |
  899. 118 | struct DeviceConfigInner {
  900. | ^^^^^^^^^^^^^^^^^
  901. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  902. note: required because it appears within the type `DeviceConfig`
  903. --> drivers/block/rnull/configfs.rs:112:19
  904. |
  905. 112 | pub(crate) struct DeviceConfig {
  906. | ^^^^^^^^^^^^
  907. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  908. --> rust/kernel/configfs.rs:680:16
  909. |
  910. 680 | type Data: Sync;
  911. | ^^^^ required by this bound in `AttributeOperations::Data`
  912.  
  913. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  914. --> drivers/block/rnull/configfs.rs:130:17
  915. |
  916. 130 | type Data = DeviceConfig;
  917. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  918. |
  919. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  920. note: required because it appears within the type `blk_mq_tag_set`
  921. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  922. |
  923. 93768 | pub struct blk_mq_tag_set {
  924. | ^^^^^^^^^^^^^^
  925. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  926. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  927. |
  928. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  929. | ^^^^^^^^^^^^^
  930. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  931. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  932. |
  933. 158 | pub struct ManuallyDrop<T: ?Sized> {
  934. | ^^^^^^^^^^^^
  935. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  936. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  937. |
  938. 355 | pub union MaybeUninit<T> {
  939. | ^^^^^^^^^^^
  940. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  941. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  942. |
  943. 2323 | pub struct UnsafeCell<T: ?Sized> {
  944. | ^^^^^^^^^^
  945. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  946. --> rust/kernel/types.rs:332:12
  947. |
  948. 332 | pub struct Opaque<T> {
  949. | ^^^^^^
  950. note: required because it appears within the type `TagSet<NullBlkDevice>`
  951. --> rust/kernel/block/mq/tag_set.rs:28:12
  952. |
  953. 28 | pub struct TagSet<T: Operations> {
  954. | ^^^^^^
  955. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  956. = note: 1 redundant requirement hidden
  957. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  958. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  959. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  960. |
  961. 598 | pub enum Option<T> {
  962. | ^^^^^^
  963. note: required because it appears within the type `DeviceConfigInner`
  964. --> drivers/block/rnull/configfs.rs:118:8
  965. |
  966. 118 | struct DeviceConfigInner {
  967. | ^^^^^^^^^^^^^^^^^
  968. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  969. note: required because it appears within the type `DeviceConfig`
  970. --> drivers/block/rnull/configfs.rs:112:19
  971. |
  972. 112 | pub(crate) struct DeviceConfig {
  973. | ^^^^^^^^^^^^
  974. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  975. --> rust/kernel/configfs.rs:680:16
  976. |
  977. 680 | type Data: Sync;
  978. | ^^^^ required by this bound in `AttributeOperations::Data`
  979.  
  980. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  981. --> drivers/block/rnull/configfs.rs:130:17
  982. |
  983. 130 | type Data = DeviceConfig;
  984. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  985. |
  986. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  987. note: required because it appears within the type `blk_mq_tag_set`
  988. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  989. |
  990. 93768 | pub struct blk_mq_tag_set {
  991. | ^^^^^^^^^^^^^^
  992. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  993. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  994. |
  995. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  996. | ^^^^^^^^^^^^^
  997. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  998. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  999. |
  1000. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1001. | ^^^^^^^^^^^^
  1002. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1003. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1004. |
  1005. 355 | pub union MaybeUninit<T> {
  1006. | ^^^^^^^^^^^
  1007. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1008. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1009. |
  1010. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1011. | ^^^^^^^^^^
  1012. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1013. --> rust/kernel/types.rs:332:12
  1014. |
  1015. 332 | pub struct Opaque<T> {
  1016. | ^^^^^^
  1017. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1018. --> rust/kernel/block/mq/tag_set.rs:28:12
  1019. |
  1020. 28 | pub struct TagSet<T: Operations> {
  1021. | ^^^^^^
  1022. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1023. = note: 1 redundant requirement hidden
  1024. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1025. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1026. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1027. |
  1028. 598 | pub enum Option<T> {
  1029. | ^^^^^^
  1030. note: required because it appears within the type `DeviceConfigInner`
  1031. --> drivers/block/rnull/configfs.rs:118:8
  1032. |
  1033. 118 | struct DeviceConfigInner {
  1034. | ^^^^^^^^^^^^^^^^^
  1035. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1036. note: required because it appears within the type `DeviceConfig`
  1037. --> drivers/block/rnull/configfs.rs:112:19
  1038. |
  1039. 112 | pub(crate) struct DeviceConfig {
  1040. | ^^^^^^^^^^^^
  1041. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1042. --> rust/kernel/configfs.rs:680:16
  1043. |
  1044. 680 | type Data: Sync;
  1045. | ^^^^ required by this bound in `AttributeOperations::Data`
  1046.  
  1047. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  1048. --> drivers/block/rnull/configfs.rs:130:17
  1049. |
  1050. 130 | type Data = DeviceConfig;
  1051. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  1052. |
  1053. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  1054. note: required because it appears within the type `bindings::bindings_raw::mutex`
  1055. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  1056. |
  1057. 35653 | pub struct mutex {
  1058. | ^^^^^
  1059. note: required because it appears within the type `blk_mq_tag_set`
  1060. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1061. |
  1062. 93768 | pub struct blk_mq_tag_set {
  1063. | ^^^^^^^^^^^^^^
  1064. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1065. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1066. |
  1067. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1068. | ^^^^^^^^^^^^^
  1069. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1070. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1071. |
  1072. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1073. | ^^^^^^^^^^^^
  1074. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1075. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1076. |
  1077. 355 | pub union MaybeUninit<T> {
  1078. | ^^^^^^^^^^^
  1079. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1080. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1081. |
  1082. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1083. | ^^^^^^^^^^
  1084. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1085. --> rust/kernel/types.rs:332:12
  1086. |
  1087. 332 | pub struct Opaque<T> {
  1088. | ^^^^^^
  1089. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1090. --> rust/kernel/block/mq/tag_set.rs:28:12
  1091. |
  1092. 28 | pub struct TagSet<T: Operations> {
  1093. | ^^^^^^
  1094. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1095. = note: 1 redundant requirement hidden
  1096. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1097. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1098. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1099. |
  1100. 598 | pub enum Option<T> {
  1101. | ^^^^^^
  1102. note: required because it appears within the type `DeviceConfigInner`
  1103. --> drivers/block/rnull/configfs.rs:118:8
  1104. |
  1105. 118 | struct DeviceConfigInner {
  1106. | ^^^^^^^^^^^^^^^^^
  1107. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1108. note: required because it appears within the type `DeviceConfig`
  1109. --> drivers/block/rnull/configfs.rs:112:19
  1110. |
  1111. 112 | pub(crate) struct DeviceConfig {
  1112. | ^^^^^^^^^^^^
  1113. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1114. --> rust/kernel/configfs.rs:680:16
  1115. |
  1116. 680 | type Data: Sync;
  1117. | ^^^^ required by this bound in `AttributeOperations::Data`
  1118.  
  1119. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  1120. --> drivers/block/rnull/configfs.rs:130:17
  1121. |
  1122. 130 | type Data = DeviceConfig;
  1123. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  1124. |
  1125. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  1126. note: required because it appears within the type `bindings::bindings_raw::list_head`
  1127. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  1128. |
  1129. 28151 | pub struct list_head {
  1130. | ^^^^^^^^^
  1131. note: required because it appears within the type `blk_mq_tag_set`
  1132. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1133. |
  1134. 93768 | pub struct blk_mq_tag_set {
  1135. | ^^^^^^^^^^^^^^
  1136. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1137. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1138. |
  1139. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1140. | ^^^^^^^^^^^^^
  1141. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1142. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1143. |
  1144. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1145. | ^^^^^^^^^^^^
  1146. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1147. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1148. |
  1149. 355 | pub union MaybeUninit<T> {
  1150. | ^^^^^^^^^^^
  1151. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1152. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1153. |
  1154. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1155. | ^^^^^^^^^^
  1156. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1157. --> rust/kernel/types.rs:332:12
  1158. |
  1159. 332 | pub struct Opaque<T> {
  1160. | ^^^^^^
  1161. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1162. --> rust/kernel/block/mq/tag_set.rs:28:12
  1163. |
  1164. 28 | pub struct TagSet<T: Operations> {
  1165. | ^^^^^^
  1166. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1167. = note: 1 redundant requirement hidden
  1168. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1169. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1170. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1171. |
  1172. 598 | pub enum Option<T> {
  1173. | ^^^^^^
  1174. note: required because it appears within the type `DeviceConfigInner`
  1175. --> drivers/block/rnull/configfs.rs:118:8
  1176. |
  1177. 118 | struct DeviceConfigInner {
  1178. | ^^^^^^^^^^^^^^^^^
  1179. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1180. note: required because it appears within the type `DeviceConfig`
  1181. --> drivers/block/rnull/configfs.rs:112:19
  1182. |
  1183. 112 | pub(crate) struct DeviceConfig {
  1184. | ^^^^^^^^^^^^
  1185. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1186. --> rust/kernel/configfs.rs:680:16
  1187. |
  1188. 680 | type Data: Sync;
  1189. | ^^^^ required by this bound in `AttributeOperations::Data`
  1190.  
  1191. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  1192. --> drivers/block/rnull/configfs.rs:130:17
  1193. |
  1194. 130 | type Data = DeviceConfig;
  1195. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  1196. |
  1197. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  1198. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  1199. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  1200. |
  1201. 40479 | pub struct rw_semaphore {
  1202. | ^^^^^^^^^^^^
  1203. note: required because it appears within the type `blk_mq_tag_set`
  1204. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1205. |
  1206. 93768 | pub struct blk_mq_tag_set {
  1207. | ^^^^^^^^^^^^^^
  1208. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1209. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1210. |
  1211. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1212. | ^^^^^^^^^^^^^
  1213. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1214. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1215. |
  1216. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1217. | ^^^^^^^^^^^^
  1218. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1219. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1220. |
  1221. 355 | pub union MaybeUninit<T> {
  1222. | ^^^^^^^^^^^
  1223. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1224. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1225. |
  1226. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1227. | ^^^^^^^^^^
  1228. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1229. --> rust/kernel/types.rs:332:12
  1230. |
  1231. 332 | pub struct Opaque<T> {
  1232. | ^^^^^^
  1233. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1234. --> rust/kernel/block/mq/tag_set.rs:28:12
  1235. |
  1236. 28 | pub struct TagSet<T: Operations> {
  1237. | ^^^^^^
  1238. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1239. = note: 1 redundant requirement hidden
  1240. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1241. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1242. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1243. |
  1244. 598 | pub enum Option<T> {
  1245. | ^^^^^^
  1246. note: required because it appears within the type `DeviceConfigInner`
  1247. --> drivers/block/rnull/configfs.rs:118:8
  1248. |
  1249. 118 | struct DeviceConfigInner {
  1250. | ^^^^^^^^^^^^^^^^^
  1251. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1252. note: required because it appears within the type `DeviceConfig`
  1253. --> drivers/block/rnull/configfs.rs:112:19
  1254. |
  1255. 112 | pub(crate) struct DeviceConfig {
  1256. | ^^^^^^^^^^^^
  1257. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1258. --> rust/kernel/configfs.rs:680:16
  1259. |
  1260. 680 | type Data: Sync;
  1261. | ^^^^ required by this bound in `AttributeOperations::Data`
  1262.  
  1263. error[E0277]: `*mut u32` cannot be sent between threads safely
  1264. --> drivers/block/rnull/configfs.rs:130:17
  1265. |
  1266. 130 | type Data = DeviceConfig;
  1267. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  1268. |
  1269. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  1270. note: required because it appears within the type `blk_mq_queue_map`
  1271. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  1272. |
  1273. 93747 | pub struct blk_mq_queue_map {
  1274. | ^^^^^^^^^^^^^^^^
  1275. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  1276. note: required because it appears within the type `blk_mq_tag_set`
  1277. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1278. |
  1279. 93768 | pub struct blk_mq_tag_set {
  1280. | ^^^^^^^^^^^^^^
  1281. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1282. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1283. |
  1284. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1285. | ^^^^^^^^^^^^^
  1286. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1287. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1288. |
  1289. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1290. | ^^^^^^^^^^^^
  1291. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1292. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1293. |
  1294. 355 | pub union MaybeUninit<T> {
  1295. | ^^^^^^^^^^^
  1296. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1297. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1298. |
  1299. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1300. | ^^^^^^^^^^
  1301. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1302. --> rust/kernel/types.rs:332:12
  1303. |
  1304. 332 | pub struct Opaque<T> {
  1305. | ^^^^^^
  1306. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1307. --> rust/kernel/block/mq/tag_set.rs:28:12
  1308. |
  1309. 28 | pub struct TagSet<T: Operations> {
  1310. | ^^^^^^
  1311. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1312. = note: 1 redundant requirement hidden
  1313. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1314. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1315. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1316. |
  1317. 598 | pub enum Option<T> {
  1318. | ^^^^^^
  1319. note: required because it appears within the type `DeviceConfigInner`
  1320. --> drivers/block/rnull/configfs.rs:118:8
  1321. |
  1322. 118 | struct DeviceConfigInner {
  1323. | ^^^^^^^^^^^^^^^^^
  1324. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1325. note: required because it appears within the type `DeviceConfig`
  1326. --> drivers/block/rnull/configfs.rs:112:19
  1327. |
  1328. 112 | pub(crate) struct DeviceConfig {
  1329. | ^^^^^^^^^^^^
  1330. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1331. --> rust/kernel/configfs.rs:680:16
  1332. |
  1333. 680 | type Data: Sync;
  1334. | ^^^^ required by this bound in `AttributeOperations::Data`
  1335.  
  1336. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  1337. --> drivers/block/rnull/configfs.rs:168:17
  1338. |
  1339. 168 | type Data = DeviceConfig;
  1340. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  1341. |
  1342. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1343. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1344. --> rust/kernel/types.rs:332:12
  1345. |
  1346. 332 | pub struct Opaque<T> {
  1347. | ^^^^^^
  1348. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1349. --> rust/kernel/block/mq/tag_set.rs:28:12
  1350. |
  1351. 28 | pub struct TagSet<T: Operations> {
  1352. | ^^^^^^
  1353. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1354. = note: 1 redundant requirement hidden
  1355. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1356. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1357. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1358. |
  1359. 598 | pub enum Option<T> {
  1360. | ^^^^^^
  1361. note: required because it appears within the type `DeviceConfigInner`
  1362. --> drivers/block/rnull/configfs.rs:118:8
  1363. |
  1364. 118 | struct DeviceConfigInner {
  1365. | ^^^^^^^^^^^^^^^^^
  1366. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1367. note: required because it appears within the type `DeviceConfig`
  1368. --> drivers/block/rnull/configfs.rs:112:19
  1369. |
  1370. 112 | pub(crate) struct DeviceConfig {
  1371. | ^^^^^^^^^^^^
  1372. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1373. --> rust/kernel/configfs.rs:680:16
  1374. |
  1375. 680 | type Data: Sync;
  1376. | ^^^^ required by this bound in `AttributeOperations::Data`
  1377.  
  1378. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  1379. --> drivers/block/rnull/configfs.rs:168:17
  1380. |
  1381. 168 | type Data = DeviceConfig;
  1382. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  1383. |
  1384. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  1385. note: required because it appears within the type `blk_mq_tag_set`
  1386. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1387. |
  1388. 93768 | pub struct blk_mq_tag_set {
  1389. | ^^^^^^^^^^^^^^
  1390. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1391. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1392. |
  1393. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1394. | ^^^^^^^^^^^^^
  1395. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1396. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1397. |
  1398. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1399. | ^^^^^^^^^^^^
  1400. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1401. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1402. |
  1403. 355 | pub union MaybeUninit<T> {
  1404. | ^^^^^^^^^^^
  1405. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1406. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1407. |
  1408. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1409. | ^^^^^^^^^^
  1410. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1411. --> rust/kernel/types.rs:332:12
  1412. |
  1413. 332 | pub struct Opaque<T> {
  1414. | ^^^^^^
  1415. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1416. --> rust/kernel/block/mq/tag_set.rs:28:12
  1417. |
  1418. 28 | pub struct TagSet<T: Operations> {
  1419. | ^^^^^^
  1420. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1421. = note: 1 redundant requirement hidden
  1422. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1423. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1424. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1425. |
  1426. 598 | pub enum Option<T> {
  1427. | ^^^^^^
  1428. note: required because it appears within the type `DeviceConfigInner`
  1429. --> drivers/block/rnull/configfs.rs:118:8
  1430. |
  1431. 118 | struct DeviceConfigInner {
  1432. | ^^^^^^^^^^^^^^^^^
  1433. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1434. note: required because it appears within the type `DeviceConfig`
  1435. --> drivers/block/rnull/configfs.rs:112:19
  1436. |
  1437. 112 | pub(crate) struct DeviceConfig {
  1438. | ^^^^^^^^^^^^
  1439. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1440. --> rust/kernel/configfs.rs:680:16
  1441. |
  1442. 680 | type Data: Sync;
  1443. | ^^^^ required by this bound in `AttributeOperations::Data`
  1444.  
  1445. error[E0277]: `*mut c_void` cannot be sent between threads safely
  1446. --> drivers/block/rnull/configfs.rs:168:17
  1447. |
  1448. 168 | type Data = DeviceConfig;
  1449. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  1450. |
  1451. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  1452. note: required because it appears within the type `blk_mq_tag_set`
  1453. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1454. |
  1455. 93768 | pub struct blk_mq_tag_set {
  1456. | ^^^^^^^^^^^^^^
  1457. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1458. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1459. |
  1460. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1461. | ^^^^^^^^^^^^^
  1462. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1463. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1464. |
  1465. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1466. | ^^^^^^^^^^^^
  1467. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1468. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1469. |
  1470. 355 | pub union MaybeUninit<T> {
  1471. | ^^^^^^^^^^^
  1472. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1473. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1474. |
  1475. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1476. | ^^^^^^^^^^
  1477. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1478. --> rust/kernel/types.rs:332:12
  1479. |
  1480. 332 | pub struct Opaque<T> {
  1481. | ^^^^^^
  1482. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1483. --> rust/kernel/block/mq/tag_set.rs:28:12
  1484. |
  1485. 28 | pub struct TagSet<T: Operations> {
  1486. | ^^^^^^
  1487. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1488. = note: 1 redundant requirement hidden
  1489. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1490. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1491. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1492. |
  1493. 598 | pub enum Option<T> {
  1494. | ^^^^^^
  1495. note: required because it appears within the type `DeviceConfigInner`
  1496. --> drivers/block/rnull/configfs.rs:118:8
  1497. |
  1498. 118 | struct DeviceConfigInner {
  1499. | ^^^^^^^^^^^^^^^^^
  1500. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1501. note: required because it appears within the type `DeviceConfig`
  1502. --> drivers/block/rnull/configfs.rs:112:19
  1503. |
  1504. 112 | pub(crate) struct DeviceConfig {
  1505. | ^^^^^^^^^^^^
  1506. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1507. --> rust/kernel/configfs.rs:680:16
  1508. |
  1509. 680 | type Data: Sync;
  1510. | ^^^^ required by this bound in `AttributeOperations::Data`
  1511.  
  1512. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  1513. --> drivers/block/rnull/configfs.rs:168:17
  1514. |
  1515. 168 | type Data = DeviceConfig;
  1516. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  1517. |
  1518. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  1519. note: required because it appears within the type `blk_mq_tag_set`
  1520. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1521. |
  1522. 93768 | pub struct blk_mq_tag_set {
  1523. | ^^^^^^^^^^^^^^
  1524. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1525. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1526. |
  1527. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1528. | ^^^^^^^^^^^^^
  1529. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1530. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1531. |
  1532. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1533. | ^^^^^^^^^^^^
  1534. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1535. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1536. |
  1537. 355 | pub union MaybeUninit<T> {
  1538. | ^^^^^^^^^^^
  1539. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1540. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1541. |
  1542. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1543. | ^^^^^^^^^^
  1544. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1545. --> rust/kernel/types.rs:332:12
  1546. |
  1547. 332 | pub struct Opaque<T> {
  1548. | ^^^^^^
  1549. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1550. --> rust/kernel/block/mq/tag_set.rs:28:12
  1551. |
  1552. 28 | pub struct TagSet<T: Operations> {
  1553. | ^^^^^^
  1554. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1555. = note: 1 redundant requirement hidden
  1556. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1557. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1558. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1559. |
  1560. 598 | pub enum Option<T> {
  1561. | ^^^^^^
  1562. note: required because it appears within the type `DeviceConfigInner`
  1563. --> drivers/block/rnull/configfs.rs:118:8
  1564. |
  1565. 118 | struct DeviceConfigInner {
  1566. | ^^^^^^^^^^^^^^^^^
  1567. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1568. note: required because it appears within the type `DeviceConfig`
  1569. --> drivers/block/rnull/configfs.rs:112:19
  1570. |
  1571. 112 | pub(crate) struct DeviceConfig {
  1572. | ^^^^^^^^^^^^
  1573. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1574. --> rust/kernel/configfs.rs:680:16
  1575. |
  1576. 680 | type Data: Sync;
  1577. | ^^^^ required by this bound in `AttributeOperations::Data`
  1578.  
  1579. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  1580. --> drivers/block/rnull/configfs.rs:168:17
  1581. |
  1582. 168 | type Data = DeviceConfig;
  1583. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  1584. |
  1585. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  1586. note: required because it appears within the type `blk_mq_tag_set`
  1587. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1588. |
  1589. 93768 | pub struct blk_mq_tag_set {
  1590. | ^^^^^^^^^^^^^^
  1591. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1592. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1593. |
  1594. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1595. | ^^^^^^^^^^^^^
  1596. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1597. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1598. |
  1599. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1600. | ^^^^^^^^^^^^
  1601. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1602. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1603. |
  1604. 355 | pub union MaybeUninit<T> {
  1605. | ^^^^^^^^^^^
  1606. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1607. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1608. |
  1609. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1610. | ^^^^^^^^^^
  1611. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1612. --> rust/kernel/types.rs:332:12
  1613. |
  1614. 332 | pub struct Opaque<T> {
  1615. | ^^^^^^
  1616. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1617. --> rust/kernel/block/mq/tag_set.rs:28:12
  1618. |
  1619. 28 | pub struct TagSet<T: Operations> {
  1620. | ^^^^^^
  1621. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1622. = note: 1 redundant requirement hidden
  1623. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1624. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1625. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1626. |
  1627. 598 | pub enum Option<T> {
  1628. | ^^^^^^
  1629. note: required because it appears within the type `DeviceConfigInner`
  1630. --> drivers/block/rnull/configfs.rs:118:8
  1631. |
  1632. 118 | struct DeviceConfigInner {
  1633. | ^^^^^^^^^^^^^^^^^
  1634. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1635. note: required because it appears within the type `DeviceConfig`
  1636. --> drivers/block/rnull/configfs.rs:112:19
  1637. |
  1638. 112 | pub(crate) struct DeviceConfig {
  1639. | ^^^^^^^^^^^^
  1640. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1641. --> rust/kernel/configfs.rs:680:16
  1642. |
  1643. 680 | type Data: Sync;
  1644. | ^^^^ required by this bound in `AttributeOperations::Data`
  1645.  
  1646. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  1647. --> drivers/block/rnull/configfs.rs:168:17
  1648. |
  1649. 168 | type Data = DeviceConfig;
  1650. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  1651. |
  1652. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  1653. note: required because it appears within the type `blk_mq_tag_set`
  1654. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1655. |
  1656. 93768 | pub struct blk_mq_tag_set {
  1657. | ^^^^^^^^^^^^^^
  1658. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1659. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1660. |
  1661. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1662. | ^^^^^^^^^^^^^
  1663. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1664. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1665. |
  1666. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1667. | ^^^^^^^^^^^^
  1668. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1669. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1670. |
  1671. 355 | pub union MaybeUninit<T> {
  1672. | ^^^^^^^^^^^
  1673. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1674. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1675. |
  1676. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1677. | ^^^^^^^^^^
  1678. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1679. --> rust/kernel/types.rs:332:12
  1680. |
  1681. 332 | pub struct Opaque<T> {
  1682. | ^^^^^^
  1683. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1684. --> rust/kernel/block/mq/tag_set.rs:28:12
  1685. |
  1686. 28 | pub struct TagSet<T: Operations> {
  1687. | ^^^^^^
  1688. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1689. = note: 1 redundant requirement hidden
  1690. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1691. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1692. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1693. |
  1694. 598 | pub enum Option<T> {
  1695. | ^^^^^^
  1696. note: required because it appears within the type `DeviceConfigInner`
  1697. --> drivers/block/rnull/configfs.rs:118:8
  1698. |
  1699. 118 | struct DeviceConfigInner {
  1700. | ^^^^^^^^^^^^^^^^^
  1701. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1702. note: required because it appears within the type `DeviceConfig`
  1703. --> drivers/block/rnull/configfs.rs:112:19
  1704. |
  1705. 112 | pub(crate) struct DeviceConfig {
  1706. | ^^^^^^^^^^^^
  1707. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1708. --> rust/kernel/configfs.rs:680:16
  1709. |
  1710. 680 | type Data: Sync;
  1711. | ^^^^ required by this bound in `AttributeOperations::Data`
  1712.  
  1713. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  1714. --> drivers/block/rnull/configfs.rs:168:17
  1715. |
  1716. 168 | type Data = DeviceConfig;
  1717. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  1718. |
  1719. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  1720. note: required because it appears within the type `bindings::bindings_raw::mutex`
  1721. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  1722. |
  1723. 35653 | pub struct mutex {
  1724. | ^^^^^
  1725. note: required because it appears within the type `blk_mq_tag_set`
  1726. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1727. |
  1728. 93768 | pub struct blk_mq_tag_set {
  1729. | ^^^^^^^^^^^^^^
  1730. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1731. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1732. |
  1733. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1734. | ^^^^^^^^^^^^^
  1735. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1736. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1737. |
  1738. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1739. | ^^^^^^^^^^^^
  1740. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1741. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1742. |
  1743. 355 | pub union MaybeUninit<T> {
  1744. | ^^^^^^^^^^^
  1745. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1746. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1747. |
  1748. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1749. | ^^^^^^^^^^
  1750. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1751. --> rust/kernel/types.rs:332:12
  1752. |
  1753. 332 | pub struct Opaque<T> {
  1754. | ^^^^^^
  1755. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1756. --> rust/kernel/block/mq/tag_set.rs:28:12
  1757. |
  1758. 28 | pub struct TagSet<T: Operations> {
  1759. | ^^^^^^
  1760. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1761. = note: 1 redundant requirement hidden
  1762. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1763. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1764. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1765. |
  1766. 598 | pub enum Option<T> {
  1767. | ^^^^^^
  1768. note: required because it appears within the type `DeviceConfigInner`
  1769. --> drivers/block/rnull/configfs.rs:118:8
  1770. |
  1771. 118 | struct DeviceConfigInner {
  1772. | ^^^^^^^^^^^^^^^^^
  1773. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1774. note: required because it appears within the type `DeviceConfig`
  1775. --> drivers/block/rnull/configfs.rs:112:19
  1776. |
  1777. 112 | pub(crate) struct DeviceConfig {
  1778. | ^^^^^^^^^^^^
  1779. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1780. --> rust/kernel/configfs.rs:680:16
  1781. |
  1782. 680 | type Data: Sync;
  1783. | ^^^^ required by this bound in `AttributeOperations::Data`
  1784.  
  1785. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  1786. --> drivers/block/rnull/configfs.rs:168:17
  1787. |
  1788. 168 | type Data = DeviceConfig;
  1789. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  1790. |
  1791. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  1792. note: required because it appears within the type `bindings::bindings_raw::list_head`
  1793. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  1794. |
  1795. 28151 | pub struct list_head {
  1796. | ^^^^^^^^^
  1797. note: required because it appears within the type `blk_mq_tag_set`
  1798. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1799. |
  1800. 93768 | pub struct blk_mq_tag_set {
  1801. | ^^^^^^^^^^^^^^
  1802. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1803. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1804. |
  1805. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1806. | ^^^^^^^^^^^^^
  1807. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1808. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1809. |
  1810. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1811. | ^^^^^^^^^^^^
  1812. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1813. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1814. |
  1815. 355 | pub union MaybeUninit<T> {
  1816. | ^^^^^^^^^^^
  1817. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1818. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1819. |
  1820. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1821. | ^^^^^^^^^^
  1822. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1823. --> rust/kernel/types.rs:332:12
  1824. |
  1825. 332 | pub struct Opaque<T> {
  1826. | ^^^^^^
  1827. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1828. --> rust/kernel/block/mq/tag_set.rs:28:12
  1829. |
  1830. 28 | pub struct TagSet<T: Operations> {
  1831. | ^^^^^^
  1832. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1833. = note: 1 redundant requirement hidden
  1834. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1835. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1836. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1837. |
  1838. 598 | pub enum Option<T> {
  1839. | ^^^^^^
  1840. note: required because it appears within the type `DeviceConfigInner`
  1841. --> drivers/block/rnull/configfs.rs:118:8
  1842. |
  1843. 118 | struct DeviceConfigInner {
  1844. | ^^^^^^^^^^^^^^^^^
  1845. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1846. note: required because it appears within the type `DeviceConfig`
  1847. --> drivers/block/rnull/configfs.rs:112:19
  1848. |
  1849. 112 | pub(crate) struct DeviceConfig {
  1850. | ^^^^^^^^^^^^
  1851. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1852. --> rust/kernel/configfs.rs:680:16
  1853. |
  1854. 680 | type Data: Sync;
  1855. | ^^^^ required by this bound in `AttributeOperations::Data`
  1856.  
  1857. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  1858. --> drivers/block/rnull/configfs.rs:168:17
  1859. |
  1860. 168 | type Data = DeviceConfig;
  1861. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  1862. |
  1863. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  1864. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  1865. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  1866. |
  1867. 40479 | pub struct rw_semaphore {
  1868. | ^^^^^^^^^^^^
  1869. note: required because it appears within the type `blk_mq_tag_set`
  1870. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1871. |
  1872. 93768 | pub struct blk_mq_tag_set {
  1873. | ^^^^^^^^^^^^^^
  1874. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1875. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1876. |
  1877. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1878. | ^^^^^^^^^^^^^
  1879. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1880. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1881. |
  1882. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1883. | ^^^^^^^^^^^^
  1884. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1885. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1886. |
  1887. 355 | pub union MaybeUninit<T> {
  1888. | ^^^^^^^^^^^
  1889. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1890. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1891. |
  1892. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1893. | ^^^^^^^^^^
  1894. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1895. --> rust/kernel/types.rs:332:12
  1896. |
  1897. 332 | pub struct Opaque<T> {
  1898. | ^^^^^^
  1899. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1900. --> rust/kernel/block/mq/tag_set.rs:28:12
  1901. |
  1902. 28 | pub struct TagSet<T: Operations> {
  1903. | ^^^^^^
  1904. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1905. = note: 1 redundant requirement hidden
  1906. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1907. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1908. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1909. |
  1910. 598 | pub enum Option<T> {
  1911. | ^^^^^^
  1912. note: required because it appears within the type `DeviceConfigInner`
  1913. --> drivers/block/rnull/configfs.rs:118:8
  1914. |
  1915. 118 | struct DeviceConfigInner {
  1916. | ^^^^^^^^^^^^^^^^^
  1917. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1918. note: required because it appears within the type `DeviceConfig`
  1919. --> drivers/block/rnull/configfs.rs:112:19
  1920. |
  1921. 112 | pub(crate) struct DeviceConfig {
  1922. | ^^^^^^^^^^^^
  1923. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1924. --> rust/kernel/configfs.rs:680:16
  1925. |
  1926. 680 | type Data: Sync;
  1927. | ^^^^ required by this bound in `AttributeOperations::Data`
  1928.  
  1929. error[E0277]: `*mut u32` cannot be sent between threads safely
  1930. --> drivers/block/rnull/configfs.rs:168:17
  1931. |
  1932. 168 | type Data = DeviceConfig;
  1933. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  1934. |
  1935. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  1936. note: required because it appears within the type `blk_mq_queue_map`
  1937. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  1938. |
  1939. 93747 | pub struct blk_mq_queue_map {
  1940. | ^^^^^^^^^^^^^^^^
  1941. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  1942. note: required because it appears within the type `blk_mq_tag_set`
  1943. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  1944. |
  1945. 93768 | pub struct blk_mq_tag_set {
  1946. | ^^^^^^^^^^^^^^
  1947. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  1948. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  1949. |
  1950. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  1951. | ^^^^^^^^^^^^^
  1952. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  1953. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  1954. |
  1955. 158 | pub struct ManuallyDrop<T: ?Sized> {
  1956. | ^^^^^^^^^^^^
  1957. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  1958. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  1959. |
  1960. 355 | pub union MaybeUninit<T> {
  1961. | ^^^^^^^^^^^
  1962. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  1963. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  1964. |
  1965. 2323 | pub struct UnsafeCell<T: ?Sized> {
  1966. | ^^^^^^^^^^
  1967. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  1968. --> rust/kernel/types.rs:332:12
  1969. |
  1970. 332 | pub struct Opaque<T> {
  1971. | ^^^^^^
  1972. note: required because it appears within the type `TagSet<NullBlkDevice>`
  1973. --> rust/kernel/block/mq/tag_set.rs:28:12
  1974. |
  1975. 28 | pub struct TagSet<T: Operations> {
  1976. | ^^^^^^
  1977. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  1978. = note: 1 redundant requirement hidden
  1979. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  1980. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  1981. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  1982. |
  1983. 598 | pub enum Option<T> {
  1984. | ^^^^^^
  1985. note: required because it appears within the type `DeviceConfigInner`
  1986. --> drivers/block/rnull/configfs.rs:118:8
  1987. |
  1988. 118 | struct DeviceConfigInner {
  1989. | ^^^^^^^^^^^^^^^^^
  1990. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  1991. note: required because it appears within the type `DeviceConfig`
  1992. --> drivers/block/rnull/configfs.rs:112:19
  1993. |
  1994. 112 | pub(crate) struct DeviceConfig {
  1995. | ^^^^^^^^^^^^
  1996. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  1997. --> rust/kernel/configfs.rs:680:16
  1998. |
  1999. 680 | type Data: Sync;
  2000. | ^^^^ required by this bound in `AttributeOperations::Data`
  2001.  
  2002. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  2003. --> drivers/block/rnull/configfs.rs:192:17
  2004. |
  2005. 192 | type Data = DeviceConfig;
  2006. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  2007. |
  2008. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2009. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2010. --> rust/kernel/types.rs:332:12
  2011. |
  2012. 332 | pub struct Opaque<T> {
  2013. | ^^^^^^
  2014. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2015. --> rust/kernel/block/mq/tag_set.rs:28:12
  2016. |
  2017. 28 | pub struct TagSet<T: Operations> {
  2018. | ^^^^^^
  2019. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2020. = note: 1 redundant requirement hidden
  2021. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2022. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2023. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2024. |
  2025. 598 | pub enum Option<T> {
  2026. | ^^^^^^
  2027. note: required because it appears within the type `DeviceConfigInner`
  2028. --> drivers/block/rnull/configfs.rs:118:8
  2029. |
  2030. 118 | struct DeviceConfigInner {
  2031. | ^^^^^^^^^^^^^^^^^
  2032. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2033. note: required because it appears within the type `DeviceConfig`
  2034. --> drivers/block/rnull/configfs.rs:112:19
  2035. |
  2036. 112 | pub(crate) struct DeviceConfig {
  2037. | ^^^^^^^^^^^^
  2038. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2039. --> rust/kernel/configfs.rs:680:16
  2040. |
  2041. 680 | type Data: Sync;
  2042. | ^^^^ required by this bound in `AttributeOperations::Data`
  2043.  
  2044. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  2045. --> drivers/block/rnull/configfs.rs:192:17
  2046. |
  2047. 192 | type Data = DeviceConfig;
  2048. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  2049. |
  2050. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  2051. note: required because it appears within the type `blk_mq_tag_set`
  2052. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2053. |
  2054. 93768 | pub struct blk_mq_tag_set {
  2055. | ^^^^^^^^^^^^^^
  2056. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2057. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2058. |
  2059. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2060. | ^^^^^^^^^^^^^
  2061. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2062. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2063. |
  2064. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2065. | ^^^^^^^^^^^^
  2066. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2067. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2068. |
  2069. 355 | pub union MaybeUninit<T> {
  2070. | ^^^^^^^^^^^
  2071. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2072. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2073. |
  2074. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2075. | ^^^^^^^^^^
  2076. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2077. --> rust/kernel/types.rs:332:12
  2078. |
  2079. 332 | pub struct Opaque<T> {
  2080. | ^^^^^^
  2081. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2082. --> rust/kernel/block/mq/tag_set.rs:28:12
  2083. |
  2084. 28 | pub struct TagSet<T: Operations> {
  2085. | ^^^^^^
  2086. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2087. = note: 1 redundant requirement hidden
  2088. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2089. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2090. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2091. |
  2092. 598 | pub enum Option<T> {
  2093. | ^^^^^^
  2094. note: required because it appears within the type `DeviceConfigInner`
  2095. --> drivers/block/rnull/configfs.rs:118:8
  2096. |
  2097. 118 | struct DeviceConfigInner {
  2098. | ^^^^^^^^^^^^^^^^^
  2099. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2100. note: required because it appears within the type `DeviceConfig`
  2101. --> drivers/block/rnull/configfs.rs:112:19
  2102. |
  2103. 112 | pub(crate) struct DeviceConfig {
  2104. | ^^^^^^^^^^^^
  2105. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2106. --> rust/kernel/configfs.rs:680:16
  2107. |
  2108. 680 | type Data: Sync;
  2109. | ^^^^ required by this bound in `AttributeOperations::Data`
  2110.  
  2111. error[E0277]: `*mut c_void` cannot be sent between threads safely
  2112. --> drivers/block/rnull/configfs.rs:192:17
  2113. |
  2114. 192 | type Data = DeviceConfig;
  2115. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  2116. |
  2117. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  2118. note: required because it appears within the type `blk_mq_tag_set`
  2119. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2120. |
  2121. 93768 | pub struct blk_mq_tag_set {
  2122. | ^^^^^^^^^^^^^^
  2123. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2124. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2125. |
  2126. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2127. | ^^^^^^^^^^^^^
  2128. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2129. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2130. |
  2131. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2132. | ^^^^^^^^^^^^
  2133. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2134. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2135. |
  2136. 355 | pub union MaybeUninit<T> {
  2137. | ^^^^^^^^^^^
  2138. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2139. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2140. |
  2141. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2142. | ^^^^^^^^^^
  2143. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2144. --> rust/kernel/types.rs:332:12
  2145. |
  2146. 332 | pub struct Opaque<T> {
  2147. | ^^^^^^
  2148. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2149. --> rust/kernel/block/mq/tag_set.rs:28:12
  2150. |
  2151. 28 | pub struct TagSet<T: Operations> {
  2152. | ^^^^^^
  2153. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2154. = note: 1 redundant requirement hidden
  2155. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2156. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2157. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2158. |
  2159. 598 | pub enum Option<T> {
  2160. | ^^^^^^
  2161. note: required because it appears within the type `DeviceConfigInner`
  2162. --> drivers/block/rnull/configfs.rs:118:8
  2163. |
  2164. 118 | struct DeviceConfigInner {
  2165. | ^^^^^^^^^^^^^^^^^
  2166. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2167. note: required because it appears within the type `DeviceConfig`
  2168. --> drivers/block/rnull/configfs.rs:112:19
  2169. |
  2170. 112 | pub(crate) struct DeviceConfig {
  2171. | ^^^^^^^^^^^^
  2172. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2173. --> rust/kernel/configfs.rs:680:16
  2174. |
  2175. 680 | type Data: Sync;
  2176. | ^^^^ required by this bound in `AttributeOperations::Data`
  2177.  
  2178. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  2179. --> drivers/block/rnull/configfs.rs:192:17
  2180. |
  2181. 192 | type Data = DeviceConfig;
  2182. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  2183. |
  2184. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  2185. note: required because it appears within the type `blk_mq_tag_set`
  2186. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2187. |
  2188. 93768 | pub struct blk_mq_tag_set {
  2189. | ^^^^^^^^^^^^^^
  2190. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2191. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2192. |
  2193. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2194. | ^^^^^^^^^^^^^
  2195. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2196. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2197. |
  2198. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2199. | ^^^^^^^^^^^^
  2200. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2201. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2202. |
  2203. 355 | pub union MaybeUninit<T> {
  2204. | ^^^^^^^^^^^
  2205. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2206. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2207. |
  2208. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2209. | ^^^^^^^^^^
  2210. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2211. --> rust/kernel/types.rs:332:12
  2212. |
  2213. 332 | pub struct Opaque<T> {
  2214. | ^^^^^^
  2215. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2216. --> rust/kernel/block/mq/tag_set.rs:28:12
  2217. |
  2218. 28 | pub struct TagSet<T: Operations> {
  2219. | ^^^^^^
  2220. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2221. = note: 1 redundant requirement hidden
  2222. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2223. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2224. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2225. |
  2226. 598 | pub enum Option<T> {
  2227. | ^^^^^^
  2228. note: required because it appears within the type `DeviceConfigInner`
  2229. --> drivers/block/rnull/configfs.rs:118:8
  2230. |
  2231. 118 | struct DeviceConfigInner {
  2232. | ^^^^^^^^^^^^^^^^^
  2233. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2234. note: required because it appears within the type `DeviceConfig`
  2235. --> drivers/block/rnull/configfs.rs:112:19
  2236. |
  2237. 112 | pub(crate) struct DeviceConfig {
  2238. | ^^^^^^^^^^^^
  2239. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2240. --> rust/kernel/configfs.rs:680:16
  2241. |
  2242. 680 | type Data: Sync;
  2243. | ^^^^ required by this bound in `AttributeOperations::Data`
  2244.  
  2245. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  2246. --> drivers/block/rnull/configfs.rs:192:17
  2247. |
  2248. 192 | type Data = DeviceConfig;
  2249. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  2250. |
  2251. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  2252. note: required because it appears within the type `blk_mq_tag_set`
  2253. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2254. |
  2255. 93768 | pub struct blk_mq_tag_set {
  2256. | ^^^^^^^^^^^^^^
  2257. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2258. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2259. |
  2260. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2261. | ^^^^^^^^^^^^^
  2262. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2263. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2264. |
  2265. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2266. | ^^^^^^^^^^^^
  2267. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2268. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2269. |
  2270. 355 | pub union MaybeUninit<T> {
  2271. | ^^^^^^^^^^^
  2272. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2273. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2274. |
  2275. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2276. | ^^^^^^^^^^
  2277. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2278. --> rust/kernel/types.rs:332:12
  2279. |
  2280. 332 | pub struct Opaque<T> {
  2281. | ^^^^^^
  2282. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2283. --> rust/kernel/block/mq/tag_set.rs:28:12
  2284. |
  2285. 28 | pub struct TagSet<T: Operations> {
  2286. | ^^^^^^
  2287. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2288. = note: 1 redundant requirement hidden
  2289. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2290. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2291. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2292. |
  2293. 598 | pub enum Option<T> {
  2294. | ^^^^^^
  2295. note: required because it appears within the type `DeviceConfigInner`
  2296. --> drivers/block/rnull/configfs.rs:118:8
  2297. |
  2298. 118 | struct DeviceConfigInner {
  2299. | ^^^^^^^^^^^^^^^^^
  2300. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2301. note: required because it appears within the type `DeviceConfig`
  2302. --> drivers/block/rnull/configfs.rs:112:19
  2303. |
  2304. 112 | pub(crate) struct DeviceConfig {
  2305. | ^^^^^^^^^^^^
  2306. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2307. --> rust/kernel/configfs.rs:680:16
  2308. |
  2309. 680 | type Data: Sync;
  2310. | ^^^^ required by this bound in `AttributeOperations::Data`
  2311.  
  2312. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  2313. --> drivers/block/rnull/configfs.rs:192:17
  2314. |
  2315. 192 | type Data = DeviceConfig;
  2316. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  2317. |
  2318. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  2319. note: required because it appears within the type `blk_mq_tag_set`
  2320. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2321. |
  2322. 93768 | pub struct blk_mq_tag_set {
  2323. | ^^^^^^^^^^^^^^
  2324. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2325. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2326. |
  2327. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2328. | ^^^^^^^^^^^^^
  2329. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2330. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2331. |
  2332. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2333. | ^^^^^^^^^^^^
  2334. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2335. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2336. |
  2337. 355 | pub union MaybeUninit<T> {
  2338. | ^^^^^^^^^^^
  2339. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2340. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2341. |
  2342. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2343. | ^^^^^^^^^^
  2344. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2345. --> rust/kernel/types.rs:332:12
  2346. |
  2347. 332 | pub struct Opaque<T> {
  2348. | ^^^^^^
  2349. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2350. --> rust/kernel/block/mq/tag_set.rs:28:12
  2351. |
  2352. 28 | pub struct TagSet<T: Operations> {
  2353. | ^^^^^^
  2354. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2355. = note: 1 redundant requirement hidden
  2356. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2357. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2358. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2359. |
  2360. 598 | pub enum Option<T> {
  2361. | ^^^^^^
  2362. note: required because it appears within the type `DeviceConfigInner`
  2363. --> drivers/block/rnull/configfs.rs:118:8
  2364. |
  2365. 118 | struct DeviceConfigInner {
  2366. | ^^^^^^^^^^^^^^^^^
  2367. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2368. note: required because it appears within the type `DeviceConfig`
  2369. --> drivers/block/rnull/configfs.rs:112:19
  2370. |
  2371. 112 | pub(crate) struct DeviceConfig {
  2372. | ^^^^^^^^^^^^
  2373. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2374. --> rust/kernel/configfs.rs:680:16
  2375. |
  2376. 680 | type Data: Sync;
  2377. | ^^^^ required by this bound in `AttributeOperations::Data`
  2378.  
  2379. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  2380. --> drivers/block/rnull/configfs.rs:192:17
  2381. |
  2382. 192 | type Data = DeviceConfig;
  2383. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  2384. |
  2385. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  2386. note: required because it appears within the type `bindings::bindings_raw::mutex`
  2387. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  2388. |
  2389. 35653 | pub struct mutex {
  2390. | ^^^^^
  2391. note: required because it appears within the type `blk_mq_tag_set`
  2392. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2393. |
  2394. 93768 | pub struct blk_mq_tag_set {
  2395. | ^^^^^^^^^^^^^^
  2396. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2397. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2398. |
  2399. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2400. | ^^^^^^^^^^^^^
  2401. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2402. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2403. |
  2404. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2405. | ^^^^^^^^^^^^
  2406. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2407. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2408. |
  2409. 355 | pub union MaybeUninit<T> {
  2410. | ^^^^^^^^^^^
  2411. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2412. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2413. |
  2414. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2415. | ^^^^^^^^^^
  2416. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2417. --> rust/kernel/types.rs:332:12
  2418. |
  2419. 332 | pub struct Opaque<T> {
  2420. | ^^^^^^
  2421. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2422. --> rust/kernel/block/mq/tag_set.rs:28:12
  2423. |
  2424. 28 | pub struct TagSet<T: Operations> {
  2425. | ^^^^^^
  2426. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2427. = note: 1 redundant requirement hidden
  2428. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2429. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2430. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2431. |
  2432. 598 | pub enum Option<T> {
  2433. | ^^^^^^
  2434. note: required because it appears within the type `DeviceConfigInner`
  2435. --> drivers/block/rnull/configfs.rs:118:8
  2436. |
  2437. 118 | struct DeviceConfigInner {
  2438. | ^^^^^^^^^^^^^^^^^
  2439. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2440. note: required because it appears within the type `DeviceConfig`
  2441. --> drivers/block/rnull/configfs.rs:112:19
  2442. |
  2443. 112 | pub(crate) struct DeviceConfig {
  2444. | ^^^^^^^^^^^^
  2445. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2446. --> rust/kernel/configfs.rs:680:16
  2447. |
  2448. 680 | type Data: Sync;
  2449. | ^^^^ required by this bound in `AttributeOperations::Data`
  2450.  
  2451. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  2452. --> drivers/block/rnull/configfs.rs:192:17
  2453. |
  2454. 192 | type Data = DeviceConfig;
  2455. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  2456. |
  2457. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  2458. note: required because it appears within the type `bindings::bindings_raw::list_head`
  2459. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  2460. |
  2461. 28151 | pub struct list_head {
  2462. | ^^^^^^^^^
  2463. note: required because it appears within the type `blk_mq_tag_set`
  2464. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2465. |
  2466. 93768 | pub struct blk_mq_tag_set {
  2467. | ^^^^^^^^^^^^^^
  2468. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2469. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2470. |
  2471. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2472. | ^^^^^^^^^^^^^
  2473. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2474. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2475. |
  2476. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2477. | ^^^^^^^^^^^^
  2478. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2479. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2480. |
  2481. 355 | pub union MaybeUninit<T> {
  2482. | ^^^^^^^^^^^
  2483. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2484. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2485. |
  2486. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2487. | ^^^^^^^^^^
  2488. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2489. --> rust/kernel/types.rs:332:12
  2490. |
  2491. 332 | pub struct Opaque<T> {
  2492. | ^^^^^^
  2493. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2494. --> rust/kernel/block/mq/tag_set.rs:28:12
  2495. |
  2496. 28 | pub struct TagSet<T: Operations> {
  2497. | ^^^^^^
  2498. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2499. = note: 1 redundant requirement hidden
  2500. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2501. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2502. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2503. |
  2504. 598 | pub enum Option<T> {
  2505. | ^^^^^^
  2506. note: required because it appears within the type `DeviceConfigInner`
  2507. --> drivers/block/rnull/configfs.rs:118:8
  2508. |
  2509. 118 | struct DeviceConfigInner {
  2510. | ^^^^^^^^^^^^^^^^^
  2511. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2512. note: required because it appears within the type `DeviceConfig`
  2513. --> drivers/block/rnull/configfs.rs:112:19
  2514. |
  2515. 112 | pub(crate) struct DeviceConfig {
  2516. | ^^^^^^^^^^^^
  2517. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2518. --> rust/kernel/configfs.rs:680:16
  2519. |
  2520. 680 | type Data: Sync;
  2521. | ^^^^ required by this bound in `AttributeOperations::Data`
  2522.  
  2523. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  2524. --> drivers/block/rnull/configfs.rs:192:17
  2525. |
  2526. 192 | type Data = DeviceConfig;
  2527. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  2528. |
  2529. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  2530. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  2531. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  2532. |
  2533. 40479 | pub struct rw_semaphore {
  2534. | ^^^^^^^^^^^^
  2535. note: required because it appears within the type `blk_mq_tag_set`
  2536. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2537. |
  2538. 93768 | pub struct blk_mq_tag_set {
  2539. | ^^^^^^^^^^^^^^
  2540. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2541. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2542. |
  2543. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2544. | ^^^^^^^^^^^^^
  2545. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2546. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2547. |
  2548. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2549. | ^^^^^^^^^^^^
  2550. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2551. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2552. |
  2553. 355 | pub union MaybeUninit<T> {
  2554. | ^^^^^^^^^^^
  2555. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2556. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2557. |
  2558. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2559. | ^^^^^^^^^^
  2560. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2561. --> rust/kernel/types.rs:332:12
  2562. |
  2563. 332 | pub struct Opaque<T> {
  2564. | ^^^^^^
  2565. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2566. --> rust/kernel/block/mq/tag_set.rs:28:12
  2567. |
  2568. 28 | pub struct TagSet<T: Operations> {
  2569. | ^^^^^^
  2570. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2571. = note: 1 redundant requirement hidden
  2572. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2573. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2574. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2575. |
  2576. 598 | pub enum Option<T> {
  2577. | ^^^^^^
  2578. note: required because it appears within the type `DeviceConfigInner`
  2579. --> drivers/block/rnull/configfs.rs:118:8
  2580. |
  2581. 118 | struct DeviceConfigInner {
  2582. | ^^^^^^^^^^^^^^^^^
  2583. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2584. note: required because it appears within the type `DeviceConfig`
  2585. --> drivers/block/rnull/configfs.rs:112:19
  2586. |
  2587. 112 | pub(crate) struct DeviceConfig {
  2588. | ^^^^^^^^^^^^
  2589. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2590. --> rust/kernel/configfs.rs:680:16
  2591. |
  2592. 680 | type Data: Sync;
  2593. | ^^^^ required by this bound in `AttributeOperations::Data`
  2594.  
  2595. error[E0277]: `*mut u32` cannot be sent between threads safely
  2596. --> drivers/block/rnull/configfs.rs:192:17
  2597. |
  2598. 192 | type Data = DeviceConfig;
  2599. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  2600. |
  2601. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  2602. note: required because it appears within the type `blk_mq_queue_map`
  2603. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  2604. |
  2605. 93747 | pub struct blk_mq_queue_map {
  2606. | ^^^^^^^^^^^^^^^^
  2607. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  2608. note: required because it appears within the type `blk_mq_tag_set`
  2609. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2610. |
  2611. 93768 | pub struct blk_mq_tag_set {
  2612. | ^^^^^^^^^^^^^^
  2613. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2614. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2615. |
  2616. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2617. | ^^^^^^^^^^^^^
  2618. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2619. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2620. |
  2621. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2622. | ^^^^^^^^^^^^
  2623. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2624. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2625. |
  2626. 355 | pub union MaybeUninit<T> {
  2627. | ^^^^^^^^^^^
  2628. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2629. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2630. |
  2631. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2632. | ^^^^^^^^^^
  2633. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2634. --> rust/kernel/types.rs:332:12
  2635. |
  2636. 332 | pub struct Opaque<T> {
  2637. | ^^^^^^
  2638. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2639. --> rust/kernel/block/mq/tag_set.rs:28:12
  2640. |
  2641. 28 | pub struct TagSet<T: Operations> {
  2642. | ^^^^^^
  2643. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2644. = note: 1 redundant requirement hidden
  2645. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2646. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2647. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2648. |
  2649. 598 | pub enum Option<T> {
  2650. | ^^^^^^
  2651. note: required because it appears within the type `DeviceConfigInner`
  2652. --> drivers/block/rnull/configfs.rs:118:8
  2653. |
  2654. 118 | struct DeviceConfigInner {
  2655. | ^^^^^^^^^^^^^^^^^
  2656. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2657. note: required because it appears within the type `DeviceConfig`
  2658. --> drivers/block/rnull/configfs.rs:112:19
  2659. |
  2660. 112 | pub(crate) struct DeviceConfig {
  2661. | ^^^^^^^^^^^^
  2662. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2663. --> rust/kernel/configfs.rs:680:16
  2664. |
  2665. 680 | type Data: Sync;
  2666. | ^^^^ required by this bound in `AttributeOperations::Data`
  2667.  
  2668. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  2669. --> drivers/block/rnull/configfs.rs:219:17
  2670. |
  2671. 219 | type Data = DeviceConfig;
  2672. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  2673. |
  2674. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2675. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2676. --> rust/kernel/types.rs:332:12
  2677. |
  2678. 332 | pub struct Opaque<T> {
  2679. | ^^^^^^
  2680. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2681. --> rust/kernel/block/mq/tag_set.rs:28:12
  2682. |
  2683. 28 | pub struct TagSet<T: Operations> {
  2684. | ^^^^^^
  2685. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2686. = note: 1 redundant requirement hidden
  2687. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2688. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2689. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2690. |
  2691. 598 | pub enum Option<T> {
  2692. | ^^^^^^
  2693. note: required because it appears within the type `DeviceConfigInner`
  2694. --> drivers/block/rnull/configfs.rs:118:8
  2695. |
  2696. 118 | struct DeviceConfigInner {
  2697. | ^^^^^^^^^^^^^^^^^
  2698. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2699. note: required because it appears within the type `DeviceConfig`
  2700. --> drivers/block/rnull/configfs.rs:112:19
  2701. |
  2702. 112 | pub(crate) struct DeviceConfig {
  2703. | ^^^^^^^^^^^^
  2704. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2705. --> rust/kernel/configfs.rs:680:16
  2706. |
  2707. 680 | type Data: Sync;
  2708. | ^^^^ required by this bound in `AttributeOperations::Data`
  2709.  
  2710. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  2711. --> drivers/block/rnull/configfs.rs:219:17
  2712. |
  2713. 219 | type Data = DeviceConfig;
  2714. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  2715. |
  2716. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  2717. note: required because it appears within the type `blk_mq_tag_set`
  2718. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2719. |
  2720. 93768 | pub struct blk_mq_tag_set {
  2721. | ^^^^^^^^^^^^^^
  2722. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2723. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2724. |
  2725. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2726. | ^^^^^^^^^^^^^
  2727. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2728. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2729. |
  2730. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2731. | ^^^^^^^^^^^^
  2732. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2733. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2734. |
  2735. 355 | pub union MaybeUninit<T> {
  2736. | ^^^^^^^^^^^
  2737. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2738. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2739. |
  2740. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2741. | ^^^^^^^^^^
  2742. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2743. --> rust/kernel/types.rs:332:12
  2744. |
  2745. 332 | pub struct Opaque<T> {
  2746. | ^^^^^^
  2747. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2748. --> rust/kernel/block/mq/tag_set.rs:28:12
  2749. |
  2750. 28 | pub struct TagSet<T: Operations> {
  2751. | ^^^^^^
  2752. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2753. = note: 1 redundant requirement hidden
  2754. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2755. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2756. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2757. |
  2758. 598 | pub enum Option<T> {
  2759. | ^^^^^^
  2760. note: required because it appears within the type `DeviceConfigInner`
  2761. --> drivers/block/rnull/configfs.rs:118:8
  2762. |
  2763. 118 | struct DeviceConfigInner {
  2764. | ^^^^^^^^^^^^^^^^^
  2765. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2766. note: required because it appears within the type `DeviceConfig`
  2767. --> drivers/block/rnull/configfs.rs:112:19
  2768. |
  2769. 112 | pub(crate) struct DeviceConfig {
  2770. | ^^^^^^^^^^^^
  2771. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2772. --> rust/kernel/configfs.rs:680:16
  2773. |
  2774. 680 | type Data: Sync;
  2775. | ^^^^ required by this bound in `AttributeOperations::Data`
  2776.  
  2777. error[E0277]: `*mut c_void` cannot be sent between threads safely
  2778. --> drivers/block/rnull/configfs.rs:219:17
  2779. |
  2780. 219 | type Data = DeviceConfig;
  2781. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  2782. |
  2783. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  2784. note: required because it appears within the type `blk_mq_tag_set`
  2785. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2786. |
  2787. 93768 | pub struct blk_mq_tag_set {
  2788. | ^^^^^^^^^^^^^^
  2789. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2790. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2791. |
  2792. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2793. | ^^^^^^^^^^^^^
  2794. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2795. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2796. |
  2797. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2798. | ^^^^^^^^^^^^
  2799. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2800. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2801. |
  2802. 355 | pub union MaybeUninit<T> {
  2803. | ^^^^^^^^^^^
  2804. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2805. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2806. |
  2807. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2808. | ^^^^^^^^^^
  2809. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2810. --> rust/kernel/types.rs:332:12
  2811. |
  2812. 332 | pub struct Opaque<T> {
  2813. | ^^^^^^
  2814. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2815. --> rust/kernel/block/mq/tag_set.rs:28:12
  2816. |
  2817. 28 | pub struct TagSet<T: Operations> {
  2818. | ^^^^^^
  2819. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2820. = note: 1 redundant requirement hidden
  2821. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2822. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2823. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2824. |
  2825. 598 | pub enum Option<T> {
  2826. | ^^^^^^
  2827. note: required because it appears within the type `DeviceConfigInner`
  2828. --> drivers/block/rnull/configfs.rs:118:8
  2829. |
  2830. 118 | struct DeviceConfigInner {
  2831. | ^^^^^^^^^^^^^^^^^
  2832. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2833. note: required because it appears within the type `DeviceConfig`
  2834. --> drivers/block/rnull/configfs.rs:112:19
  2835. |
  2836. 112 | pub(crate) struct DeviceConfig {
  2837. | ^^^^^^^^^^^^
  2838. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2839. --> rust/kernel/configfs.rs:680:16
  2840. |
  2841. 680 | type Data: Sync;
  2842. | ^^^^ required by this bound in `AttributeOperations::Data`
  2843.  
  2844. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  2845. --> drivers/block/rnull/configfs.rs:219:17
  2846. |
  2847. 219 | type Data = DeviceConfig;
  2848. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  2849. |
  2850. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  2851. note: required because it appears within the type `blk_mq_tag_set`
  2852. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2853. |
  2854. 93768 | pub struct blk_mq_tag_set {
  2855. | ^^^^^^^^^^^^^^
  2856. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2857. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2858. |
  2859. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2860. | ^^^^^^^^^^^^^
  2861. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2862. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2863. |
  2864. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2865. | ^^^^^^^^^^^^
  2866. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2867. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2868. |
  2869. 355 | pub union MaybeUninit<T> {
  2870. | ^^^^^^^^^^^
  2871. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2872. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2873. |
  2874. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2875. | ^^^^^^^^^^
  2876. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2877. --> rust/kernel/types.rs:332:12
  2878. |
  2879. 332 | pub struct Opaque<T> {
  2880. | ^^^^^^
  2881. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2882. --> rust/kernel/block/mq/tag_set.rs:28:12
  2883. |
  2884. 28 | pub struct TagSet<T: Operations> {
  2885. | ^^^^^^
  2886. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2887. = note: 1 redundant requirement hidden
  2888. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2889. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2890. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2891. |
  2892. 598 | pub enum Option<T> {
  2893. | ^^^^^^
  2894. note: required because it appears within the type `DeviceConfigInner`
  2895. --> drivers/block/rnull/configfs.rs:118:8
  2896. |
  2897. 118 | struct DeviceConfigInner {
  2898. | ^^^^^^^^^^^^^^^^^
  2899. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2900. note: required because it appears within the type `DeviceConfig`
  2901. --> drivers/block/rnull/configfs.rs:112:19
  2902. |
  2903. 112 | pub(crate) struct DeviceConfig {
  2904. | ^^^^^^^^^^^^
  2905. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2906. --> rust/kernel/configfs.rs:680:16
  2907. |
  2908. 680 | type Data: Sync;
  2909. | ^^^^ required by this bound in `AttributeOperations::Data`
  2910.  
  2911. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  2912. --> drivers/block/rnull/configfs.rs:219:17
  2913. |
  2914. 219 | type Data = DeviceConfig;
  2915. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  2916. |
  2917. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  2918. note: required because it appears within the type `blk_mq_tag_set`
  2919. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2920. |
  2921. 93768 | pub struct blk_mq_tag_set {
  2922. | ^^^^^^^^^^^^^^
  2923. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2924. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2925. |
  2926. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2927. | ^^^^^^^^^^^^^
  2928. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2929. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2930. |
  2931. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2932. | ^^^^^^^^^^^^
  2933. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  2934. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  2935. |
  2936. 355 | pub union MaybeUninit<T> {
  2937. | ^^^^^^^^^^^
  2938. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  2939. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  2940. |
  2941. 2323 | pub struct UnsafeCell<T: ?Sized> {
  2942. | ^^^^^^^^^^
  2943. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  2944. --> rust/kernel/types.rs:332:12
  2945. |
  2946. 332 | pub struct Opaque<T> {
  2947. | ^^^^^^
  2948. note: required because it appears within the type `TagSet<NullBlkDevice>`
  2949. --> rust/kernel/block/mq/tag_set.rs:28:12
  2950. |
  2951. 28 | pub struct TagSet<T: Operations> {
  2952. | ^^^^^^
  2953. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  2954. = note: 1 redundant requirement hidden
  2955. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  2956. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  2957. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  2958. |
  2959. 598 | pub enum Option<T> {
  2960. | ^^^^^^
  2961. note: required because it appears within the type `DeviceConfigInner`
  2962. --> drivers/block/rnull/configfs.rs:118:8
  2963. |
  2964. 118 | struct DeviceConfigInner {
  2965. | ^^^^^^^^^^^^^^^^^
  2966. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  2967. note: required because it appears within the type `DeviceConfig`
  2968. --> drivers/block/rnull/configfs.rs:112:19
  2969. |
  2970. 112 | pub(crate) struct DeviceConfig {
  2971. | ^^^^^^^^^^^^
  2972. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  2973. --> rust/kernel/configfs.rs:680:16
  2974. |
  2975. 680 | type Data: Sync;
  2976. | ^^^^ required by this bound in `AttributeOperations::Data`
  2977.  
  2978. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  2979. --> drivers/block/rnull/configfs.rs:219:17
  2980. |
  2981. 219 | type Data = DeviceConfig;
  2982. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  2983. |
  2984. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  2985. note: required because it appears within the type `blk_mq_tag_set`
  2986. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  2987. |
  2988. 93768 | pub struct blk_mq_tag_set {
  2989. | ^^^^^^^^^^^^^^
  2990. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  2991. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  2992. |
  2993. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  2994. | ^^^^^^^^^^^^^
  2995. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  2996. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  2997. |
  2998. 158 | pub struct ManuallyDrop<T: ?Sized> {
  2999. | ^^^^^^^^^^^^
  3000. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3001. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3002. |
  3003. 355 | pub union MaybeUninit<T> {
  3004. | ^^^^^^^^^^^
  3005. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3006. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3007. |
  3008. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3009. | ^^^^^^^^^^
  3010. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3011. --> rust/kernel/types.rs:332:12
  3012. |
  3013. 332 | pub struct Opaque<T> {
  3014. | ^^^^^^
  3015. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3016. --> rust/kernel/block/mq/tag_set.rs:28:12
  3017. |
  3018. 28 | pub struct TagSet<T: Operations> {
  3019. | ^^^^^^
  3020. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3021. = note: 1 redundant requirement hidden
  3022. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3023. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3024. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3025. |
  3026. 598 | pub enum Option<T> {
  3027. | ^^^^^^
  3028. note: required because it appears within the type `DeviceConfigInner`
  3029. --> drivers/block/rnull/configfs.rs:118:8
  3030. |
  3031. 118 | struct DeviceConfigInner {
  3032. | ^^^^^^^^^^^^^^^^^
  3033. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3034. note: required because it appears within the type `DeviceConfig`
  3035. --> drivers/block/rnull/configfs.rs:112:19
  3036. |
  3037. 112 | pub(crate) struct DeviceConfig {
  3038. | ^^^^^^^^^^^^
  3039. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3040. --> rust/kernel/configfs.rs:680:16
  3041. |
  3042. 680 | type Data: Sync;
  3043. | ^^^^ required by this bound in `AttributeOperations::Data`
  3044.  
  3045. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  3046. --> drivers/block/rnull/configfs.rs:219:17
  3047. |
  3048. 219 | type Data = DeviceConfig;
  3049. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  3050. |
  3051. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  3052. note: required because it appears within the type `bindings::bindings_raw::mutex`
  3053. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  3054. |
  3055. 35653 | pub struct mutex {
  3056. | ^^^^^
  3057. note: required because it appears within the type `blk_mq_tag_set`
  3058. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3059. |
  3060. 93768 | pub struct blk_mq_tag_set {
  3061. | ^^^^^^^^^^^^^^
  3062. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3063. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3064. |
  3065. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3066. | ^^^^^^^^^^^^^
  3067. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3068. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3069. |
  3070. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3071. | ^^^^^^^^^^^^
  3072. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3073. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3074. |
  3075. 355 | pub union MaybeUninit<T> {
  3076. | ^^^^^^^^^^^
  3077. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3078. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3079. |
  3080. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3081. | ^^^^^^^^^^
  3082. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3083. --> rust/kernel/types.rs:332:12
  3084. |
  3085. 332 | pub struct Opaque<T> {
  3086. | ^^^^^^
  3087. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3088. --> rust/kernel/block/mq/tag_set.rs:28:12
  3089. |
  3090. 28 | pub struct TagSet<T: Operations> {
  3091. | ^^^^^^
  3092. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3093. = note: 1 redundant requirement hidden
  3094. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3095. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3096. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3097. |
  3098. 598 | pub enum Option<T> {
  3099. | ^^^^^^
  3100. note: required because it appears within the type `DeviceConfigInner`
  3101. --> drivers/block/rnull/configfs.rs:118:8
  3102. |
  3103. 118 | struct DeviceConfigInner {
  3104. | ^^^^^^^^^^^^^^^^^
  3105. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3106. note: required because it appears within the type `DeviceConfig`
  3107. --> drivers/block/rnull/configfs.rs:112:19
  3108. |
  3109. 112 | pub(crate) struct DeviceConfig {
  3110. | ^^^^^^^^^^^^
  3111. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3112. --> rust/kernel/configfs.rs:680:16
  3113. |
  3114. 680 | type Data: Sync;
  3115. | ^^^^ required by this bound in `AttributeOperations::Data`
  3116.  
  3117. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  3118. --> drivers/block/rnull/configfs.rs:219:17
  3119. |
  3120. 219 | type Data = DeviceConfig;
  3121. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  3122. |
  3123. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  3124. note: required because it appears within the type `bindings::bindings_raw::list_head`
  3125. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  3126. |
  3127. 28151 | pub struct list_head {
  3128. | ^^^^^^^^^
  3129. note: required because it appears within the type `blk_mq_tag_set`
  3130. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3131. |
  3132. 93768 | pub struct blk_mq_tag_set {
  3133. | ^^^^^^^^^^^^^^
  3134. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3135. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3136. |
  3137. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3138. | ^^^^^^^^^^^^^
  3139. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3140. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3141. |
  3142. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3143. | ^^^^^^^^^^^^
  3144. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3145. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3146. |
  3147. 355 | pub union MaybeUninit<T> {
  3148. | ^^^^^^^^^^^
  3149. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3150. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3151. |
  3152. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3153. | ^^^^^^^^^^
  3154. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3155. --> rust/kernel/types.rs:332:12
  3156. |
  3157. 332 | pub struct Opaque<T> {
  3158. | ^^^^^^
  3159. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3160. --> rust/kernel/block/mq/tag_set.rs:28:12
  3161. |
  3162. 28 | pub struct TagSet<T: Operations> {
  3163. | ^^^^^^
  3164. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3165. = note: 1 redundant requirement hidden
  3166. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3167. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3168. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3169. |
  3170. 598 | pub enum Option<T> {
  3171. | ^^^^^^
  3172. note: required because it appears within the type `DeviceConfigInner`
  3173. --> drivers/block/rnull/configfs.rs:118:8
  3174. |
  3175. 118 | struct DeviceConfigInner {
  3176. | ^^^^^^^^^^^^^^^^^
  3177. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3178. note: required because it appears within the type `DeviceConfig`
  3179. --> drivers/block/rnull/configfs.rs:112:19
  3180. |
  3181. 112 | pub(crate) struct DeviceConfig {
  3182. | ^^^^^^^^^^^^
  3183. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3184. --> rust/kernel/configfs.rs:680:16
  3185. |
  3186. 680 | type Data: Sync;
  3187. | ^^^^ required by this bound in `AttributeOperations::Data`
  3188.  
  3189. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  3190. --> drivers/block/rnull/configfs.rs:219:17
  3191. |
  3192. 219 | type Data = DeviceConfig;
  3193. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  3194. |
  3195. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  3196. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  3197. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  3198. |
  3199. 40479 | pub struct rw_semaphore {
  3200. | ^^^^^^^^^^^^
  3201. note: required because it appears within the type `blk_mq_tag_set`
  3202. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3203. |
  3204. 93768 | pub struct blk_mq_tag_set {
  3205. | ^^^^^^^^^^^^^^
  3206. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3207. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3208. |
  3209. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3210. | ^^^^^^^^^^^^^
  3211. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3212. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3213. |
  3214. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3215. | ^^^^^^^^^^^^
  3216. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3217. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3218. |
  3219. 355 | pub union MaybeUninit<T> {
  3220. | ^^^^^^^^^^^
  3221. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3222. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3223. |
  3224. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3225. | ^^^^^^^^^^
  3226. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3227. --> rust/kernel/types.rs:332:12
  3228. |
  3229. 332 | pub struct Opaque<T> {
  3230. | ^^^^^^
  3231. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3232. --> rust/kernel/block/mq/tag_set.rs:28:12
  3233. |
  3234. 28 | pub struct TagSet<T: Operations> {
  3235. | ^^^^^^
  3236. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3237. = note: 1 redundant requirement hidden
  3238. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3239. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3240. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3241. |
  3242. 598 | pub enum Option<T> {
  3243. | ^^^^^^
  3244. note: required because it appears within the type `DeviceConfigInner`
  3245. --> drivers/block/rnull/configfs.rs:118:8
  3246. |
  3247. 118 | struct DeviceConfigInner {
  3248. | ^^^^^^^^^^^^^^^^^
  3249. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3250. note: required because it appears within the type `DeviceConfig`
  3251. --> drivers/block/rnull/configfs.rs:112:19
  3252. |
  3253. 112 | pub(crate) struct DeviceConfig {
  3254. | ^^^^^^^^^^^^
  3255. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3256. --> rust/kernel/configfs.rs:680:16
  3257. |
  3258. 680 | type Data: Sync;
  3259. | ^^^^ required by this bound in `AttributeOperations::Data`
  3260.  
  3261. error[E0277]: `*mut u32` cannot be sent between threads safely
  3262. --> drivers/block/rnull/configfs.rs:219:17
  3263. |
  3264. 219 | type Data = DeviceConfig;
  3265. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  3266. |
  3267. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  3268. note: required because it appears within the type `blk_mq_queue_map`
  3269. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  3270. |
  3271. 93747 | pub struct blk_mq_queue_map {
  3272. | ^^^^^^^^^^^^^^^^
  3273. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  3274. note: required because it appears within the type `blk_mq_tag_set`
  3275. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3276. |
  3277. 93768 | pub struct blk_mq_tag_set {
  3278. | ^^^^^^^^^^^^^^
  3279. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3280. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3281. |
  3282. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3283. | ^^^^^^^^^^^^^
  3284. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3285. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3286. |
  3287. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3288. | ^^^^^^^^^^^^
  3289. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3290. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3291. |
  3292. 355 | pub union MaybeUninit<T> {
  3293. | ^^^^^^^^^^^
  3294. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3295. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3296. |
  3297. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3298. | ^^^^^^^^^^
  3299. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3300. --> rust/kernel/types.rs:332:12
  3301. |
  3302. 332 | pub struct Opaque<T> {
  3303. | ^^^^^^
  3304. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3305. --> rust/kernel/block/mq/tag_set.rs:28:12
  3306. |
  3307. 28 | pub struct TagSet<T: Operations> {
  3308. | ^^^^^^
  3309. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3310. = note: 1 redundant requirement hidden
  3311. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3312. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3313. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3314. |
  3315. 598 | pub enum Option<T> {
  3316. | ^^^^^^
  3317. note: required because it appears within the type `DeviceConfigInner`
  3318. --> drivers/block/rnull/configfs.rs:118:8
  3319. |
  3320. 118 | struct DeviceConfigInner {
  3321. | ^^^^^^^^^^^^^^^^^
  3322. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3323. note: required because it appears within the type `DeviceConfig`
  3324. --> drivers/block/rnull/configfs.rs:112:19
  3325. |
  3326. 112 | pub(crate) struct DeviceConfig {
  3327. | ^^^^^^^^^^^^
  3328. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3329. --> rust/kernel/configfs.rs:680:16
  3330. |
  3331. 680 | type Data: Sync;
  3332. | ^^^^ required by this bound in `AttributeOperations::Data`
  3333.  
  3334. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  3335. --> drivers/block/rnull/configfs.rs:242:17
  3336. |
  3337. 242 | type Data = DeviceConfig;
  3338. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  3339. |
  3340. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3341. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3342. --> rust/kernel/types.rs:332:12
  3343. |
  3344. 332 | pub struct Opaque<T> {
  3345. | ^^^^^^
  3346. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3347. --> rust/kernel/block/mq/tag_set.rs:28:12
  3348. |
  3349. 28 | pub struct TagSet<T: Operations> {
  3350. | ^^^^^^
  3351. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3352. = note: 1 redundant requirement hidden
  3353. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3354. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3355. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3356. |
  3357. 598 | pub enum Option<T> {
  3358. | ^^^^^^
  3359. note: required because it appears within the type `DeviceConfigInner`
  3360. --> drivers/block/rnull/configfs.rs:118:8
  3361. |
  3362. 118 | struct DeviceConfigInner {
  3363. | ^^^^^^^^^^^^^^^^^
  3364. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3365. note: required because it appears within the type `DeviceConfig`
  3366. --> drivers/block/rnull/configfs.rs:112:19
  3367. |
  3368. 112 | pub(crate) struct DeviceConfig {
  3369. | ^^^^^^^^^^^^
  3370. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3371. --> rust/kernel/configfs.rs:680:16
  3372. |
  3373. 680 | type Data: Sync;
  3374. | ^^^^ required by this bound in `AttributeOperations::Data`
  3375.  
  3376. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  3377. --> drivers/block/rnull/configfs.rs:242:17
  3378. |
  3379. 242 | type Data = DeviceConfig;
  3380. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  3381. |
  3382. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  3383. note: required because it appears within the type `blk_mq_tag_set`
  3384. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3385. |
  3386. 93768 | pub struct blk_mq_tag_set {
  3387. | ^^^^^^^^^^^^^^
  3388. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3389. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3390. |
  3391. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3392. | ^^^^^^^^^^^^^
  3393. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3394. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3395. |
  3396. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3397. | ^^^^^^^^^^^^
  3398. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3399. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3400. |
  3401. 355 | pub union MaybeUninit<T> {
  3402. | ^^^^^^^^^^^
  3403. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3404. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3405. |
  3406. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3407. | ^^^^^^^^^^
  3408. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3409. --> rust/kernel/types.rs:332:12
  3410. |
  3411. 332 | pub struct Opaque<T> {
  3412. | ^^^^^^
  3413. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3414. --> rust/kernel/block/mq/tag_set.rs:28:12
  3415. |
  3416. 28 | pub struct TagSet<T: Operations> {
  3417. | ^^^^^^
  3418. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3419. = note: 1 redundant requirement hidden
  3420. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3421. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3422. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3423. |
  3424. 598 | pub enum Option<T> {
  3425. | ^^^^^^
  3426. note: required because it appears within the type `DeviceConfigInner`
  3427. --> drivers/block/rnull/configfs.rs:118:8
  3428. |
  3429. 118 | struct DeviceConfigInner {
  3430. | ^^^^^^^^^^^^^^^^^
  3431. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3432. note: required because it appears within the type `DeviceConfig`
  3433. --> drivers/block/rnull/configfs.rs:112:19
  3434. |
  3435. 112 | pub(crate) struct DeviceConfig {
  3436. | ^^^^^^^^^^^^
  3437. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3438. --> rust/kernel/configfs.rs:680:16
  3439. |
  3440. 680 | type Data: Sync;
  3441. | ^^^^ required by this bound in `AttributeOperations::Data`
  3442.  
  3443. error[E0277]: `*mut c_void` cannot be sent between threads safely
  3444. --> drivers/block/rnull/configfs.rs:242:17
  3445. |
  3446. 242 | type Data = DeviceConfig;
  3447. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  3448. |
  3449. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  3450. note: required because it appears within the type `blk_mq_tag_set`
  3451. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3452. |
  3453. 93768 | pub struct blk_mq_tag_set {
  3454. | ^^^^^^^^^^^^^^
  3455. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3456. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3457. |
  3458. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3459. | ^^^^^^^^^^^^^
  3460. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3461. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3462. |
  3463. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3464. | ^^^^^^^^^^^^
  3465. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3466. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3467. |
  3468. 355 | pub union MaybeUninit<T> {
  3469. | ^^^^^^^^^^^
  3470. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3471. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3472. |
  3473. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3474. | ^^^^^^^^^^
  3475. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3476. --> rust/kernel/types.rs:332:12
  3477. |
  3478. 332 | pub struct Opaque<T> {
  3479. | ^^^^^^
  3480. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3481. --> rust/kernel/block/mq/tag_set.rs:28:12
  3482. |
  3483. 28 | pub struct TagSet<T: Operations> {
  3484. | ^^^^^^
  3485. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3486. = note: 1 redundant requirement hidden
  3487. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3488. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3489. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3490. |
  3491. 598 | pub enum Option<T> {
  3492. | ^^^^^^
  3493. note: required because it appears within the type `DeviceConfigInner`
  3494. --> drivers/block/rnull/configfs.rs:118:8
  3495. |
  3496. 118 | struct DeviceConfigInner {
  3497. | ^^^^^^^^^^^^^^^^^
  3498. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3499. note: required because it appears within the type `DeviceConfig`
  3500. --> drivers/block/rnull/configfs.rs:112:19
  3501. |
  3502. 112 | pub(crate) struct DeviceConfig {
  3503. | ^^^^^^^^^^^^
  3504. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3505. --> rust/kernel/configfs.rs:680:16
  3506. |
  3507. 680 | type Data: Sync;
  3508. | ^^^^ required by this bound in `AttributeOperations::Data`
  3509.  
  3510. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  3511. --> drivers/block/rnull/configfs.rs:242:17
  3512. |
  3513. 242 | type Data = DeviceConfig;
  3514. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  3515. |
  3516. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  3517. note: required because it appears within the type `blk_mq_tag_set`
  3518. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3519. |
  3520. 93768 | pub struct blk_mq_tag_set {
  3521. | ^^^^^^^^^^^^^^
  3522. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3523. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3524. |
  3525. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3526. | ^^^^^^^^^^^^^
  3527. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3528. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3529. |
  3530. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3531. | ^^^^^^^^^^^^
  3532. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3533. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3534. |
  3535. 355 | pub union MaybeUninit<T> {
  3536. | ^^^^^^^^^^^
  3537. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3538. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3539. |
  3540. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3541. | ^^^^^^^^^^
  3542. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3543. --> rust/kernel/types.rs:332:12
  3544. |
  3545. 332 | pub struct Opaque<T> {
  3546. | ^^^^^^
  3547. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3548. --> rust/kernel/block/mq/tag_set.rs:28:12
  3549. |
  3550. 28 | pub struct TagSet<T: Operations> {
  3551. | ^^^^^^
  3552. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3553. = note: 1 redundant requirement hidden
  3554. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3555. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3556. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3557. |
  3558. 598 | pub enum Option<T> {
  3559. | ^^^^^^
  3560. note: required because it appears within the type `DeviceConfigInner`
  3561. --> drivers/block/rnull/configfs.rs:118:8
  3562. |
  3563. 118 | struct DeviceConfigInner {
  3564. | ^^^^^^^^^^^^^^^^^
  3565. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3566. note: required because it appears within the type `DeviceConfig`
  3567. --> drivers/block/rnull/configfs.rs:112:19
  3568. |
  3569. 112 | pub(crate) struct DeviceConfig {
  3570. | ^^^^^^^^^^^^
  3571. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3572. --> rust/kernel/configfs.rs:680:16
  3573. |
  3574. 680 | type Data: Sync;
  3575. | ^^^^ required by this bound in `AttributeOperations::Data`
  3576.  
  3577. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  3578. --> drivers/block/rnull/configfs.rs:242:17
  3579. |
  3580. 242 | type Data = DeviceConfig;
  3581. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  3582. |
  3583. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  3584. note: required because it appears within the type `blk_mq_tag_set`
  3585. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3586. |
  3587. 93768 | pub struct blk_mq_tag_set {
  3588. | ^^^^^^^^^^^^^^
  3589. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3590. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3591. |
  3592. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3593. | ^^^^^^^^^^^^^
  3594. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3595. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3596. |
  3597. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3598. | ^^^^^^^^^^^^
  3599. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3600. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3601. |
  3602. 355 | pub union MaybeUninit<T> {
  3603. | ^^^^^^^^^^^
  3604. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3605. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3606. |
  3607. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3608. | ^^^^^^^^^^
  3609. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3610. --> rust/kernel/types.rs:332:12
  3611. |
  3612. 332 | pub struct Opaque<T> {
  3613. | ^^^^^^
  3614. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3615. --> rust/kernel/block/mq/tag_set.rs:28:12
  3616. |
  3617. 28 | pub struct TagSet<T: Operations> {
  3618. | ^^^^^^
  3619. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3620. = note: 1 redundant requirement hidden
  3621. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3622. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3623. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3624. |
  3625. 598 | pub enum Option<T> {
  3626. | ^^^^^^
  3627. note: required because it appears within the type `DeviceConfigInner`
  3628. --> drivers/block/rnull/configfs.rs:118:8
  3629. |
  3630. 118 | struct DeviceConfigInner {
  3631. | ^^^^^^^^^^^^^^^^^
  3632. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3633. note: required because it appears within the type `DeviceConfig`
  3634. --> drivers/block/rnull/configfs.rs:112:19
  3635. |
  3636. 112 | pub(crate) struct DeviceConfig {
  3637. | ^^^^^^^^^^^^
  3638. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3639. --> rust/kernel/configfs.rs:680:16
  3640. |
  3641. 680 | type Data: Sync;
  3642. | ^^^^ required by this bound in `AttributeOperations::Data`
  3643.  
  3644. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  3645. --> drivers/block/rnull/configfs.rs:242:17
  3646. |
  3647. 242 | type Data = DeviceConfig;
  3648. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  3649. |
  3650. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  3651. note: required because it appears within the type `blk_mq_tag_set`
  3652. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3653. |
  3654. 93768 | pub struct blk_mq_tag_set {
  3655. | ^^^^^^^^^^^^^^
  3656. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3657. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3658. |
  3659. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3660. | ^^^^^^^^^^^^^
  3661. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3662. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3663. |
  3664. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3665. | ^^^^^^^^^^^^
  3666. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3667. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3668. |
  3669. 355 | pub union MaybeUninit<T> {
  3670. | ^^^^^^^^^^^
  3671. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3672. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3673. |
  3674. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3675. | ^^^^^^^^^^
  3676. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3677. --> rust/kernel/types.rs:332:12
  3678. |
  3679. 332 | pub struct Opaque<T> {
  3680. | ^^^^^^
  3681. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3682. --> rust/kernel/block/mq/tag_set.rs:28:12
  3683. |
  3684. 28 | pub struct TagSet<T: Operations> {
  3685. | ^^^^^^
  3686. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3687. = note: 1 redundant requirement hidden
  3688. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3689. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3690. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3691. |
  3692. 598 | pub enum Option<T> {
  3693. | ^^^^^^
  3694. note: required because it appears within the type `DeviceConfigInner`
  3695. --> drivers/block/rnull/configfs.rs:118:8
  3696. |
  3697. 118 | struct DeviceConfigInner {
  3698. | ^^^^^^^^^^^^^^^^^
  3699. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3700. note: required because it appears within the type `DeviceConfig`
  3701. --> drivers/block/rnull/configfs.rs:112:19
  3702. |
  3703. 112 | pub(crate) struct DeviceConfig {
  3704. | ^^^^^^^^^^^^
  3705. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3706. --> rust/kernel/configfs.rs:680:16
  3707. |
  3708. 680 | type Data: Sync;
  3709. | ^^^^ required by this bound in `AttributeOperations::Data`
  3710.  
  3711. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  3712. --> drivers/block/rnull/configfs.rs:242:17
  3713. |
  3714. 242 | type Data = DeviceConfig;
  3715. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  3716. |
  3717. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  3718. note: required because it appears within the type `bindings::bindings_raw::mutex`
  3719. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  3720. |
  3721. 35653 | pub struct mutex {
  3722. | ^^^^^
  3723. note: required because it appears within the type `blk_mq_tag_set`
  3724. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3725. |
  3726. 93768 | pub struct blk_mq_tag_set {
  3727. | ^^^^^^^^^^^^^^
  3728. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3729. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3730. |
  3731. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3732. | ^^^^^^^^^^^^^
  3733. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3734. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3735. |
  3736. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3737. | ^^^^^^^^^^^^
  3738. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3739. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3740. |
  3741. 355 | pub union MaybeUninit<T> {
  3742. | ^^^^^^^^^^^
  3743. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3744. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3745. |
  3746. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3747. | ^^^^^^^^^^
  3748. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3749. --> rust/kernel/types.rs:332:12
  3750. |
  3751. 332 | pub struct Opaque<T> {
  3752. | ^^^^^^
  3753. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3754. --> rust/kernel/block/mq/tag_set.rs:28:12
  3755. |
  3756. 28 | pub struct TagSet<T: Operations> {
  3757. | ^^^^^^
  3758. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3759. = note: 1 redundant requirement hidden
  3760. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3761. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3762. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3763. |
  3764. 598 | pub enum Option<T> {
  3765. | ^^^^^^
  3766. note: required because it appears within the type `DeviceConfigInner`
  3767. --> drivers/block/rnull/configfs.rs:118:8
  3768. |
  3769. 118 | struct DeviceConfigInner {
  3770. | ^^^^^^^^^^^^^^^^^
  3771. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3772. note: required because it appears within the type `DeviceConfig`
  3773. --> drivers/block/rnull/configfs.rs:112:19
  3774. |
  3775. 112 | pub(crate) struct DeviceConfig {
  3776. | ^^^^^^^^^^^^
  3777. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3778. --> rust/kernel/configfs.rs:680:16
  3779. |
  3780. 680 | type Data: Sync;
  3781. | ^^^^ required by this bound in `AttributeOperations::Data`
  3782.  
  3783. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  3784. --> drivers/block/rnull/configfs.rs:242:17
  3785. |
  3786. 242 | type Data = DeviceConfig;
  3787. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  3788. |
  3789. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  3790. note: required because it appears within the type `bindings::bindings_raw::list_head`
  3791. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  3792. |
  3793. 28151 | pub struct list_head {
  3794. | ^^^^^^^^^
  3795. note: required because it appears within the type `blk_mq_tag_set`
  3796. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3797. |
  3798. 93768 | pub struct blk_mq_tag_set {
  3799. | ^^^^^^^^^^^^^^
  3800. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3801. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3802. |
  3803. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3804. | ^^^^^^^^^^^^^
  3805. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3806. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3807. |
  3808. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3809. | ^^^^^^^^^^^^
  3810. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3811. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3812. |
  3813. 355 | pub union MaybeUninit<T> {
  3814. | ^^^^^^^^^^^
  3815. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3816. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3817. |
  3818. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3819. | ^^^^^^^^^^
  3820. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3821. --> rust/kernel/types.rs:332:12
  3822. |
  3823. 332 | pub struct Opaque<T> {
  3824. | ^^^^^^
  3825. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3826. --> rust/kernel/block/mq/tag_set.rs:28:12
  3827. |
  3828. 28 | pub struct TagSet<T: Operations> {
  3829. | ^^^^^^
  3830. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3831. = note: 1 redundant requirement hidden
  3832. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3833. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3834. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3835. |
  3836. 598 | pub enum Option<T> {
  3837. | ^^^^^^
  3838. note: required because it appears within the type `DeviceConfigInner`
  3839. --> drivers/block/rnull/configfs.rs:118:8
  3840. |
  3841. 118 | struct DeviceConfigInner {
  3842. | ^^^^^^^^^^^^^^^^^
  3843. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3844. note: required because it appears within the type `DeviceConfig`
  3845. --> drivers/block/rnull/configfs.rs:112:19
  3846. |
  3847. 112 | pub(crate) struct DeviceConfig {
  3848. | ^^^^^^^^^^^^
  3849. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3850. --> rust/kernel/configfs.rs:680:16
  3851. |
  3852. 680 | type Data: Sync;
  3853. | ^^^^ required by this bound in `AttributeOperations::Data`
  3854.  
  3855. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  3856. --> drivers/block/rnull/configfs.rs:242:17
  3857. |
  3858. 242 | type Data = DeviceConfig;
  3859. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  3860. |
  3861. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  3862. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  3863. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  3864. |
  3865. 40479 | pub struct rw_semaphore {
  3866. | ^^^^^^^^^^^^
  3867. note: required because it appears within the type `blk_mq_tag_set`
  3868. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3869. |
  3870. 93768 | pub struct blk_mq_tag_set {
  3871. | ^^^^^^^^^^^^^^
  3872. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3873. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3874. |
  3875. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3876. | ^^^^^^^^^^^^^
  3877. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3878. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3879. |
  3880. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3881. | ^^^^^^^^^^^^
  3882. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3883. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3884. |
  3885. 355 | pub union MaybeUninit<T> {
  3886. | ^^^^^^^^^^^
  3887. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3888. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3889. |
  3890. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3891. | ^^^^^^^^^^
  3892. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3893. --> rust/kernel/types.rs:332:12
  3894. |
  3895. 332 | pub struct Opaque<T> {
  3896. | ^^^^^^
  3897. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3898. --> rust/kernel/block/mq/tag_set.rs:28:12
  3899. |
  3900. 28 | pub struct TagSet<T: Operations> {
  3901. | ^^^^^^
  3902. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3903. = note: 1 redundant requirement hidden
  3904. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3905. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3906. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3907. |
  3908. 598 | pub enum Option<T> {
  3909. | ^^^^^^
  3910. note: required because it appears within the type `DeviceConfigInner`
  3911. --> drivers/block/rnull/configfs.rs:118:8
  3912. |
  3913. 118 | struct DeviceConfigInner {
  3914. | ^^^^^^^^^^^^^^^^^
  3915. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3916. note: required because it appears within the type `DeviceConfig`
  3917. --> drivers/block/rnull/configfs.rs:112:19
  3918. |
  3919. 112 | pub(crate) struct DeviceConfig {
  3920. | ^^^^^^^^^^^^
  3921. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3922. --> rust/kernel/configfs.rs:680:16
  3923. |
  3924. 680 | type Data: Sync;
  3925. | ^^^^ required by this bound in `AttributeOperations::Data`
  3926.  
  3927. error[E0277]: `*mut u32` cannot be sent between threads safely
  3928. --> drivers/block/rnull/configfs.rs:242:17
  3929. |
  3930. 242 | type Data = DeviceConfig;
  3931. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  3932. |
  3933. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  3934. note: required because it appears within the type `blk_mq_queue_map`
  3935. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  3936. |
  3937. 93747 | pub struct blk_mq_queue_map {
  3938. | ^^^^^^^^^^^^^^^^
  3939. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  3940. note: required because it appears within the type `blk_mq_tag_set`
  3941. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  3942. |
  3943. 93768 | pub struct blk_mq_tag_set {
  3944. | ^^^^^^^^^^^^^^
  3945. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  3946. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  3947. |
  3948. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  3949. | ^^^^^^^^^^^^^
  3950. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  3951. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  3952. |
  3953. 158 | pub struct ManuallyDrop<T: ?Sized> {
  3954. | ^^^^^^^^^^^^
  3955. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  3956. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  3957. |
  3958. 355 | pub union MaybeUninit<T> {
  3959. | ^^^^^^^^^^^
  3960. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  3961. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  3962. |
  3963. 2323 | pub struct UnsafeCell<T: ?Sized> {
  3964. | ^^^^^^^^^^
  3965. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  3966. --> rust/kernel/types.rs:332:12
  3967. |
  3968. 332 | pub struct Opaque<T> {
  3969. | ^^^^^^
  3970. note: required because it appears within the type `TagSet<NullBlkDevice>`
  3971. --> rust/kernel/block/mq/tag_set.rs:28:12
  3972. |
  3973. 28 | pub struct TagSet<T: Operations> {
  3974. | ^^^^^^
  3975. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  3976. = note: 1 redundant requirement hidden
  3977. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  3978. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  3979. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  3980. |
  3981. 598 | pub enum Option<T> {
  3982. | ^^^^^^
  3983. note: required because it appears within the type `DeviceConfigInner`
  3984. --> drivers/block/rnull/configfs.rs:118:8
  3985. |
  3986. 118 | struct DeviceConfigInner {
  3987. | ^^^^^^^^^^^^^^^^^
  3988. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Sync`
  3989. note: required because it appears within the type `DeviceConfig`
  3990. --> drivers/block/rnull/configfs.rs:112:19
  3991. |
  3992. 112 | pub(crate) struct DeviceConfig {
  3993. | ^^^^^^^^^^^^
  3994. note: required by a bound in `kernel::configfs::AttributeOperations::Data`
  3995. --> rust/kernel/configfs.rs:680:16
  3996. |
  3997. 680 | type Data: Sync;
  3998. | ^^^^ required by this bound in `AttributeOperations::Data`
  3999.  
  4000. CC drivers/mfd/stmpe.o
  4001. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  4002. --> drivers/block/rnull/configfs.rs:20:16
  4003. |
  4004. 20 | child: DeviceConfig,
  4005. | ^^^^^^^^^^^^ `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  4006. |
  4007. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4008. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4009. --> rust/kernel/types.rs:332:12
  4010. |
  4011. 332 | pub struct Opaque<T> {
  4012. | ^^^^^^
  4013. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4014. --> rust/kernel/block/mq/tag_set.rs:28:12
  4015. |
  4016. 28 | pub struct TagSet<T: Operations> {
  4017. | ^^^^^^
  4018. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4019. = note: 1 redundant requirement hidden
  4020. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4021. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4022. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4023. |
  4024. 598 | pub enum Option<T> {
  4025. | ^^^^^^
  4026. note: required because it appears within the type `DeviceConfigInner`
  4027. --> drivers/block/rnull/configfs.rs:118:8
  4028. |
  4029. 118 | struct DeviceConfigInner {
  4030. | ^^^^^^^^^^^^^^^^^
  4031. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4032. note: required because it appears within the type `DeviceConfig`
  4033. --> drivers/block/rnull/configfs.rs:112:19
  4034. |
  4035. 112 | pub(crate) struct DeviceConfig {
  4036. | ^^^^^^^^^^^^
  4037. = note: required for `Group<DeviceConfig>` to implement `Send`
  4038. = note: 1 redundant requirement hidden
  4039. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4040. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4041. --> rust/kernel/configfs.rs:786:36
  4042. |
  4043. 780 | pub const fn new_with_child_ctor<const N: usize, Child>(
  4044. | ------------------- required by a bound in this associated function
  4045. ...
  4046. 786 | Arc<Group<Child>>: Send,
  4047. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4048. ...
  4049. 824 | impl_item_type!(Subsystem<Data>);
  4050. | -------------------------------- in this macro invocation
  4051. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4052.  
  4053. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  4054. --> drivers/block/rnull/configfs.rs:20:16
  4055. |
  4056. 20 | child: DeviceConfig,
  4057. | ^^^^^^^^^^^^ `*const blk_mq_ops` cannot be sent between threads safely
  4058. |
  4059. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  4060. note: required because it appears within the type `blk_mq_tag_set`
  4061. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4062. |
  4063. 93768 | pub struct blk_mq_tag_set {
  4064. | ^^^^^^^^^^^^^^
  4065. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4066. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4067. |
  4068. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4069. | ^^^^^^^^^^^^^
  4070. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4071. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4072. |
  4073. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4074. | ^^^^^^^^^^^^
  4075. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4076. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4077. |
  4078. 355 | pub union MaybeUninit<T> {
  4079. | ^^^^^^^^^^^
  4080. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4081. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4082. |
  4083. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4084. | ^^^^^^^^^^
  4085. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4086. --> rust/kernel/types.rs:332:12
  4087. |
  4088. 332 | pub struct Opaque<T> {
  4089. | ^^^^^^
  4090. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4091. --> rust/kernel/block/mq/tag_set.rs:28:12
  4092. |
  4093. 28 | pub struct TagSet<T: Operations> {
  4094. | ^^^^^^
  4095. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4096. = note: 1 redundant requirement hidden
  4097. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4098. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4099. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4100. |
  4101. 598 | pub enum Option<T> {
  4102. | ^^^^^^
  4103. note: required because it appears within the type `DeviceConfigInner`
  4104. --> drivers/block/rnull/configfs.rs:118:8
  4105. |
  4106. 118 | struct DeviceConfigInner {
  4107. | ^^^^^^^^^^^^^^^^^
  4108. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4109. note: required because it appears within the type `DeviceConfig`
  4110. --> drivers/block/rnull/configfs.rs:112:19
  4111. |
  4112. 112 | pub(crate) struct DeviceConfig {
  4113. | ^^^^^^^^^^^^
  4114. = note: required for `Group<DeviceConfig>` to implement `Send`
  4115. = note: 1 redundant requirement hidden
  4116. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4117. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4118. --> rust/kernel/configfs.rs:786:36
  4119. |
  4120. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4121. | ------------------- required by a bound in this associated function
  4122. ...
  4123. 786 | Arc<Group<Child>>: Send,
  4124. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4125. ...
  4126. 824 | impl_item_type!(Subsystem<Data>);
  4127. | -------------------------------- in this macro invocation
  4128. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4129.  
  4130. error[E0277]: `*mut c_void` cannot be sent between threads safely
  4131. --> drivers/block/rnull/configfs.rs:20:16
  4132. |
  4133. 20 | child: DeviceConfig,
  4134. | ^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
  4135. |
  4136. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  4137. note: required because it appears within the type `blk_mq_tag_set`
  4138. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4139. |
  4140. 93768 | pub struct blk_mq_tag_set {
  4141. | ^^^^^^^^^^^^^^
  4142. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4143. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4144. |
  4145. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4146. | ^^^^^^^^^^^^^
  4147. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4148. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4149. |
  4150. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4151. | ^^^^^^^^^^^^
  4152. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4153. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4154. |
  4155. 355 | pub union MaybeUninit<T> {
  4156. | ^^^^^^^^^^^
  4157. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4158. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4159. |
  4160. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4161. | ^^^^^^^^^^
  4162. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4163. --> rust/kernel/types.rs:332:12
  4164. |
  4165. 332 | pub struct Opaque<T> {
  4166. | ^^^^^^
  4167. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4168. --> rust/kernel/block/mq/tag_set.rs:28:12
  4169. |
  4170. 28 | pub struct TagSet<T: Operations> {
  4171. | ^^^^^^
  4172. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4173. = note: 1 redundant requirement hidden
  4174. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4175. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4176. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4177. |
  4178. 598 | pub enum Option<T> {
  4179. | ^^^^^^
  4180. note: required because it appears within the type `DeviceConfigInner`
  4181. --> drivers/block/rnull/configfs.rs:118:8
  4182. |
  4183. 118 | struct DeviceConfigInner {
  4184. | ^^^^^^^^^^^^^^^^^
  4185. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4186. note: required because it appears within the type `DeviceConfig`
  4187. --> drivers/block/rnull/configfs.rs:112:19
  4188. |
  4189. 112 | pub(crate) struct DeviceConfig {
  4190. | ^^^^^^^^^^^^
  4191. = note: required for `Group<DeviceConfig>` to implement `Send`
  4192. = note: 1 redundant requirement hidden
  4193. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4194. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4195. --> rust/kernel/configfs.rs:786:36
  4196. |
  4197. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4198. | ------------------- required by a bound in this associated function
  4199. ...
  4200. 786 | Arc<Group<Child>>: Send,
  4201. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4202. ...
  4203. 824 | impl_item_type!(Subsystem<Data>);
  4204. | -------------------------------- in this macro invocation
  4205. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4206.  
  4207. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  4208. --> drivers/block/rnull/configfs.rs:20:16
  4209. |
  4210. 20 | child: DeviceConfig,
  4211. | ^^^^^^^^^^^^ `*mut *mut blk_mq_tags` cannot be sent between threads safely
  4212. |
  4213. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  4214. note: required because it appears within the type `blk_mq_tag_set`
  4215. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4216. |
  4217. 93768 | pub struct blk_mq_tag_set {
  4218. | ^^^^^^^^^^^^^^
  4219. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4220. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4221. |
  4222. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4223. | ^^^^^^^^^^^^^
  4224. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4225. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4226. |
  4227. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4228. | ^^^^^^^^^^^^
  4229. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4230. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4231. |
  4232. 355 | pub union MaybeUninit<T> {
  4233. | ^^^^^^^^^^^
  4234. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4235. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4236. |
  4237. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4238. | ^^^^^^^^^^
  4239. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4240. --> rust/kernel/types.rs:332:12
  4241. |
  4242. 332 | pub struct Opaque<T> {
  4243. | ^^^^^^
  4244. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4245. --> rust/kernel/block/mq/tag_set.rs:28:12
  4246. |
  4247. 28 | pub struct TagSet<T: Operations> {
  4248. | ^^^^^^
  4249. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4250. = note: 1 redundant requirement hidden
  4251. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4252. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4253. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4254. |
  4255. 598 | pub enum Option<T> {
  4256. | ^^^^^^
  4257. note: required because it appears within the type `DeviceConfigInner`
  4258. --> drivers/block/rnull/configfs.rs:118:8
  4259. |
  4260. 118 | struct DeviceConfigInner {
  4261. | ^^^^^^^^^^^^^^^^^
  4262. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4263. note: required because it appears within the type `DeviceConfig`
  4264. --> drivers/block/rnull/configfs.rs:112:19
  4265. |
  4266. 112 | pub(crate) struct DeviceConfig {
  4267. | ^^^^^^^^^^^^
  4268. = note: required for `Group<DeviceConfig>` to implement `Send`
  4269. = note: 1 redundant requirement hidden
  4270. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4271. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4272. --> rust/kernel/configfs.rs:786:36
  4273. |
  4274. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4275. | ------------------- required by a bound in this associated function
  4276. ...
  4277. 786 | Arc<Group<Child>>: Send,
  4278. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4279. ...
  4280. 824 | impl_item_type!(Subsystem<Data>);
  4281. | -------------------------------- in this macro invocation
  4282. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4283.  
  4284. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  4285. --> drivers/block/rnull/configfs.rs:20:16
  4286. |
  4287. 20 | child: DeviceConfig,
  4288. | ^^^^^^^^^^^^ `*mut blk_mq_tags` cannot be sent between threads safely
  4289. |
  4290. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  4291. note: required because it appears within the type `blk_mq_tag_set`
  4292. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4293. |
  4294. 93768 | pub struct blk_mq_tag_set {
  4295. | ^^^^^^^^^^^^^^
  4296. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4297. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4298. |
  4299. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4300. | ^^^^^^^^^^^^^
  4301. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4302. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4303. |
  4304. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4305. | ^^^^^^^^^^^^
  4306. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4307. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4308. |
  4309. 355 | pub union MaybeUninit<T> {
  4310. | ^^^^^^^^^^^
  4311. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4312. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4313. |
  4314. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4315. | ^^^^^^^^^^
  4316. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4317. --> rust/kernel/types.rs:332:12
  4318. |
  4319. 332 | pub struct Opaque<T> {
  4320. | ^^^^^^
  4321. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4322. --> rust/kernel/block/mq/tag_set.rs:28:12
  4323. |
  4324. 28 | pub struct TagSet<T: Operations> {
  4325. | ^^^^^^
  4326. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4327. = note: 1 redundant requirement hidden
  4328. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4329. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4330. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4331. |
  4332. 598 | pub enum Option<T> {
  4333. | ^^^^^^
  4334. note: required because it appears within the type `DeviceConfigInner`
  4335. --> drivers/block/rnull/configfs.rs:118:8
  4336. |
  4337. 118 | struct DeviceConfigInner {
  4338. | ^^^^^^^^^^^^^^^^^
  4339. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4340. note: required because it appears within the type `DeviceConfig`
  4341. --> drivers/block/rnull/configfs.rs:112:19
  4342. |
  4343. 112 | pub(crate) struct DeviceConfig {
  4344. | ^^^^^^^^^^^^
  4345. = note: required for `Group<DeviceConfig>` to implement `Send`
  4346. = note: 1 redundant requirement hidden
  4347. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4348. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4349. --> rust/kernel/configfs.rs:786:36
  4350. |
  4351. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4352. | ------------------- required by a bound in this associated function
  4353. ...
  4354. 786 | Arc<Group<Child>>: Send,
  4355. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4356. ...
  4357. 824 | impl_item_type!(Subsystem<Data>);
  4358. | -------------------------------- in this macro invocation
  4359. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4360.  
  4361. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  4362. --> drivers/block/rnull/configfs.rs:20:16
  4363. |
  4364. 20 | child: DeviceConfig,
  4365. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  4366. |
  4367. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  4368. note: required because it appears within the type `blk_mq_tag_set`
  4369. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4370. |
  4371. 93768 | pub struct blk_mq_tag_set {
  4372. | ^^^^^^^^^^^^^^
  4373. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4374. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4375. |
  4376. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4377. | ^^^^^^^^^^^^^
  4378. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4379. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4380. |
  4381. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4382. | ^^^^^^^^^^^^
  4383. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4384. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4385. |
  4386. 355 | pub union MaybeUninit<T> {
  4387. | ^^^^^^^^^^^
  4388. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4389. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4390. |
  4391. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4392. | ^^^^^^^^^^
  4393. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4394. --> rust/kernel/types.rs:332:12
  4395. |
  4396. 332 | pub struct Opaque<T> {
  4397. | ^^^^^^
  4398. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4399. --> rust/kernel/block/mq/tag_set.rs:28:12
  4400. |
  4401. 28 | pub struct TagSet<T: Operations> {
  4402. | ^^^^^^
  4403. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4404. = note: 1 redundant requirement hidden
  4405. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4406. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4407. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4408. |
  4409. 598 | pub enum Option<T> {
  4410. | ^^^^^^
  4411. note: required because it appears within the type `DeviceConfigInner`
  4412. --> drivers/block/rnull/configfs.rs:118:8
  4413. |
  4414. 118 | struct DeviceConfigInner {
  4415. | ^^^^^^^^^^^^^^^^^
  4416. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4417. note: required because it appears within the type `DeviceConfig`
  4418. --> drivers/block/rnull/configfs.rs:112:19
  4419. |
  4420. 112 | pub(crate) struct DeviceConfig {
  4421. | ^^^^^^^^^^^^
  4422. = note: required for `Group<DeviceConfig>` to implement `Send`
  4423. = note: 1 redundant requirement hidden
  4424. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4425. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4426. --> rust/kernel/configfs.rs:786:36
  4427. |
  4428. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4429. | ------------------- required by a bound in this associated function
  4430. ...
  4431. 786 | Arc<Group<Child>>: Send,
  4432. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4433. ...
  4434. 824 | impl_item_type!(Subsystem<Data>);
  4435. | -------------------------------- in this macro invocation
  4436. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4437.  
  4438. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  4439. --> drivers/block/rnull/configfs.rs:20:16
  4440. |
  4441. 20 | child: DeviceConfig,
  4442. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  4443. |
  4444. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  4445. note: required because it appears within the type `bindings::bindings_raw::mutex`
  4446. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  4447. |
  4448. 35653 | pub struct mutex {
  4449. | ^^^^^
  4450. note: required because it appears within the type `blk_mq_tag_set`
  4451. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4452. |
  4453. 93768 | pub struct blk_mq_tag_set {
  4454. | ^^^^^^^^^^^^^^
  4455. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4456. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4457. |
  4458. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4459. | ^^^^^^^^^^^^^
  4460. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4461. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4462. |
  4463. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4464. | ^^^^^^^^^^^^
  4465. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4466. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4467. |
  4468. 355 | pub union MaybeUninit<T> {
  4469. | ^^^^^^^^^^^
  4470. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4471. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4472. |
  4473. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4474. | ^^^^^^^^^^
  4475. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4476. --> rust/kernel/types.rs:332:12
  4477. |
  4478. 332 | pub struct Opaque<T> {
  4479. | ^^^^^^
  4480. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4481. --> rust/kernel/block/mq/tag_set.rs:28:12
  4482. |
  4483. 28 | pub struct TagSet<T: Operations> {
  4484. | ^^^^^^
  4485. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4486. = note: 1 redundant requirement hidden
  4487. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4488. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4489. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4490. |
  4491. 598 | pub enum Option<T> {
  4492. | ^^^^^^
  4493. note: required because it appears within the type `DeviceConfigInner`
  4494. --> drivers/block/rnull/configfs.rs:118:8
  4495. |
  4496. 118 | struct DeviceConfigInner {
  4497. | ^^^^^^^^^^^^^^^^^
  4498. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4499. note: required because it appears within the type `DeviceConfig`
  4500. --> drivers/block/rnull/configfs.rs:112:19
  4501. |
  4502. 112 | pub(crate) struct DeviceConfig {
  4503. | ^^^^^^^^^^^^
  4504. = note: required for `Group<DeviceConfig>` to implement `Send`
  4505. = note: 1 redundant requirement hidden
  4506. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4507. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4508. --> rust/kernel/configfs.rs:786:36
  4509. |
  4510. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4511. | ------------------- required by a bound in this associated function
  4512. ...
  4513. 786 | Arc<Group<Child>>: Send,
  4514. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4515. ...
  4516. 824 | impl_item_type!(Subsystem<Data>);
  4517. | -------------------------------- in this macro invocation
  4518. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4519.  
  4520. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  4521. --> drivers/block/rnull/configfs.rs:20:16
  4522. |
  4523. 20 | child: DeviceConfig,
  4524. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  4525. |
  4526. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  4527. note: required because it appears within the type `bindings::bindings_raw::list_head`
  4528. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  4529. |
  4530. 28151 | pub struct list_head {
  4531. | ^^^^^^^^^
  4532. note: required because it appears within the type `blk_mq_tag_set`
  4533. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4534. |
  4535. 93768 | pub struct blk_mq_tag_set {
  4536. | ^^^^^^^^^^^^^^
  4537. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4538. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4539. |
  4540. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4541. | ^^^^^^^^^^^^^
  4542. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4543. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4544. |
  4545. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4546. | ^^^^^^^^^^^^
  4547. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4548. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4549. |
  4550. 355 | pub union MaybeUninit<T> {
  4551. | ^^^^^^^^^^^
  4552. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4553. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4554. |
  4555. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4556. | ^^^^^^^^^^
  4557. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4558. --> rust/kernel/types.rs:332:12
  4559. |
  4560. 332 | pub struct Opaque<T> {
  4561. | ^^^^^^
  4562. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4563. --> rust/kernel/block/mq/tag_set.rs:28:12
  4564. |
  4565. 28 | pub struct TagSet<T: Operations> {
  4566. | ^^^^^^
  4567. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4568. = note: 1 redundant requirement hidden
  4569. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4570. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4571. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4572. |
  4573. 598 | pub enum Option<T> {
  4574. | ^^^^^^
  4575. note: required because it appears within the type `DeviceConfigInner`
  4576. --> drivers/block/rnull/configfs.rs:118:8
  4577. |
  4578. 118 | struct DeviceConfigInner {
  4579. | ^^^^^^^^^^^^^^^^^
  4580. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4581. note: required because it appears within the type `DeviceConfig`
  4582. --> drivers/block/rnull/configfs.rs:112:19
  4583. |
  4584. 112 | pub(crate) struct DeviceConfig {
  4585. | ^^^^^^^^^^^^
  4586. = note: required for `Group<DeviceConfig>` to implement `Send`
  4587. = note: 1 redundant requirement hidden
  4588. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4589. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4590. --> rust/kernel/configfs.rs:786:36
  4591. |
  4592. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4593. | ------------------- required by a bound in this associated function
  4594. ...
  4595. 786 | Arc<Group<Child>>: Send,
  4596. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4597. ...
  4598. 824 | impl_item_type!(Subsystem<Data>);
  4599. | -------------------------------- in this macro invocation
  4600. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4601.  
  4602. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  4603. --> drivers/block/rnull/configfs.rs:20:16
  4604. |
  4605. 20 | child: DeviceConfig,
  4606. | ^^^^^^^^^^^^ `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  4607. |
  4608. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  4609. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  4610. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  4611. |
  4612. 40479 | pub struct rw_semaphore {
  4613. | ^^^^^^^^^^^^
  4614. note: required because it appears within the type `blk_mq_tag_set`
  4615. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4616. |
  4617. 93768 | pub struct blk_mq_tag_set {
  4618. | ^^^^^^^^^^^^^^
  4619. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4620. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4621. |
  4622. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4623. | ^^^^^^^^^^^^^
  4624. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4625. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4626. |
  4627. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4628. | ^^^^^^^^^^^^
  4629. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4630. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4631. |
  4632. 355 | pub union MaybeUninit<T> {
  4633. | ^^^^^^^^^^^
  4634. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4635. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4636. |
  4637. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4638. | ^^^^^^^^^^
  4639. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4640. --> rust/kernel/types.rs:332:12
  4641. |
  4642. 332 | pub struct Opaque<T> {
  4643. | ^^^^^^
  4644. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4645. --> rust/kernel/block/mq/tag_set.rs:28:12
  4646. |
  4647. 28 | pub struct TagSet<T: Operations> {
  4648. | ^^^^^^
  4649. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4650. = note: 1 redundant requirement hidden
  4651. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4652. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4653. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4654. |
  4655. 598 | pub enum Option<T> {
  4656. | ^^^^^^
  4657. note: required because it appears within the type `DeviceConfigInner`
  4658. --> drivers/block/rnull/configfs.rs:118:8
  4659. |
  4660. 118 | struct DeviceConfigInner {
  4661. | ^^^^^^^^^^^^^^^^^
  4662. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4663. note: required because it appears within the type `DeviceConfig`
  4664. --> drivers/block/rnull/configfs.rs:112:19
  4665. |
  4666. 112 | pub(crate) struct DeviceConfig {
  4667. | ^^^^^^^^^^^^
  4668. = note: required for `Group<DeviceConfig>` to implement `Send`
  4669. = note: 1 redundant requirement hidden
  4670. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4671. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4672. --> rust/kernel/configfs.rs:786:36
  4673. |
  4674. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4675. | ------------------- required by a bound in this associated function
  4676. ...
  4677. 786 | Arc<Group<Child>>: Send,
  4678. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4679. ...
  4680. 824 | impl_item_type!(Subsystem<Data>);
  4681. | -------------------------------- in this macro invocation
  4682. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4683.  
  4684. error[E0277]: `*mut u32` cannot be sent between threads safely
  4685. --> drivers/block/rnull/configfs.rs:20:16
  4686. |
  4687. 20 | child: DeviceConfig,
  4688. | ^^^^^^^^^^^^ `*mut u32` cannot be sent between threads safely
  4689. |
  4690. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  4691. note: required because it appears within the type `blk_mq_queue_map`
  4692. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  4693. |
  4694. 93747 | pub struct blk_mq_queue_map {
  4695. | ^^^^^^^^^^^^^^^^
  4696. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  4697. note: required because it appears within the type `blk_mq_tag_set`
  4698. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4699. |
  4700. 93768 | pub struct blk_mq_tag_set {
  4701. | ^^^^^^^^^^^^^^
  4702. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4703. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4704. |
  4705. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4706. | ^^^^^^^^^^^^^
  4707. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4708. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4709. |
  4710. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4711. | ^^^^^^^^^^^^
  4712. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4713. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4714. |
  4715. 355 | pub union MaybeUninit<T> {
  4716. | ^^^^^^^^^^^
  4717. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4718. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4719. |
  4720. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4721. | ^^^^^^^^^^
  4722. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4723. --> rust/kernel/types.rs:332:12
  4724. |
  4725. 332 | pub struct Opaque<T> {
  4726. | ^^^^^^
  4727. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4728. --> rust/kernel/block/mq/tag_set.rs:28:12
  4729. |
  4730. 28 | pub struct TagSet<T: Operations> {
  4731. | ^^^^^^
  4732. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4733. = note: 1 redundant requirement hidden
  4734. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4735. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4736. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4737. |
  4738. 598 | pub enum Option<T> {
  4739. | ^^^^^^
  4740. note: required because it appears within the type `DeviceConfigInner`
  4741. --> drivers/block/rnull/configfs.rs:118:8
  4742. |
  4743. 118 | struct DeviceConfigInner {
  4744. | ^^^^^^^^^^^^^^^^^
  4745. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4746. note: required because it appears within the type `DeviceConfig`
  4747. --> drivers/block/rnull/configfs.rs:112:19
  4748. |
  4749. 112 | pub(crate) struct DeviceConfig {
  4750. | ^^^^^^^^^^^^
  4751. = note: required for `Group<DeviceConfig>` to implement `Send`
  4752. = note: 1 redundant requirement hidden
  4753. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4754. note: required by a bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4755. --> rust/kernel/configfs.rs:786:36
  4756. |
  4757. 780 | pub const fn new_with_child_ctor<const N: usize, Ch...
  4758. | ------------------- required by a bound in this associated function
  4759. ...
  4760. 786 | Arc<Group<Child>>: Send,
  4761. | ^^^^ required by this bound in `ItemType::<Subsystem<Data>, Data>::new_with_child_ctor`
  4762. ...
  4763. 824 | impl_item_type!(Subsystem<Data>);
  4764. | -------------------------------- in this macro invocation
  4765. = note: this error originates in the macro `impl_item_type` (in Nightly builds, run with -Z macro-backtrace for more info)
  4766.  
  4767. error[E0277]: `UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  4768. --> drivers/block/rnull/configfs.rs:51:25
  4769. |
  4770. 51 | let item_type = configfs_attrs! {
  4771. | _________________________^
  4772. 52 | | container: configfs::Group<DeviceConfig>,
  4773. 53 | | data: DeviceConfig,
  4774. 54 | | attributes: [
  4775. ... |
  4776. 61 | | ],
  4777. 62 | | };
  4778. | | ^
  4779. | | |
  4780. | |_________`UnsafeCell<MaybeUninit<blk_mq_tag_set>>` cannot be shared between threads safely
  4781. | required by a bound introduced by this call
  4782. |
  4783. = help: within `TagSet<NullBlkDevice>`, the trait `Sync` is not implemented for `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4784. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4785. --> rust/kernel/types.rs:332:12
  4786. |
  4787. 332 | pub struct Opaque<T> {
  4788. | ^^^^^^
  4789. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4790. --> rust/kernel/block/mq/tag_set.rs:28:12
  4791. |
  4792. 28 | pub struct TagSet<T: Operations> {
  4793. | ^^^^^^
  4794. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4795. = note: 1 redundant requirement hidden
  4796. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4797. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4798. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4799. |
  4800. 598 | pub enum Option<T> {
  4801. | ^^^^^^
  4802. note: required because it appears within the type `DeviceConfigInner`
  4803. --> drivers/block/rnull/configfs.rs:118:8
  4804. |
  4805. 118 | struct DeviceConfigInner {
  4806. | ^^^^^^^^^^^^^^^^^
  4807. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4808. note: required because it appears within the type `DeviceConfig`
  4809. --> drivers/block/rnull/configfs.rs:112:19
  4810. |
  4811. 112 | pub(crate) struct DeviceConfig {
  4812. | ^^^^^^^^^^^^
  4813. = note: required for `Group<DeviceConfig>` to implement `Send`
  4814. = note: 1 redundant requirement hidden
  4815. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4816. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  4817. --> rust/kernel/configfs.rs:807:35
  4818. |
  4819. 802 | pub const fn new<const N: usize>(
  4820. | --- required by a bound in this associated function
  4821. ...
  4822. 807 | Arc<Group<Data>>: Send,
  4823. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  4824. ...
  4825. 825 | impl_item_type!(Group<Data>);
  4826. | ---------------------------- in this macro invocation
  4827. = 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)
  4828.  
  4829. error[E0277]: `*const blk_mq_ops` cannot be sent between threads safely
  4830. --> drivers/block/rnull/configfs.rs:51:25
  4831. |
  4832. 51 | let item_type = configfs_attrs! {
  4833. | _________________________^
  4834. 52 | | container: configfs::Group<DeviceConfig>,
  4835. 53 | | data: DeviceConfig,
  4836. 54 | | attributes: [
  4837. ... |
  4838. 61 | | ],
  4839. 62 | | };
  4840. | | ^
  4841. | | |
  4842. | |_________`*const blk_mq_ops` cannot be sent between threads safely
  4843. | required by a bound introduced by this call
  4844. |
  4845. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*const blk_mq_ops`
  4846. note: required because it appears within the type `blk_mq_tag_set`
  4847. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4848. |
  4849. 93768 | pub struct blk_mq_tag_set {
  4850. | ^^^^^^^^^^^^^^
  4851. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4852. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4853. |
  4854. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4855. | ^^^^^^^^^^^^^
  4856. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4857. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4858. |
  4859. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4860. | ^^^^^^^^^^^^
  4861. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4862. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4863. |
  4864. 355 | pub union MaybeUninit<T> {
  4865. | ^^^^^^^^^^^
  4866. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4867. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4868. |
  4869. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4870. | ^^^^^^^^^^
  4871. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4872. --> rust/kernel/types.rs:332:12
  4873. |
  4874. 332 | pub struct Opaque<T> {
  4875. | ^^^^^^
  4876. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4877. --> rust/kernel/block/mq/tag_set.rs:28:12
  4878. |
  4879. 28 | pub struct TagSet<T: Operations> {
  4880. | ^^^^^^
  4881. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4882. = note: 1 redundant requirement hidden
  4883. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4884. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4885. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4886. |
  4887. 598 | pub enum Option<T> {
  4888. | ^^^^^^
  4889. note: required because it appears within the type `DeviceConfigInner`
  4890. --> drivers/block/rnull/configfs.rs:118:8
  4891. |
  4892. 118 | struct DeviceConfigInner {
  4893. | ^^^^^^^^^^^^^^^^^
  4894. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4895. note: required because it appears within the type `DeviceConfig`
  4896. --> drivers/block/rnull/configfs.rs:112:19
  4897. |
  4898. 112 | pub(crate) struct DeviceConfig {
  4899. | ^^^^^^^^^^^^
  4900. = note: required for `Group<DeviceConfig>` to implement `Send`
  4901. = note: 1 redundant requirement hidden
  4902. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4903. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  4904. --> rust/kernel/configfs.rs:807:35
  4905. |
  4906. 802 | pub const fn new<const N: usize>(
  4907. | --- required by a bound in this associated function
  4908. ...
  4909. 807 | Arc<Group<Data>>: Send,
  4910. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  4911. ...
  4912. 825 | impl_item_type!(Group<Data>);
  4913. | ---------------------------- in this macro invocation
  4914. = 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)
  4915.  
  4916. error[E0277]: `*mut c_void` cannot be sent between threads safely
  4917. --> drivers/block/rnull/configfs.rs:51:25
  4918. |
  4919. 51 | let item_type = configfs_attrs! {
  4920. | _________________________^
  4921. 52 | | container: configfs::Group<DeviceConfig>,
  4922. 53 | | data: DeviceConfig,
  4923. 54 | | attributes: [
  4924. ... |
  4925. 61 | | ],
  4926. 62 | | };
  4927. | | ^
  4928. | | |
  4929. | |_________`*mut c_void` cannot be sent between threads safely
  4930. | required by a bound introduced by this call
  4931. |
  4932. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut c_void`
  4933. note: required because it appears within the type `blk_mq_tag_set`
  4934. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  4935. |
  4936. 93768 | pub struct blk_mq_tag_set {
  4937. | ^^^^^^^^^^^^^^
  4938. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  4939. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  4940. |
  4941. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  4942. | ^^^^^^^^^^^^^
  4943. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  4944. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  4945. |
  4946. 158 | pub struct ManuallyDrop<T: ?Sized> {
  4947. | ^^^^^^^^^^^^
  4948. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  4949. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  4950. |
  4951. 355 | pub union MaybeUninit<T> {
  4952. | ^^^^^^^^^^^
  4953. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  4954. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  4955. |
  4956. 2323 | pub struct UnsafeCell<T: ?Sized> {
  4957. | ^^^^^^^^^^
  4958. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  4959. --> rust/kernel/types.rs:332:12
  4960. |
  4961. 332 | pub struct Opaque<T> {
  4962. | ^^^^^^
  4963. note: required because it appears within the type `TagSet<NullBlkDevice>`
  4964. --> rust/kernel/block/mq/tag_set.rs:28:12
  4965. |
  4966. 28 | pub struct TagSet<T: Operations> {
  4967. | ^^^^^^
  4968. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  4969. = note: 1 redundant requirement hidden
  4970. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  4971. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  4972. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  4973. |
  4974. 598 | pub enum Option<T> {
  4975. | ^^^^^^
  4976. note: required because it appears within the type `DeviceConfigInner`
  4977. --> drivers/block/rnull/configfs.rs:118:8
  4978. |
  4979. 118 | struct DeviceConfigInner {
  4980. | ^^^^^^^^^^^^^^^^^
  4981. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  4982. note: required because it appears within the type `DeviceConfig`
  4983. --> drivers/block/rnull/configfs.rs:112:19
  4984. |
  4985. 112 | pub(crate) struct DeviceConfig {
  4986. | ^^^^^^^^^^^^
  4987. = note: required for `Group<DeviceConfig>` to implement `Send`
  4988. = note: 1 redundant requirement hidden
  4989. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  4990. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  4991. --> rust/kernel/configfs.rs:807:35
  4992. |
  4993. 802 | pub const fn new<const N: usize>(
  4994. | --- required by a bound in this associated function
  4995. ...
  4996. 807 | Arc<Group<Data>>: Send,
  4997. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  4998. ...
  4999. 825 | impl_item_type!(Group<Data>);
  5000. | ---------------------------- in this macro invocation
  5001. = 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)
  5002.  
  5003. error[E0277]: `*mut *mut blk_mq_tags` cannot be sent between threads safely
  5004. --> drivers/block/rnull/configfs.rs:51:25
  5005. |
  5006. 51 | let item_type = configfs_attrs! {
  5007. | _________________________^
  5008. 52 | | container: configfs::Group<DeviceConfig>,
  5009. 53 | | data: DeviceConfig,
  5010. 54 | | attributes: [
  5011. ... |
  5012. 61 | | ],
  5013. 62 | | };
  5014. | | ^
  5015. | | |
  5016. | |_________`*mut *mut blk_mq_tags` cannot be sent between threads safely
  5017. | required by a bound introduced by this call
  5018. |
  5019. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut *mut blk_mq_tags`
  5020. note: required because it appears within the type `blk_mq_tag_set`
  5021. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5022. |
  5023. 93768 | pub struct blk_mq_tag_set {
  5024. | ^^^^^^^^^^^^^^
  5025. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5026. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5027. |
  5028. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5029. | ^^^^^^^^^^^^^
  5030. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5031. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5032. |
  5033. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5034. | ^^^^^^^^^^^^
  5035. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5036. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5037. |
  5038. 355 | pub union MaybeUninit<T> {
  5039. | ^^^^^^^^^^^
  5040. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5041. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5042. |
  5043. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5044. | ^^^^^^^^^^
  5045. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5046. --> rust/kernel/types.rs:332:12
  5047. |
  5048. 332 | pub struct Opaque<T> {
  5049. | ^^^^^^
  5050. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5051. --> rust/kernel/block/mq/tag_set.rs:28:12
  5052. |
  5053. 28 | pub struct TagSet<T: Operations> {
  5054. | ^^^^^^
  5055. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5056. = note: 1 redundant requirement hidden
  5057. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5058. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5059. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5060. |
  5061. 598 | pub enum Option<T> {
  5062. | ^^^^^^
  5063. note: required because it appears within the type `DeviceConfigInner`
  5064. --> drivers/block/rnull/configfs.rs:118:8
  5065. |
  5066. 118 | struct DeviceConfigInner {
  5067. | ^^^^^^^^^^^^^^^^^
  5068. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5069. note: required because it appears within the type `DeviceConfig`
  5070. --> drivers/block/rnull/configfs.rs:112:19
  5071. |
  5072. 112 | pub(crate) struct DeviceConfig {
  5073. | ^^^^^^^^^^^^
  5074. = note: required for `Group<DeviceConfig>` to implement `Send`
  5075. = note: 1 redundant requirement hidden
  5076. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5077. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5078. --> rust/kernel/configfs.rs:807:35
  5079. |
  5080. 802 | pub const fn new<const N: usize>(
  5081. | --- required by a bound in this associated function
  5082. ...
  5083. 807 | Arc<Group<Data>>: Send,
  5084. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5085. ...
  5086. 825 | impl_item_type!(Group<Data>);
  5087. | ---------------------------- in this macro invocation
  5088. = 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)
  5089.  
  5090. error[E0277]: `*mut blk_mq_tags` cannot be sent between threads safely
  5091. --> drivers/block/rnull/configfs.rs:51:25
  5092. |
  5093. 51 | let item_type = configfs_attrs! {
  5094. | _________________________^
  5095. 52 | | container: configfs::Group<DeviceConfig>,
  5096. 53 | | data: DeviceConfig,
  5097. 54 | | attributes: [
  5098. ... |
  5099. 61 | | ],
  5100. 62 | | };
  5101. | | ^
  5102. | | |
  5103. | |_________`*mut blk_mq_tags` cannot be sent between threads safely
  5104. | required by a bound introduced by this call
  5105. |
  5106. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut blk_mq_tags`
  5107. note: required because it appears within the type `blk_mq_tag_set`
  5108. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5109. |
  5110. 93768 | pub struct blk_mq_tag_set {
  5111. | ^^^^^^^^^^^^^^
  5112. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5113. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5114. |
  5115. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5116. | ^^^^^^^^^^^^^
  5117. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5118. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5119. |
  5120. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5121. | ^^^^^^^^^^^^
  5122. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5123. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5124. |
  5125. 355 | pub union MaybeUninit<T> {
  5126. | ^^^^^^^^^^^
  5127. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5128. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5129. |
  5130. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5131. | ^^^^^^^^^^
  5132. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5133. --> rust/kernel/types.rs:332:12
  5134. |
  5135. 332 | pub struct Opaque<T> {
  5136. | ^^^^^^
  5137. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5138. --> rust/kernel/block/mq/tag_set.rs:28:12
  5139. |
  5140. 28 | pub struct TagSet<T: Operations> {
  5141. | ^^^^^^
  5142. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5143. = note: 1 redundant requirement hidden
  5144. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5145. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5146. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5147. |
  5148. 598 | pub enum Option<T> {
  5149. | ^^^^^^
  5150. note: required because it appears within the type `DeviceConfigInner`
  5151. --> drivers/block/rnull/configfs.rs:118:8
  5152. |
  5153. 118 | struct DeviceConfigInner {
  5154. | ^^^^^^^^^^^^^^^^^
  5155. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5156. note: required because it appears within the type `DeviceConfig`
  5157. --> drivers/block/rnull/configfs.rs:112:19
  5158. |
  5159. 112 | pub(crate) struct DeviceConfig {
  5160. | ^^^^^^^^^^^^
  5161. = note: required for `Group<DeviceConfig>` to implement `Send`
  5162. = note: 1 redundant requirement hidden
  5163. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5164. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5165. --> rust/kernel/configfs.rs:807:35
  5166. |
  5167. 802 | pub const fn new<const N: usize>(
  5168. | --- required by a bound in this associated function
  5169. ...
  5170. 807 | Arc<Group<Data>>: Send,
  5171. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5172. ...
  5173. 825 | impl_item_type!(Group<Data>);
  5174. | ---------------------------- in this macro invocation
  5175. = 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)
  5176.  
  5177. error[E0277]: `*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  5178. --> drivers/block/rnull/configfs.rs:51:25
  5179. |
  5180. 51 | let item_type = configfs_attrs! {
  5181. | _________________________^
  5182. 52 | | container: configfs::Group<DeviceConfig>,
  5183. 53 | | data: DeviceConfig,
  5184. 54 | | attributes: [
  5185. ... |
  5186. 61 | | ],
  5187. 62 | | };
  5188. | | ^
  5189. | | |
  5190. | |_________`*mut bindings::bindings_raw::srcu_struct` cannot be sent between threads safely
  5191. | required by a bound introduced by this call
  5192. |
  5193. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::srcu_struct`
  5194. note: required because it appears within the type `blk_mq_tag_set`
  5195. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5196. |
  5197. 93768 | pub struct blk_mq_tag_set {
  5198. | ^^^^^^^^^^^^^^
  5199. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5200. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5201. |
  5202. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5203. | ^^^^^^^^^^^^^
  5204. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5205. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5206. |
  5207. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5208. | ^^^^^^^^^^^^
  5209. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5210. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5211. |
  5212. 355 | pub union MaybeUninit<T> {
  5213. | ^^^^^^^^^^^
  5214. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5215. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5216. |
  5217. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5218. | ^^^^^^^^^^
  5219. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5220. --> rust/kernel/types.rs:332:12
  5221. |
  5222. 332 | pub struct Opaque<T> {
  5223. | ^^^^^^
  5224. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5225. --> rust/kernel/block/mq/tag_set.rs:28:12
  5226. |
  5227. 28 | pub struct TagSet<T: Operations> {
  5228. | ^^^^^^
  5229. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5230. = note: 1 redundant requirement hidden
  5231. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5232. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5233. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5234. |
  5235. 598 | pub enum Option<T> {
  5236. | ^^^^^^
  5237. note: required because it appears within the type `DeviceConfigInner`
  5238. --> drivers/block/rnull/configfs.rs:118:8
  5239. |
  5240. 118 | struct DeviceConfigInner {
  5241. | ^^^^^^^^^^^^^^^^^
  5242. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5243. note: required because it appears within the type `DeviceConfig`
  5244. --> drivers/block/rnull/configfs.rs:112:19
  5245. |
  5246. 112 | pub(crate) struct DeviceConfig {
  5247. | ^^^^^^^^^^^^
  5248. = note: required for `Group<DeviceConfig>` to implement `Send`
  5249. = note: 1 redundant requirement hidden
  5250. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5251. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5252. --> rust/kernel/configfs.rs:807:35
  5253. |
  5254. 802 | pub const fn new<const N: usize>(
  5255. | --- required by a bound in this associated function
  5256. ...
  5257. 807 | Arc<Group<Data>>: Send,
  5258. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5259. ...
  5260. 825 | impl_item_type!(Group<Data>);
  5261. | ---------------------------- in this macro invocation
  5262. = 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)
  5263.  
  5264. error[E0277]: `*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  5265. --> drivers/block/rnull/configfs.rs:51:25
  5266. |
  5267. 51 | let item_type = configfs_attrs! {
  5268. | _________________________^
  5269. 52 | | container: configfs::Group<DeviceConfig>,
  5270. 53 | | data: DeviceConfig,
  5271. 54 | | attributes: [
  5272. ... |
  5273. 61 | | ],
  5274. 62 | | };
  5275. | | ^
  5276. | | |
  5277. | |_________`*mut bindings::bindings_raw::mutex_waiter` cannot be sent between threads safely
  5278. | required by a bound introduced by this call
  5279. |
  5280. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::mutex_waiter`
  5281. note: required because it appears within the type `bindings::bindings_raw::mutex`
  5282. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:35653:12
  5283. |
  5284. 35653 | pub struct mutex {
  5285. | ^^^^^
  5286. note: required because it appears within the type `blk_mq_tag_set`
  5287. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5288. |
  5289. 93768 | pub struct blk_mq_tag_set {
  5290. | ^^^^^^^^^^^^^^
  5291. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5292. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5293. |
  5294. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5295. | ^^^^^^^^^^^^^
  5296. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5297. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5298. |
  5299. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5300. | ^^^^^^^^^^^^
  5301. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5302. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5303. |
  5304. 355 | pub union MaybeUninit<T> {
  5305. | ^^^^^^^^^^^
  5306. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5307. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5308. |
  5309. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5310. | ^^^^^^^^^^
  5311. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5312. --> rust/kernel/types.rs:332:12
  5313. |
  5314. 332 | pub struct Opaque<T> {
  5315. | ^^^^^^
  5316. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5317. --> rust/kernel/block/mq/tag_set.rs:28:12
  5318. |
  5319. 28 | pub struct TagSet<T: Operations> {
  5320. | ^^^^^^
  5321. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5322. = note: 1 redundant requirement hidden
  5323. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5324. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5325. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5326. |
  5327. 598 | pub enum Option<T> {
  5328. | ^^^^^^
  5329. note: required because it appears within the type `DeviceConfigInner`
  5330. --> drivers/block/rnull/configfs.rs:118:8
  5331. |
  5332. 118 | struct DeviceConfigInner {
  5333. | ^^^^^^^^^^^^^^^^^
  5334. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5335. note: required because it appears within the type `DeviceConfig`
  5336. --> drivers/block/rnull/configfs.rs:112:19
  5337. |
  5338. 112 | pub(crate) struct DeviceConfig {
  5339. | ^^^^^^^^^^^^
  5340. = note: required for `Group<DeviceConfig>` to implement `Send`
  5341. = note: 1 redundant requirement hidden
  5342. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5343. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5344. --> rust/kernel/configfs.rs:807:35
  5345. |
  5346. 802 | pub const fn new<const N: usize>(
  5347. | --- required by a bound in this associated function
  5348. ...
  5349. 807 | Arc<Group<Data>>: Send,
  5350. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5351. ...
  5352. 825 | impl_item_type!(Group<Data>);
  5353. | ---------------------------- in this macro invocation
  5354. = 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)
  5355.  
  5356. error[E0277]: `*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  5357. --> drivers/block/rnull/configfs.rs:51:25
  5358. |
  5359. 51 | let item_type = configfs_attrs! {
  5360. | _________________________^
  5361. 52 | | container: configfs::Group<DeviceConfig>,
  5362. 53 | | data: DeviceConfig,
  5363. 54 | | attributes: [
  5364. ... |
  5365. 61 | | ],
  5366. 62 | | };
  5367. | | ^
  5368. | | |
  5369. | |_________`*mut bindings::bindings_raw::list_head` cannot be sent between threads safely
  5370. | required by a bound introduced by this call
  5371. |
  5372. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::list_head`
  5373. note: required because it appears within the type `bindings::bindings_raw::list_head`
  5374. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:28151:12
  5375. |
  5376. 28151 | pub struct list_head {
  5377. | ^^^^^^^^^
  5378. note: required because it appears within the type `blk_mq_tag_set`
  5379. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5380. |
  5381. 93768 | pub struct blk_mq_tag_set {
  5382. | ^^^^^^^^^^^^^^
  5383. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5384. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5385. |
  5386. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5387. | ^^^^^^^^^^^^^
  5388. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5389. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5390. |
  5391. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5392. | ^^^^^^^^^^^^
  5393. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5394. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5395. |
  5396. 355 | pub union MaybeUninit<T> {
  5397. | ^^^^^^^^^^^
  5398. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5399. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5400. |
  5401. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5402. | ^^^^^^^^^^
  5403. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5404. --> rust/kernel/types.rs:332:12
  5405. |
  5406. 332 | pub struct Opaque<T> {
  5407. | ^^^^^^
  5408. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5409. --> rust/kernel/block/mq/tag_set.rs:28:12
  5410. |
  5411. 28 | pub struct TagSet<T: Operations> {
  5412. | ^^^^^^
  5413. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5414. = note: 1 redundant requirement hidden
  5415. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5416. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5417. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5418. |
  5419. 598 | pub enum Option<T> {
  5420. | ^^^^^^
  5421. note: required because it appears within the type `DeviceConfigInner`
  5422. --> drivers/block/rnull/configfs.rs:118:8
  5423. |
  5424. 118 | struct DeviceConfigInner {
  5425. | ^^^^^^^^^^^^^^^^^
  5426. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5427. note: required because it appears within the type `DeviceConfig`
  5428. --> drivers/block/rnull/configfs.rs:112:19
  5429. |
  5430. 112 | pub(crate) struct DeviceConfig {
  5431. | ^^^^^^^^^^^^
  5432. = note: required for `Group<DeviceConfig>` to implement `Send`
  5433. = note: 1 redundant requirement hidden
  5434. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5435. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5436. --> rust/kernel/configfs.rs:807:35
  5437. |
  5438. 802 | pub const fn new<const N: usize>(
  5439. | --- required by a bound in this associated function
  5440. ...
  5441. 807 | Arc<Group<Data>>: Send,
  5442. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5443. ...
  5444. 825 | impl_item_type!(Group<Data>);
  5445. | ---------------------------- in this macro invocation
  5446. = 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)
  5447.  
  5448. error[E0277]: `*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  5449. --> drivers/block/rnull/configfs.rs:51:25
  5450. |
  5451. 51 | let item_type = configfs_attrs! {
  5452. | _________________________^
  5453. 52 | | container: configfs::Group<DeviceConfig>,
  5454. 53 | | data: DeviceConfig,
  5455. 54 | | attributes: [
  5456. ... |
  5457. 61 | | ],
  5458. 62 | | };
  5459. | | ^
  5460. | | |
  5461. | |_________`*mut bindings::bindings_raw::rwsem_waiter` cannot be sent between threads safely
  5462. | required by a bound introduced by this call
  5463. |
  5464. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut bindings::bindings_raw::rwsem_waiter`
  5465. note: required because it appears within the type `bindings::bindings_raw::rw_semaphore`
  5466. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:40479:12
  5467. |
  5468. 40479 | pub struct rw_semaphore {
  5469. | ^^^^^^^^^^^^
  5470. note: required because it appears within the type `blk_mq_tag_set`
  5471. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5472. |
  5473. 93768 | pub struct blk_mq_tag_set {
  5474. | ^^^^^^^^^^^^^^
  5475. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5476. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5477. |
  5478. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5479. | ^^^^^^^^^^^^^
  5480. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5481. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5482. |
  5483. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5484. | ^^^^^^^^^^^^
  5485. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5486. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5487. |
  5488. 355 | pub union MaybeUninit<T> {
  5489. | ^^^^^^^^^^^
  5490. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5491. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5492. |
  5493. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5494. | ^^^^^^^^^^
  5495. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5496. --> rust/kernel/types.rs:332:12
  5497. |
  5498. 332 | pub struct Opaque<T> {
  5499. | ^^^^^^
  5500. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5501. --> rust/kernel/block/mq/tag_set.rs:28:12
  5502. |
  5503. 28 | pub struct TagSet<T: Operations> {
  5504. | ^^^^^^
  5505. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5506. = note: 1 redundant requirement hidden
  5507. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5508. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5509. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5510. |
  5511. 598 | pub enum Option<T> {
  5512. | ^^^^^^
  5513. note: required because it appears within the type `DeviceConfigInner`
  5514. --> drivers/block/rnull/configfs.rs:118:8
  5515. |
  5516. 118 | struct DeviceConfigInner {
  5517. | ^^^^^^^^^^^^^^^^^
  5518. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5519. note: required because it appears within the type `DeviceConfig`
  5520. --> drivers/block/rnull/configfs.rs:112:19
  5521. |
  5522. 112 | pub(crate) struct DeviceConfig {
  5523. | ^^^^^^^^^^^^
  5524. = note: required for `Group<DeviceConfig>` to implement `Send`
  5525. = note: 1 redundant requirement hidden
  5526. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5527. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5528. --> rust/kernel/configfs.rs:807:35
  5529. |
  5530. 802 | pub const fn new<const N: usize>(
  5531. | --- required by a bound in this associated function
  5532. ...
  5533. 807 | Arc<Group<Data>>: Send,
  5534. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5535. ...
  5536. 825 | impl_item_type!(Group<Data>);
  5537. | ---------------------------- in this macro invocation
  5538. = 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)
  5539.  
  5540. error[E0277]: `*mut u32` cannot be sent between threads safely
  5541. --> drivers/block/rnull/configfs.rs:51:25
  5542. |
  5543. 51 | let item_type = configfs_attrs! {
  5544. | _________________________^
  5545. 52 | | container: configfs::Group<DeviceConfig>,
  5546. 53 | | data: DeviceConfig,
  5547. 54 | | attributes: [
  5548. ... |
  5549. 61 | | ],
  5550. 62 | | };
  5551. | | ^
  5552. | | |
  5553. | |_________`*mut u32` cannot be sent between threads safely
  5554. | required by a bound introduced by this call
  5555. |
  5556. = help: within `TagSet<NullBlkDevice>`, the trait `Send` is not implemented for `*mut u32`
  5557. note: required because it appears within the type `blk_mq_queue_map`
  5558. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93747:12
  5559. |
  5560. 93747 | pub struct blk_mq_queue_map {
  5561. | ^^^^^^^^^^^^^^^^
  5562. = note: required because it appears within the type `[blk_mq_queue_map; 3]`
  5563. note: required because it appears within the type `blk_mq_tag_set`
  5564. --> /home/alice/Coding/Linux/rust/bindings/bindings_generated.rs:93768:12
  5565. |
  5566. 93768 | pub struct blk_mq_tag_set {
  5567. | ^^^^^^^^^^^^^^
  5568. note: required because it appears within the type `MaybeDangling<blk_mq_tag_set>`
  5569. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_dangling.rs:73:12
  5570. |
  5571. 73 | pub struct MaybeDangling<P: ?Sized>(P);
  5572. | ^^^^^^^^^^^^^
  5573. note: required because it appears within the type `ManuallyDrop<blk_mq_tag_set>`
  5574. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/manually_drop.rs:158:12
  5575. |
  5576. 158 | pub struct ManuallyDrop<T: ?Sized> {
  5577. | ^^^^^^^^^^^^
  5578. note: required because it appears within the type `MaybeUninit<blk_mq_tag_set>`
  5579. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/mem/maybe_uninit.rs:355:11
  5580. |
  5581. 355 | pub union MaybeUninit<T> {
  5582. | ^^^^^^^^^^^
  5583. note: required because it appears within the type `UnsafeCell<MaybeUninit<blk_mq_tag_set>>`
  5584. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/cell.rs:2323:12
  5585. |
  5586. 2323 | pub struct UnsafeCell<T: ?Sized> {
  5587. | ^^^^^^^^^^
  5588. note: required because it appears within the type `Opaque<blk_mq_tag_set>`
  5589. --> rust/kernel/types.rs:332:12
  5590. |
  5591. 332 | pub struct Opaque<T> {
  5592. | ^^^^^^
  5593. note: required because it appears within the type `TagSet<NullBlkDevice>`
  5594. --> rust/kernel/block/mq/tag_set.rs:28:12
  5595. |
  5596. 28 | pub struct TagSet<T: Operations> {
  5597. | ^^^^^^
  5598. = note: required for `Arc<TagSet<NullBlkDevice>>` to implement `Send`
  5599. = note: 1 redundant requirement hidden
  5600. = note: required for `GenDisk<NullBlkDevice>` to implement `Send`
  5601. note: required because it appears within the type `Option<GenDisk<NullBlkDevice>>`
  5602. --> /usr/lib/rust/1.98.1/lib/rustlib/src/rust/library/core/src/option.rs:598:10
  5603. |
  5604. 598 | pub enum Option<T> {
  5605. | ^^^^^^
  5606. note: required because it appears within the type `DeviceConfigInner`
  5607. --> drivers/block/rnull/configfs.rs:118:8
  5608. |
  5609. 118 | struct DeviceConfigInner {
  5610. | ^^^^^^^^^^^^^^^^^
  5611. = note: required for `Lock<DeviceConfigInner, MutexBackend>` to implement `Send`
  5612. note: required because it appears within the type `DeviceConfig`
  5613. --> drivers/block/rnull/configfs.rs:112:19
  5614. |
  5615. 112 | pub(crate) struct DeviceConfig {
  5616. | ^^^^^^^^^^^^
  5617. = note: required for `Group<DeviceConfig>` to implement `Send`
  5618. = note: 1 redundant requirement hidden
  5619. = note: required for `Arc<Group<DeviceConfig>>` to implement `Send`
  5620. note: required by a bound in `ItemType::<Group<Data>, Data>::new`
  5621. --> rust/kernel/configfs.rs:807:35
  5622. |
  5623. 802 | pub const fn new<const N: usize>(
  5624. | --- required by a bound in this associated function
  5625. ...
  5626. 807 | Arc<Group<Data>>: Send,
  5627. | ^^^^ required by this bound in `ItemType::<Group<Data>, Data>::new`
  5628. ...
  5629. 825 | impl_item_type!(Group<Data>);
  5630. | ---------------------------- in this macro invocation
  5631. = 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)
  5632.  
  5633. error: aborting due to 80 previous errors
  5634.  
  5635. For more information about this error, try `rustc --explain E0277`.
  5636. make[5]: *** [scripts/Makefile.build:361: drivers/block/rnull/rnull.o] Error 1
  5637. make[4]: *** [scripts/Makefile.build:551: drivers/block/rnull] Error 2
  5638. make[3]: *** [scripts/Makefile.build:551: drivers/block] Error 2
  5639. make[3]: *** Waiting for unfinished jobs....
  5640. CC drivers/mfd/stmpe-i2c.o
  5641. CC drivers/mfd/stmpe-spi.o
  5642. CC drivers/mfd/mfd-core.o
  5643. CC [M] drivers/misc/apds9802als.o
  5644. CC drivers/mfd/axp20x.o
  5645. CC [M] drivers/misc/isl29003.o
  5646. CC drivers/mfd/axp20x-i2c.o
  5647. CC drivers/mfd/max77620.o
  5648. CC [M] drivers/misc/isl29020.o
  5649. CC drivers/mfd/max77686.o
  5650. CC [M] drivers/misc/tsl2550.o
  5651. CC drivers/mfd/syscon.o
  5652. CC [M] drivers/misc/dw-xdata-pcie.o
  5653. CC [M] drivers/misc/xilinx_sdfec.o
  5654. CC [M] drivers/misc/ntsync.o
  5655. CC drivers/mfd/vexpress-sysreg.o
  5656. CC [M] drivers/misc/hi6421v600-irq.o
  5657. CC drivers/mfd/as3722.o
  5658. CC [M] drivers/misc/open-dice.o
  5659. CC drivers/mfd/rohm-pwrbutton.o
  5660. CC [M] drivers/misc/vcpu_stall_detector.o
  5661. CC drivers/mfd/rohm-bd718x7.o
  5662. CC [M] drivers/misc/tps6594-esm.o
  5663. CC [M] drivers/mfd/sm501.o
  5664. CC [M] drivers/misc/tps6594-pfsm.o
  5665. CC [M] drivers/mfd/bd9571mwv.o
  5666. CC [M] drivers/misc/nsm.o
  5667. CC [M] drivers/mfd/cros_ec_dev.o
  5668. CC [M] drivers/misc/altera-stapl/altera-jtag.o
  5669. CC [M] drivers/mfd/cs42l43.o
  5670. CC [M] drivers/misc/vmw_vmci/vmci_context.o
  5671. CC [M] drivers/misc/vmw_vmci/vmci_datagram.o
  5672. CC [M] drivers/misc/vmw_vmci/vmci_doorbell.o
  5673. CC [M] drivers/misc/altera-stapl/altera-comp.o
  5674. CC [M] drivers/misc/vmw_vmci/vmci_driver.o
  5675. CC [M] drivers/misc/altera-stapl/altera.o
  5676. CC [M] drivers/misc/altera-stapl/altera-lpt.o
  5677. CC [M] drivers/misc/bcm-vk/bcm_vk_dev.o
  5678. CC [M] drivers/mfd/cs42l43-i2c.o
  5679. CC [M] drivers/mfd/cs42l43-sdw.o
  5680. CC [M] drivers/misc/vmw_vmci/vmci_event.o
  5681. CC [M] drivers/misc/uacce/uacce.o
  5682. CC [M] drivers/misc/vmw_vmci/vmci_guest.o
  5683. LD [M] drivers/misc/altera-stapl/altera-stapl.o
  5684. CC [M] drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.o
  5685. CC [M] drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.o
  5686. CC [M] drivers/misc/bcm-vk/bcm_vk_msg.o
  5687. CC [M] drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.o
  5688. CC [M] drivers/mfd/macsmc.o
  5689. CC [M] drivers/misc/vmw_vmci/vmci_handle_array.o
  5690. CC [M] drivers/misc/vmw_vmci/vmci_host.o
  5691. CC [M] drivers/misc/bcm-vk/bcm_vk_sg.o
  5692. CC [M] drivers/misc/bcm-vk/bcm_vk_tty.o
  5693. CC [M] drivers/mfd/wcd934x.o
  5694. CC [M] drivers/misc/vmw_vmci/vmci_queue_pair.o
  5695. CC [M] drivers/misc/vmw_vmci/vmci_resource.o
  5696. CC [M] drivers/misc/vmw_vmci/vmci_route.o
  5697. LD [M] drivers/misc/bcm-vk/bcm_vk.o
  5698. CC [M] drivers/mfd/wm8994-core.o
  5699. CC [M] drivers/mfd/wm8994-irq.o
  5700. CC [M] drivers/misc/rp1/rp1_pci.o
  5701. AR drivers/misc/built-in.a
  5702. CC [M] drivers/mfd/wm8994-regmap.o
  5703. CC [M] drivers/mfd/cs40l50-core.o
  5704. LD [M] drivers/misc/vmw_vmci/vmw_vmci.o
  5705. CC [M] drivers/mfd/cs40l50-i2c.o
  5706. CC [M] drivers/mfd/cs40l50-spi.o
  5707. CC [M] drivers/mfd/tps65086.o
  5708. CC [M] drivers/mfd/tps65219.o
  5709. CC [M] drivers/mfd/tps6594-core.o
  5710. CC [M] drivers/mfd/tps6594-i2c.o
  5711. CC [M] drivers/mfd/max77650.o
  5712. CC [M] drivers/mfd/max77705.o
  5713. CC [M] drivers/mfd/max77714.o
  5714. CC [M] drivers/mfd/max77759.o
  5715. CC [M] drivers/mfd/adp5585.o
  5716. CC [M] drivers/mfd/vx855.o
  5717. CC [M] drivers/mfd/rk8xx-core.o
  5718. CC [M] drivers/mfd/rk8xx-i2c.o
  5719. CC [M] drivers/mfd/rk8xx-spi.o
  5720. CC [M] drivers/mfd/hi6421-pmic-core.o
  5721. CC [M] drivers/mfd/hi6421-spmi-pmic.o
  5722. CC [M] drivers/mfd/dln2.o
  5723. CC [M] drivers/mfd/rt4831.o
  5724. CC [M] drivers/mfd/rt5033.o
  5725. CC [M] drivers/mfd/rt5120.o
  5726. CC [M] drivers/mfd/rohm-bd96801.o
  5727. CC [M] drivers/mfd/qcom-pm8008.o
  5728. CC [M] drivers/mfd/simple-mfd-i2c.o
  5729. CC [M] drivers/mfd/smpro-core.o
  5730. CC [M] drivers/mfd/intel-m10-bmc-core.o
  5731. CC [M] drivers/mfd/intel-m10-bmc-spi.o
  5732. CC [M] drivers/mfd/qnap-mcu.o
  5733. CC [M] drivers/mfd/rsmu_i2c.o
  5734. CC [M] drivers/mfd/rsmu_core.o
  5735. CC [M] drivers/mfd/rsmu_spi.o
  5736. AR drivers/mfd/built-in.a
  5737. LD [M] drivers/mfd/wm8994.o
  5738. make[2]: *** [scripts/Makefile.build:551: drivers] Error 2
  5739. make[1]: *** [/home/alice/Coding/Linux/Makefile:2230: .] Error 2
  5740. make: *** [Makefile:248: __sub-make] Error 2
  5741.  
Tags: Kernel Stable
Advertisement
Add Comment
Please, Sign In to add comment