Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18870635rwd; Wed, 28 Jun 2023 01:39:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ77e2Jqr4ErHg2/Ptf8qPTTta6p0lP7BNjOR7MnpJ8KH1lE7YDpmo5O/TcLAg+W6RlUjwP+ X-Received: by 2002:a17:906:4fc5:b0:974:4f34:b043 with SMTP id i5-20020a1709064fc500b009744f34b043mr32316340ejw.1.1687941565043; Wed, 28 Jun 2023 01:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687941565; cv=none; d=google.com; s=arc-20160816; b=adcfIYc89CmyTlkldb32AysuA2yoGMqZB9WXM/SrDyj8ANkO/BMMZoVp32qSMGlGSq P14qD+8A3CbIKgmuBlaB7m853oA83cXTkPQh+NGJGhZtN976ifeuYazZdC7JcTw0JtyV S3Zfz0z76zTQ1OFX281dOSyR7Hg0LvMG5uPV4yfSJTmRolk0DN0JNkdIdQwTBbB3n+iK qRb2+zEsWcxDgtigyKkFTcc5MX64Qir70aL8i4PyQPk2JcKpyAoDOIt+o9dKaHB3Wfvv I0r+URhrB72WOBq+hdakRk84d8SS7Yi5emJD3s6YUYQe+5n7sa3VWeahRZLO0LVLA2EM AuzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tbhBoBltnvjrOQT4JATlIXLuMWJrsl4fqEMWPl7nLPg=; fh=H3VCfxenkn/FGeGzoi6/e3+6OS4dgsq+oR+qsnDHlTg=; b=Z/tJmUCcxEH3rPYSc6ROFG70Ie6PODoWGraHpAxvV15BqLPRzrufCLJNCQXnkP92ux 5kRMva3wUXHOO0C2AJNX4dYTcZ5r2kZNIqFC8W/CCv/OUa/Fd2tOy6eDwwDtuRhjr4YC 4kyoUffPnwZLzo0mIJQ5MtuUwvMbP54Bxu4gIQ63Xwf9WjKmX7hdY4sYs18xTGEVAG+O r440O4fVwstlhocUUVoT3RwMubG2cfUfbFpXCdyJLddg9qPGwHD6ZMyivuTabtA02QMx qhuf5NNvXERgkiw/hNQk30jShZYGvsRBV2LnFIi+PwUY05zlq+6VE6Mq0UYhPVsMH7zl rgEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=blRrkp5f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a170906561500b00988b290f02esi5522235ejq.592.2023.06.28.01.39.00; Wed, 28 Jun 2023 01:39:25 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=blRrkp5f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232346AbjF1ICC (ORCPT + 99 others); Wed, 28 Jun 2023 04:02:02 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]:44620 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232770AbjF1H7t (ORCPT ); Wed, 28 Jun 2023 03:59:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DBD2761227; Wed, 28 Jun 2023 04:22:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4181EC433CA; Wed, 28 Jun 2023 04:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687926150; bh=E3cMC1OQGi1J1pe3NYVGtGoJHPH7rhJK8+ImhoRtZnM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=blRrkp5fGfDYZjME7oxp79y1t4UBgdiSTArjFD9e0VObw8M2NnRSWAVZ07eqnO6Zb BWNDzpydl1KBnMBI7oxdWEb3kIx6Uajkrdhe7n7YYiYrmpFrcXwDaAVEJfUYZFhkza GAhshZngBARHXJvRCCNUvbAeVr27B8dfQwdWCzIhBIkhMoXXRKotWhfDBq1ZXvkv1R R8656hY7K9DcrLOglckLAhRS+8tmxUv1xoNKnVAm4xngmm30VSfH7IFHfp0XDK3AV1 QzgSFflZno0YbV7f4aEJ7mia9DtOUsdXRpUq0lz4NFh9zHICVq7ifRdhSJJh8O6hW8 BcnOEaGDX8IQg== Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-51d80d81d6eso4671150a12.1; Tue, 27 Jun 2023 21:22:30 -0700 (PDT) X-Gm-Message-State: AC+VfDxJTXbNwH52VIjkQ936dHN5CcSHen01jGMtfciqbfsomdeTCg92 noq4ks6kWICcvcxSdU9j8+cUSAQsvKA275pwzTg= X-Received: by 2002:a05:6402:12d3:b0:51d:988d:5ed8 with SMTP id k19-20020a05640212d300b0051d988d5ed8mr5576748edx.29.1687926148447; Tue, 27 Jun 2023 21:22:28 -0700 (PDT) MIME-Version: 1.0 References: <20230627130122.1491765-1-kernel@xen0n.name> <20230627130122.1491765-2-kernel@xen0n.name> <20230627162456.GA223742@dev-arch.thelio-3990X> In-Reply-To: <20230627162456.GA223742@dev-arch.thelio-3990X> From: Huacai Chen Date: Wed, 28 Jun 2023 12:22:15 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] LoongArch: vDSO: Use CLANG_FLAGS instead of filtering out '--target=' To: Nathan Chancellor Cc: WANG Xuerui , WANG Rui , Xi Ruoyao , loongarch@lists.linux.dev, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, WANG Xuerui Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Queued for loongarch-next, thanks. Huacai On Wed, Jun 28, 2023 at 12:24=E2=80=AFAM Nathan Chancellor wrote: > > On Tue, Jun 27, 2023 at 09:01:21PM +0800, WANG Xuerui wrote: > > From: WANG Xuerui > > > > This is a port of commit 76d7fff22be3e ("MIPS: VDSO: Use CLANG_FLAGS > > instead of filtering out '--target=3D'") to arch/loongarch, for fixing > > cross-compilation with Clang. > > > > Reported-by: Nathan Chancellor > > Link: https://github.com/ClangBuiltLinux/linux/issues/1787#issuecomment= -1608306002 > > Signed-off-by: WANG Xuerui > > Thanks for the patch! > > Reviewed-by: Nathan Chancellor > > > --- > > arch/loongarch/vdso/Makefile | 5 +---- > > 1 file changed, 1 insertion(+), 4 deletions(-) > > > > diff --git a/arch/loongarch/vdso/Makefile b/arch/loongarch/vdso/Makefil= e > > index 3f9df4d9930f..a50308b6fc25 100644 > > --- a/arch/loongarch/vdso/Makefile > > +++ b/arch/loongarch/vdso/Makefile > > @@ -12,12 +12,9 @@ ccflags-vdso :=3D \ > > $(filter -E%,$(KBUILD_CFLAGS)) \ > > $(filter -march=3D%,$(KBUILD_CFLAGS)) \ > > $(filter -m%-float,$(KBUILD_CFLAGS)) \ > > + $(CLANG_FLAGS) \ > > -D__VDSO__ > > > > -ifeq ($(cc-name),clang) > > -ccflags-vdso +=3D $(filter --target=3D%,$(KBUILD_CFLAGS)) > > -endif > > - > > cflags-vdso :=3D $(ccflags-vdso) \ > > -isystem $(shell $(CC) -print-file-name=3Dinclude) \ > > $(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \ > > -- > > 2.40.0 > >