[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YaTAffbvzxGGsVIv@yuki>
Date: Mon, 29 Nov 2021 12:58:53 +0100
From: Cyril Hrubis <chrubis@...e.cz>
To: David Laight <David.Laight@...LAB.COM>
Cc: 'David Howells' <dhowells@...hat.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-api@...r.kernel.org" <linux-api@...r.kernel.org>,
"ltp@...ts.linux.it" <ltp@...ts.linux.it>,
"libc-alpha@...rceware.org" <libc-alpha@...rceware.org>,
"linux-arch@...r.kernel.org" <linux-arch@...r.kernel.org>,
"arnd@...db.de" <arnd@...db.de>
Subject: Re: [PATCH] uapi: Make __{u,s}64 match {u,}int64_t in userspace
Hi!
> > > This changes the __u64 and __s64 in userspace on 64bit platforms from
> > > long long (unsigned) int to just long (unsigned) int in order to match
> > > the uint64_t and int64_t size in userspace.
>
> That is a massive UAPI change you can't do.
Understood.
However it can still be changed if user asks for it explicitly right?
What about guarding the change with __STDINT_COMPATIBLE_TYPES__ as:
#if defined(__STDINT_COMPATIBLE_TYPES__)
# include <stdint.h>
typedef __u64 uint64_t;
...
#else
# include <asm-generic/int-ll64.h>
#endif
--
Cyril Hrubis
chrubis@...e.cz
Powered by blists - more mailing lists