From 5084a0676cd9b33927b2dac3a8fa9a42bfb6e2cc Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 29 Oct 2024 18:03:11 -0400 Subject: kernel: types: Move dev_t to sys/types.h Signed-off-by: Ian Moffett --- sys/include/sys/device.h | 1 - sys/include/sys/types.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/include') diff --git a/sys/include/sys/device.h b/sys/include/sys/device.h index b1de7d3..c159e7d 100644 --- a/sys/include/sys/device.h +++ b/sys/include/sys/device.h @@ -38,7 +38,6 @@ #include typedef uint8_t devmajor_t; -typedef uint8_t dev_t; /* Device operation typedefs */ typedef int(*dev_read_t)(dev_t, struct sio_txn *, int); diff --git a/sys/include/sys/types.h b/sys/include/sys/types.h index 3d565e5..fc25fa4 100644 --- a/sys/include/sys/types.h +++ b/sys/include/sys/types.h @@ -59,6 +59,7 @@ typedef size_t uintptr_t; typedef size_t off_t; typedef _Bool bool; typedef int pid_t; +typedef int dev_t; typedef uint32_t mode_t; #if defined(_KERNEL) -- cgit v1.2.3