Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1977819pxb; Fri, 5 Mar 2021 04:37:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEgkzbs5HohWjIIoSesTXGnbQkNlywLSWr9sw9H5mRpA3ONcd1rAcDAKj+Ygb4X6AUnyOv X-Received: by 2002:a17:906:934c:: with SMTP id p12mr1981645ejw.131.1614947841541; Fri, 05 Mar 2021 04:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614947841; cv=none; d=google.com; s=arc-20160816; b=V5l1x+Y+paeiFuFK+dkmJLWG0ir+hUF4Iri4Id1PeRZBuh/Kj5bZQL2w/T5WTvO85Q txPZeGZptUfyizEwe6A38pyRFL2hA2fCnsW7XY1+slL/7Hko72CywgF3JFc0yXsW5fGk Ye2REp++iVg8OUBArWcCBn9kYW3qGm57aP87AlwWxtXFNQLqUvaZAAfPJZUv9znkyuop d9zzOIENwYRyehoZWNwSchRLojCIdub1m8U313gu0t7Uzu7Z7JAZh/ghWeHCbdAjk0Cc L6UDwA6ap6Fky48E7puF+8zFOMUFzztZ/IeydAGe1i4DBj/gTLTtnizQ+YDy1dfQkMVJ Cukw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=TbwQUEqJj7ET63OvXf+4a9q8d3iAZoWgoWlI49ty+Zs=; b=UWYIj/fqF96W6oN8LDdcC47RGDk/0cryho+ZzTFRMtehE1IQmX1HgEpk0gDvdG44z3 U8BMFtfcx/qTn66iuJywW5PzSxWDa3csExo5qDubNsomPPlykBSW+k6+WeYFLvIkyg/q o1ICgOPSG4dZzFe28fydCfsESXKPYPxHOftBiqfrTZZvHfbClGD6Izp98lW3rgCayql8 NgzsAfuh0dfVVlQXeaSx5EfLdLxMczq01mBrOpGiqfBCP32rvnJ2JN3Rdbv/Z+zpSmqj +UGBldQzekGsmVxgNwReVCTYpRpyjkQGfp7Yzg/naE1hqwFtEZ/aXIk5Q5NQBAnpWJ6r dWTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HKbvlIJy; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si1214862ejp.482.2021.03.05.04.36.58; Fri, 05 Mar 2021 04:37:21 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=HKbvlIJy; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbhCEMeD (ORCPT + 99 others); Fri, 5 Mar 2021 07:34:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:44934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbhCEMdp (ORCPT ); Fri, 5 Mar 2021 07:33:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B5CB64F23; Fri, 5 Mar 2021 12:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614947625; bh=/kbV7KAVQR/jXOBaEYW5wrvcUKMwWsY22TtmVFuVWXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HKbvlIJyRZn6LP+Y4r+51JSxOXPtQN2ipAjdouU7GZ76ORCiCjitu+dbI21k3xoOK sFmMG40f0Q9YYInhc6E79SvQ3uXyJjOA4691Z6q5U7EDFETqhkfr25nFxlopqqOp4o fsrTN9Z8Yixpz4IqvhsK/WSUJXppI9xF2Hjxs+YA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Nathan Chancellor , Thomas Bogendoerfer , Nathan Chancellor Subject: [PATCH 5.4 06/72] MIPS: VDSO: Use CLANG_FLAGS instead of filtering out --target= Date: Fri, 5 Mar 2021 13:21:08 +0100 Message-Id: <20210305120857.656114589@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210305120857.341630346@linuxfoundation.org> References: <20210305120857.341630346@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit 76d7fff22be3e4185ee5f9da2eecbd8188e76b2c upstream. Commit ee67855ecd9d ("MIPS: vdso: Allow clang's --target flag in VDSO cflags") allowed the '--target=' flag from the main Makefile to filter through to the vDSO. However, it did not bring any of the other clang specific flags for controlling the integrated assembler and the GNU tools locations (--prefix=, --gcc-toolchain=, and -no-integrated-as). Without these, we will get a warning (visible with tinyconfig): arch/mips/vdso/elf.S:14:1: warning: DWARF2 only supports one section per compilation unit .pushsection .note.Linux, "a",@note ; .balign 4 ; .long 2f - 1f ; .long 4484f - 3f ; .long 0 ; 1:.asciz "Linux" ; 2:.balign 4 ; 3: ^ arch/mips/vdso/elf.S:34:2: warning: DWARF2 only supports one section per compilation unit .section .mips_abiflags, "a" ^ All of these flags are bundled up under CLANG_FLAGS in the main Makefile and exported so that they can be added to Makefiles that set their own CFLAGS. Use this value instead of filtering out '--target=' so there is no warning and all of the tools are properly used. Cc: stable@vger.kernel.org Fixes: ee67855ecd9d ("MIPS: vdso: Allow clang's --target flag in VDSO cflags") Link: https://github.com/ClangBuiltLinux/linux/issues/1256 Reported-by: Anders Roxell Signed-off-by: Nathan Chancellor Tested-by: Anders Roxell Signed-off-by: Thomas Bogendoerfer [nc: Fix conflict due to lack of 99570c3da96a in 5.4] Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- arch/mips/vdso/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -16,12 +16,9 @@ ccflags-vdso := \ $(filter -march=%,$(KBUILD_CFLAGS)) \ $(filter -m%-float,$(KBUILD_CFLAGS)) \ $(filter -mno-loongson-%,$(KBUILD_CFLAGS)) \ + $(CLANG_FLAGS) \ -D__VDSO__ -ifdef CONFIG_CC_IS_CLANG -ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS)) -endif - # # The -fno-jump-tables flag only prevents the compiler from generating # jump tables but does not prevent the compiler from emitting absolute