summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-18 02:45:47 +0000
committerIan Moffett <ian@osmora.org>2025-08-18 02:57:18 +0000
commit8f14e904b04cc695be87d0496099292446b8eca6 (patch)
tree4350bc102db4f451b9cb68fb31af905210f0d66f /sys/include
parent00714cac572a538965225d41ed96703df3c547b7 (diff)
kernel: disk: Use 'void *' in disk_param_init()
The disk parameters allow data to be passed into the disk engine via its interface. The data may be raw byte streams from the drive, or bytes to be written to the drive. However not all the time is the data to be an arbitrary stream of bytes and may contain structured data instead. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/disk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/sys/disk.h b/sys/include/sys/disk.h
index 749322f..852bb0f 100644
--- a/sys/include/sys/disk.h
+++ b/sys/include/sys/disk.h
@@ -143,7 +143,7 @@ struct disk_param {
* @res: Pointer to params to be initialized
*/
__always_inline static inline void
-disk_param_init(uint8_t *buf, blkoff_t blk, size_t size, struct disk_param *res)
+disk_param_init(void *buf, blkoff_t blk, size_t size, struct disk_param *res)
{
if (res != NULL) {
res->buf = buf;