[RFC PATCH for 4.18 01/23] uapi headers: Provide types_32_64.h (v2)

2018-04-12 Thread Mathieu Desnoyers
Provide helper macros for fields which represent pointers in kernel-userspace ABI. This facilitates handling of 32-bit user-space by 64-bit kernels by defining those fields as 32-bit 0-padding and 32-bit integer on 32-bit architectures, which allows the kernel to treat those as 64-bit integers.

[RFC PATCH for 4.18 01/23] uapi headers: Provide types_32_64.h (v2)

2018-04-12 Thread Mathieu Desnoyers
Provide helper macros for fields which represent pointers in kernel-userspace ABI. This facilitates handling of 32-bit user-space by 64-bit kernels by defining those fields as 32-bit 0-padding and 32-bit integer on 32-bit architectures, which allows the kernel to treat those as 64-bit integers.