Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2045704pxb; Sat, 2 Oct 2021 05:18:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8bwf4knU7Kl4GJgq+j4XFxryI+m61ymHCvghqko2RhUhl+4uLWM2dtwUd+qA1PqfD6jCI X-Received: by 2002:a50:cf87:: with SMTP id h7mr3751230edk.152.1633177114094; Sat, 02 Oct 2021 05:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633177114; cv=none; d=google.com; s=arc-20160816; b=Ep2J4pXY028QxNsGlDifzLqxsBK5MArJ9E1v9IlBrf60Lcvpn3rJKqqau4zWJCNZOD TLj5X7EkWOl4HhDD+eCb2WuLEmgilY2jqMZYxfsl/ME6spnwNDe4NH6yrKJjATYK+Wbm br/r8UWdMehXD8KfF22oUtqnOdx4TtictRfuArC6+V3uA6eyA7QnQcrWz/HZaqtZSJvb N87VCaL2aWHSDsSZkBGyziF9UaaJkgOvFnBDONpxXXJtGUD3wV2B0wuAisSsGcdgXdz5 +WEHxE1wuakJRORSyd+CqJXSxPO0Z4ISiPM0vVldtNJyhNsBuNlB+PeX2/dIdronGnfF NYfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=f4vXemB4wUsw27uR9flYex9Y9h8f9QEQhMS+IoiPMDU=; b=MB3LchF4WJ1uE9ZGIDu8FjQ6a+gZ/W6Idaa5DnAitOaH09hqRwEQBelOQAlAR8AUK2 5Os6hS+UWHBHSfPOd8SbnNfhVJW/GnWmZptNJqBmZPmCvHc6YMpe1YRz7HR6KzTIjueM JGWEz6nYlW4cKSs+FpDnSGjkjcMgZLxBREmySCYaSKnIaZKHCU6LTw6TEERLJZTfTqAw gqCknnigqASPZnTH0AG01PrykCiHbD3olhBgler26pzmjDSMKQnX6eEqvGVQiGlbVywg 35jT6hVvGl9V8Xv2R8Nyhych1+eYQ7wGJwnbi0E56LvOqjUpKvZdN1d06CHXW9CF97Yv hrcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mengyan1223.wang header.s=mail header.b=rfe+Ja5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mengyan1223.wang Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si13093777edb.488.2021.10.02.05.18.09; Sat, 02 Oct 2021 05:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mengyan1223.wang header.s=mail header.b=rfe+Ja5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mengyan1223.wang Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233121AbhJBMPu (ORCPT + 99 others); Sat, 2 Oct 2021 08:15:50 -0400 Received: from mengyan1223.wang ([89.208.246.23]:34108 "EHLO mengyan1223.wang" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233110AbhJBMPt (ORCPT ); Sat, 2 Oct 2021 08:15:49 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@mengyan1223.wang) by mengyan1223.wang (Postfix) with ESMTPSA id 13521661AC; Sat, 2 Oct 2021 08:13:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mengyan1223.wang; s=mail; t=1633176842; bh=f4vXemB4wUsw27uR9flYex9Y9h8f9QEQhMS+IoiPMDU=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=rfe+Ja5MkE92oMtPhINeBGuA6bsfes9kCHiRQzKUJlt0m3jv5wJWHznoWJ8r9+s/W w57L1Ty9pA9+YIcpbXCzWh+EtP5I4ysTqfoWTexTrIR3ebMmMQeTZyBmEYfuHT//62 jq4e2r4mICCSOlfRYLhqBLdEYWuAYjIYGVO58eiGyJYrdAur8or0UnMRaFzf9JbdKx OSkuzgUl9QsjYyN1+jhp3s8nXGqNnudceV+4/1hKe2zzsEA4YgcVdtGjKtiUfBFM91 JWgV+hwOZX8mo1gQzbqf0w/q2nlurmDSn6tVs8IKPAoEgGnYHjHPIMha5PSAY/F1/3 gf3UeGml0915w== Message-ID: <7805af604610508cec679a160d92025e8975132b.camel@mengyan1223.wang> Subject: Re: [PATCH V4 19/22] LoongArch: Add VDSO and VSYSCALL support From: Xi Ruoyao To: Huacai Chen Cc: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , LKML , Xuefeng Li , Yanteng Si , Jiaxun Yang Date: Sat, 02 Oct 2021 20:13:57 +0800 In-Reply-To: References: <20210927064300.624279-1-chenhuacai@loongson.cn> <20210927064300.624279-20-chenhuacai@loongson.cn> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2021-10-02 at 18:53 +0800, Huacai Chen wrote: > Hi, Ruoyao, > > On Thu, Sep 30, 2021 at 11:43 PM Xi Ruoyao > wrote: > > > > On Mon, 2021-09-27 at 14:42 +0800, Huacai Chen wrote: > > > diff --git a/arch/loongarch/vdso/gen_vdso_offsets.sh > > > b/arch/loongarch/vdso/gen_vdso_offsets.sh > > > new file mode 100755 > > > index 000000000000..7da255fea213 > > > --- /dev/null > > > +++ b/arch/loongarch/vdso/gen_vdso_offsets.sh > > > @@ -0,0 +1,14 @@ > > > +#!/bin/sh > > > +# SPDX-License-Identifier: GPL-2.0 > > > + > > > +# > > > +# Derived from RISC-V and ARM64: > > > +# Author: Will Deacon > > > +# > > > +# Match symbols in the DSO that look like VDSO_*; produce a > > > header > > > file > > > +# of constant offsets into the shared object. > > > +# > > > + > > > +LC_ALL=C > > > > I'm wondering whether this line is really useful... There is no > > "export" > > here so the variable won't be passed to the environment of the sed > > command below. > Have you encountered some problems with this? It just works for me, > and both ARM64 and RISCV are the same. No problems, and I also seen those in ARM64 & RISCV. But AFAIK this line really does nothing and can be removed. If LC_ALL=C is really necessary for the sed to operate correctly, it should be "exported" as LC_ALL=C export LC_ALL ("export LC_ALL=C" will work under bash, but it's not POSIX.) Or, explicitly pass LC_ALL to sed with: LC_ALL=C sed ... -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University