Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4392519rwd; Sun, 4 Jun 2023 04:35:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ScuDOvDaPcWg4AtelygkorHhpDvRVOmAKcmFlD4YLKblM7cC8V0pTIA56SKCFOEZYVIK7 X-Received: by 2002:a92:d44d:0:b0:33a:ff76:33b8 with SMTP id r13-20020a92d44d000000b0033aff7633b8mr15362153ilm.9.1685878515471; Sun, 04 Jun 2023 04:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685878515; cv=none; d=google.com; s=arc-20160816; b=fYnY9s8HfDf1H/h4zKn+8dCpmNP/0S1jazA62/c/rRadcppQ/KqCjRlBo7Njr3ZzR8 gO/WOP514GNIXXrgMBYsZf95+0JWBuSfhCqlVc02G9pW0C9EcD+uxLRbP22MGe33AhYB TDpDTrZqSRfEqKGaOLXaIdjzEWY0xKE5ccwh0PiwrXlrqQGFiyo1b7fGoO68Ql7LR9WP PvG1rVH0AQvSxX0m4QC1w2PCQlMfqA8JVO3eF10tHq91+tg9OKi4bxbqwDUfsGWL24Hp e7KPjVlcfrhx1UQ7U0DDVgjbBkwNCQfmq81hptRq1hRxYrFBWHd5pg1KnVy7E2rn1yHg EPEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NmsC0xZHDGz+IhHyDfu6eBWwfccrxraiCQuUWn4OYVQ=; b=qtAGUWDWLho6QUFoGsptJd8vYuEJUGlMbe21z4Xa+oR0vtlAsnlgjHfg3rGh524kLL y4XYCJTYXE3Z9O+ky2CpaHwCKf5AllxgbApgI+mKtT0kvbcv8uiDRcpXx/LWxpssedRD BqhS1Wz3jiR2WMzGTNYymfq1wIbCJlZ6TNxn7B/pHXsHrAcugA+HPblOS+Xk0jlZGlgG eGS7pyeWMr0oKH5xfPp8AkAc2TNP2W/J2BWBzirpb2kw89yz3i8ByTeacoeh+jOE32FF i2ldBBCAECMd2ulvQGEgRfBeMh6JeNP8kuhjEN9LpptatnoJmVzugzka+5afNDLL7Ek3 Vrsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 190-20020a6219c7000000b006538b58db09si3475029pfz.284.2023.06.04.04.34.38; Sun, 04 Jun 2023 04:35:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjFDLSz (ORCPT + 99 others); Sun, 4 Jun 2023 07:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjFDLSw (ORCPT ); Sun, 4 Jun 2023 07:18:52 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 00C2CD2; Sun, 4 Jun 2023 04:18:50 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 354BIZQr001811; Sun, 4 Jun 2023 13:18:35 +0200 Date: Sun, 4 Jun 2023 13:18:35 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, thomas@t-8ch.de, Thomas =?iso-8859-1?Q?Wei=DFschuh?= Subject: Re: [PATCH v3 02/12] tools/nolibc: add missing nanoseconds support for __NR_statx Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Willy