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 5D7F8C636CC for ; Thu, 9 Feb 2023 03:36:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbjBIDgN (ORCPT ); Wed, 8 Feb 2023 22:36:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231355AbjBIDgJ (ORCPT ); Wed, 8 Feb 2023 22:36:09 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD668A8 for ; Wed, 8 Feb 2023 19:36:07 -0800 (PST) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 3193ZbDm007908; Thu, 9 Feb 2023 04:35:37 +0100 Date: Thu, 9 Feb 2023 04:35:37 +0100 From: Willy Tarreau To: chris.chenfeiyang@gmail.com Cc: paulmck@kernel.org, Feiyang Chen , arnd@arndb.de, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/5] Add LoongArch support to nolibc Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Feiyang, On Thu, Feb 09, 2023 at 11:24:11AM +0800, chris.chenfeiyang@gmail.com wrote: > From: Feiyang Chen > > Add statx() and make stat() rely on statx() if necessary. > Add support for LoongArch (32 and 64 bit) to nolibc. > It was tested on LoongArch64 only. > > The latest QEMU support full-system emulation of a LoongArch64 > machine, but for the moment we need to specify the firmware manually. > https://github.com/loongson/Firmware/tree/main/LoongArchVirtMachine > > QEMU_ARGS_loongarch = -M virt -bios edk2-loongarch64-code.fd ... > > v2: > - Mention that statx() will also benefit other architectures. > - Make stat() rely on statx() when available. > - Put the whitespace changes into one commit. > > v3: > - Add #if defined(__NR_statx) guard. > - Keep the check for statx() from the first version. > - Mention that we may use statx() everywhere in the future. > - struct statx stat -> struct statx statx. I'm personally fine with this one. I'll give it a try with all supported archs to make sure we don't have any unexpected side effect, and unless anyone has any other comment, we'll queue this series. Thank you! Willy