Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rnull: move driver to separate directory

The rust null block driver is about to gain some additional modules. Rather
than pollute the current directory, move the driver to a subdirectory.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-12-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Andreas Hindborg and committed by
Jens Axboe
edd86506 19c37c91

+19 -13
+1 -1
MAINTAINERS
··· 4343 4343 B: https://github.com/Rust-for-Linux/linux/issues 4344 4344 C: https://rust-for-linux.zulipchat.com/#narrow/stream/Block 4345 4345 T: git https://github.com/Rust-for-Linux/linux.git rust-block-next 4346 - F: drivers/block/rnull.rs 4346 + F: drivers/block/rnull/ 4347 4347 F: rust/kernel/block.rs 4348 4348 F: rust/kernel/block/ 4349 4349
+1 -9
drivers/block/Kconfig
··· 17 17 if BLK_DEV 18 18 19 19 source "drivers/block/null_blk/Kconfig" 20 + source "drivers/block/rnull/Kconfig" 20 21 21 22 config BLK_DEV_FD 22 23 tristate "Normal floppy disk support" ··· 311 310 help 312 311 This is the virtual block driver for virtio. It can be used with 313 312 QEMU based VMMs (like KVM or Xen). Say Y or M. 314 - 315 - config BLK_DEV_RUST_NULL 316 - tristate "Rust null block driver (Experimental)" 317 - depends on RUST 318 - help 319 - This is the Rust implementation of the null block driver. For now it 320 - is only a minimal stub. 321 - 322 - If unsure, say N. 323 313 324 314 config BLK_DEV_RBD 325 315 tristate "Rados block device (RBD)"
+1 -3
drivers/block/Makefile
··· 9 9 # needed for trace events 10 10 ccflags-y += -I$(src) 11 11 12 - obj-$(CONFIG_BLK_DEV_RUST_NULL) += rnull_mod.o 13 - rnull_mod-y := rnull.o 14 - 15 12 obj-$(CONFIG_MAC_FLOPPY) += swim3.o 16 13 obj-$(CONFIG_BLK_DEV_SWIM) += swim_mod.o 17 14 obj-$(CONFIG_BLK_DEV_FD) += floppy.o ··· 35 38 obj-$(CONFIG_BLK_DEV_RNBD) += rnbd/ 36 39 37 40 obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk/ 41 + obj-$(CONFIG_BLK_DEV_RUST_NULL) += rnull/ 38 42 39 43 obj-$(CONFIG_BLK_DEV_UBLK) += ublk_drv.o 40 44 obj-$(CONFIG_BLK_DEV_ZONED_LOOP) += zloop.o
drivers/block/rnull.rs drivers/block/rnull/rnull.rs
+13
drivers/block/rnull/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + # 3 + # Rust null block device driver configuration 4 + 5 + config BLK_DEV_RUST_NULL 6 + tristate "Rust null block driver (Experimental)" 7 + depends on RUST 8 + help 9 + This is the Rust implementation of the null block driver. Like 10 + the C version, the driver allows the user to create virutal block 11 + devices that can be configured via various configuration options. 12 + 13 + If unsure, say N.
+3
drivers/block/rnull/Makefile
··· 1 + 2 + obj-$(CONFIG_BLK_DEV_RUST_NULL) += rnull_mod.o 3 + rnull_mod-y := rnull.o