From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC737C77B73 for ; Sun, 4 Jun 2023 12:00:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231411AbjFDMAJ (ORCPT ); Sun, 4 Jun 2023 08:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbjFDMAG (ORCPT ); Sun, 4 Jun 2023 08:00:06 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB7C6DF; Sun, 4 Jun 2023 05:00:04 -0700 (PDT) Date: Sun, 4 Jun 2023 14:00:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1685880002; bh=OkG7uO8YzqEC3izO7nBZOeWbSn787YshNFNDaJf+U4A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TiwL8f6waRULbxeIVeME2C/BwO2s2vLwiyJVo9qV0a3hbuLyKfUYgqKDwpbjoK/bq wT+4dFbzVQELme2OyvPw2OBpWXXZEyKpcT+XnRVN+1t/pserWYUOV4hDntHgYBhUIE vVMsiPMNrXLBddX+q9xMQNZCEvF1ZrnW90RfC08I= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Willy Tarreau Cc: Zhangjin Wu , arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v3 02/12] tools/nolibc: add missing nanoseconds support for __NR_statx Message-ID: <0c0537d6-5cba-43e9-8ca2-0e1605d64e8a@t-8ch.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-06-04 13:18:35+0200, Willy Tarreau wrote: > On Sat, Jun 03, 2023 at 04:02:04PM +0800, Zhangjin Wu wrote: > > Commit a89c937d781a ("tools/nolibc: support nanoseconds in stat()") > > added nanoseconds for stat() but missed the statx case, this adds it. > > > > The stx_atime, stx_mtime, stx_ctime are in type of 'struct > > statx_timestamp', which is incompatible with 'struct timespec', should > > convert explicitly. > > > > /* include/uapi/linux/stat.h */ > > > > struct statx_timestamp { > > __s64 tv_sec; > > __u32 tv_nsec; > > __s32 __reserved; > > }; > > > > /* include/uapi/linux/time.h */ > > struct timespec { > > __kernel_old_time_t tv_sec; /* seconds */ > > long tv_nsec; /* nanoseconds */ > > }; > > > > Without this patch, the stat_timestamps test case would fail when > > __NR_statx defined. > > > > Fixes: a89c937d781a ("tools/nolibc: support nanoseconds in stat()") > > Suggested-by: Thomas Weißschuh > > Link: https://lore.kernel.org/linux-riscv/3a3edd48-1ace-4c89-89e8-9c594dd1b3c9@t-8ch.de/ > > Signed-off-by: Zhangjin Wu > > Thank you. I've queued it immediately after Thomas' patch. > I'll let the two of you tell me if it's better to squash them > together to avoid breaking bisect and mark you co-authors. Squashing them sounds like the correct solution to me. Thomas