Re: [PATCH] uapi: Make __{u,s}64 match {u,}int64_t in userspace

From
Arnd Bergmann <arnd@arndb.de>
Date
2021-11-29 14:36:47
Also in
linux-arch, lkml, ltp
Reply to
Cyril Hrubis, 2021-11-29
On Mon, Nov 29, 2021 at 12:58 PM Cyril Hrubis [off-list ref] wrote:
What about guarding the change with __STDINT_COMPATIBLE_TYPES__ as:

#if defined(__STDINT_COMPATIBLE_TYPES__)
# include <stdint.h>

typedef __u64 uint64_t;
...
I don't think we can include stdint.h here, the entire point of the custom
kernel types is to ensure the other kernel headers can use these types
without relying on libc headers.

While some of driver specific kernel headers have libc dependencies
in them, the general rule is to keep the kernel headers as standalone
usable.

       Arnd
Thread (23 messages) 23 messages, 9 authors, last reply 2022-06-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help