diff options
| author | Michael Brown | 2025-04-24 18:11:30 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-24 18:11:30 +0200 |
| commit | 2f11f466e6b6cb47ac3b703b145e01f87bf8092e (patch) | |
| tree | 48ca106e7c8d7f42c504af9447dff713099d1339 /src/interface | |
| parent | [uaccess] Remove now-obsolete memchr_user() (diff) | |
| download | ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.tar.gz ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.tar.xz ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.zip | |
[block] Remove userptr_t from block device abstraction
Simplify the block device code by assuming that all read/write buffers
are directly accessible via pointer dereferences.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
| -rw-r--r-- | src/interface/efi/efi_block.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface/efi/efi_block.c b/src/interface/efi/efi_block.c index 94e2aae06..aa5ec4e0f 100644 --- a/src/interface/efi/efi_block.c +++ b/src/interface/efi/efi_block.c @@ -95,8 +95,9 @@ struct efi_block_data { static int efi_block_rw ( struct san_device *sandev, uint64_t lba, void *data, size_t len, int ( * sandev_rw ) ( struct san_device *sandev, - uint64_t lba, unsigned int count, - userptr_t buffer ) ) { + uint64_t lba, + unsigned int count, + void *buffer ) ) { struct efi_block_data *block = sandev->priv; unsigned int count; int rc; |
