mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 16:30:55 +07:00
MN10300: Fix size_t and ssize_t
With the newer compilers, size_t and ssize_t are expected to be (un)signed int rather than (un)signed long. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3557957616
commit
3ad001c04f
@ -25,8 +25,13 @@ typedef int __kernel_pid_t;
|
|||||||
typedef unsigned short __kernel_ipc_pid_t;
|
typedef unsigned short __kernel_ipc_pid_t;
|
||||||
typedef unsigned short __kernel_uid_t;
|
typedef unsigned short __kernel_uid_t;
|
||||||
typedef unsigned short __kernel_gid_t;
|
typedef unsigned short __kernel_gid_t;
|
||||||
|
#if __GNUC__ == 4
|
||||||
|
typedef unsigned int __kernel_size_t;
|
||||||
|
typedef signed int __kernel_ssize_t;
|
||||||
|
#else
|
||||||
typedef unsigned long __kernel_size_t;
|
typedef unsigned long __kernel_size_t;
|
||||||
typedef long __kernel_ssize_t;
|
typedef signed long __kernel_ssize_t;
|
||||||
|
#endif
|
||||||
typedef int __kernel_ptrdiff_t;
|
typedef int __kernel_ptrdiff_t;
|
||||||
typedef long __kernel_time_t;
|
typedef long __kernel_time_t;
|
||||||
typedef long __kernel_suseconds_t;
|
typedef long __kernel_suseconds_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user