diff options
author | Andreas Hindborg <a.hindborg@kernel.org> | 2025-09-02 11:55:07 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-09-02 05:23:56 -0600 |
commit | d969d504bc13b2f0c1f208e009e73f2625b421c0 (patch) | |
tree | 6ca7a51faf262a76a90ce0e1b532c659ce7010b4 /rust/kernel | |
parent | edd8650691c374bdce133af1b25ff4f3496f489f (diff) |
rnull: enable configuration via `configfs`
Allow rust null block devices to be configured and instantiated via
`configfs`.
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-13-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel')
-rw-r--r-- | rust/kernel/block/mq/gen_disk.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/block/mq/gen_disk.rs b/rust/kernel/block/mq/gen_disk.rs index 20f1d46c774d..6b1b846874db 100644 --- a/rust/kernel/block/mq/gen_disk.rs +++ b/rust/kernel/block/mq/gen_disk.rs @@ -51,7 +51,7 @@ impl GenDiskBuilder { /// Validate block size by verifying that it is between 512 and `PAGE_SIZE`, /// and that it is a power of two. - fn validate_block_size(size: u32) -> Result { + pub fn validate_block_size(size: u32) -> Result { if !(512..=bindings::PAGE_SIZE as u32).contains(&size) || !size.is_power_of_two() { Err(error::code::EINVAL) } else { |