linux(4): Move dev_t type declaration under /compat/linux

As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer
on all platforms. Move it into the MI linux.h under /compat/linux.
This commit is contained in:
Dmitry Chagin 2023-04-28 11:55:02 +03:00
parent e0bfe0d62c
commit 19973638be
5 changed files with 5 additions and 4 deletions

View file

@ -54,7 +54,6 @@ typedef uint16_t l_ushort;
typedef l_ulong l_uintptr_t;
typedef l_long l_clock_t;
typedef l_int l_daddr_t;
typedef l_ulong l_dev_t;
typedef l_uint l_gid_t;
typedef l_ushort l_gid16_t;
typedef l_uint l_uid_t;

View file

@ -63,7 +63,6 @@ typedef unsigned short l_ushort;
typedef l_ulong l_uintptr_t;
typedef l_long l_clock_t;
typedef l_int l_daddr_t;
typedef l_ushort l_dev_t;
typedef l_uint l_gid_t;
typedef l_ushort l_gid16_t;
typedef l_ulong l_ino_t;

View file

@ -49,7 +49,6 @@ typedef uint16_t l_ushort;
typedef l_ulong l_uintptr_t;
typedef l_long l_clock_t;
typedef l_int l_daddr_t;
typedef l_ulong l_dev_t;
typedef l_uint l_gid_t;
typedef l_ushort l_gid16_t; /* XXX */
typedef l_uint l_uid_t;

View file

@ -28,6 +28,11 @@
#ifndef _LINUX_MI_H_
#define _LINUX_MI_H_
/*
* Machine independent set of types for the Linux types.
*/
typedef uint32_t l_dev_t;
/*
* Private Brandinfo flags
*/

View file

@ -55,7 +55,6 @@ typedef char *l_caddr_t;
typedef l_ulong l_uintptr_t;
typedef l_long l_clock_t;
typedef l_int l_daddr_t;
typedef l_ushort l_dev_t;
typedef l_uint l_gid_t;
typedef l_ushort l_gid16_t;
typedef l_ulong l_ino_t;