From: Thomas Gleixner Subject: Re: [PATCHv6 28/36] posix-clocks: Add align for timens_offsets Date: Fri, 16 Aug 2019 08:36:29 +0200 (CEST) Message-ID: References: <20190815163836.2927-1-dima@arista.com> <20190815163836.2927-29-dima@arista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Dmitry Safonov Cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Adrian Reber , Andrei Vagin , Andy Lutomirski , Arnd Bergmann , Christian Brauner , Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , Vincenzo Frascino , containers@lists.linux-foundation.org, criu@openvz.org, linux-api@vger.kernel.org, x86@kernel.org List-Id: linux-api@vger.kernel.org On Thu, 15 Aug 2019, Thomas Gleixner wrote: > So using struct timespec64 for the offset is wrong. You really need to open > code that offset storage if you don't want to end up with weird workarounds > for BE. > > Something like this: > > struct timens_offs { > time64_t tv_sec; > s64 tv_nsec; Actually that should use 'int' for the tv_nsec part. Thanks, tglx