From patchwork Fri Jan 15 19:13:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 363732 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp133499jap; Fri, 15 Jan 2021 11:15:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCcqJPGUzYMFgzkqCqniomjw8YMStdSfhf8WE0K4Pg4Zdb1JIRVAt/luEwDSUnAco2YTTM X-Received: by 2002:a50:ccc3:: with SMTP id b3mr10726816edj.41.1610738131729; Fri, 15 Jan 2021 11:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610738131; cv=none; d=google.com; s=arc-20160816; b=jN2IwsgIzKuOYPq5+5LSLigbo3sQyNN6jzeIU0eepYb2Kfv8hVE0+h7kqc+ug7qwMQ 8NiaK1fvu5UNTZNP1LIzErZIMfHNOa9d9QpNeMAasjo7h33KZcIcoN7OmBdsM87Ygzjt f1zbhzqkDV8AC2f6CpBXU/1O+IA+sfje8td/hQMnwWhBm2OK2P+MjlycLciU/+rWGI3n 1mCjTeNXgTk1dV660WwkcA5l0gH04ijZP5dHWhH0MLjwz88u8omKw4HKg+VMvIoymE2n kUIL7W+78iIhaLvEp4vb5vhHPSjKt3GLyMrXrsXJpjHlmaukVMVZRarpHko3nswPkU5m vANA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=PftEDz+QoIuMD7vFvCCvvry9AT4u1Otsfrl7LAEO2DM=; b=SdVJkbC31Jqsb05cPNw7cv3PA5GUoSLHyXFRKX2mYrUR63B6P+RDAp5cvCBcnshCcf 4BI7jUluOM65qYlp0izyRSvkETPL+9O6EIBlIOIUt+7ZoMDtFb/084+czF8+3ZkD3wP5 iDsXdV7Dv1pusrtT7jlwl7Y/GVFM4v9H62DnsVdBiA6fpfTq1yVTl3NIY+pHUkps7xZd ZX08gTBXSRvxo9t8yogXencfpNPzzWiZgsi9NfBXGiK+vF15Mm69bwAzqYnIpN4uhDFw +30N12Bhes/DfMirwVpADATu7Y3RwcKhe+uVrtgRrlpMrEpKvEOprrfrIj9b5I9fcwDB D9aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="e7I/8+0Q"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si3602292eji.619.2021.01.15.11.15.31; Fri, 15 Jan 2021 11:15:31 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=@linaro.org header.s=google header.b="e7I/8+0Q"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387877AbhAOTOP (ORCPT + 13 others); Fri, 15 Jan 2021 14:14:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387740AbhAOTOP (ORCPT ); Fri, 15 Jan 2021 14:14:15 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C0B8C0613D3 for ; Fri, 15 Jan 2021 11:13:34 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id n11so11582537lji.5 for ; Fri, 15 Jan 2021 11:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PftEDz+QoIuMD7vFvCCvvry9AT4u1Otsfrl7LAEO2DM=; b=e7I/8+0QvWciJwJHjYocoB/Sg05ul/a7lpQKebKIuyVkAqM/jxAc2FD5yjXDRci1IZ ld19f8724W4QnUgvHUIvL4Wz5vcrxLMGa++CSO4K594lvJUjAYGVcdsYOy9DaEOhFSY0 eJhbmQ2FFUH1ChR9vKuRiQ1wyHmiSiMWXy4EKZhTCPe8QwoK/hzR93e04UoHmNbqLy6k hz6Sl+aRItr8IfwatmIuIlWYJ0V8/K2vZ3qTiNzmqw3AT5f1G95Ljvj7djaJXBlHMdhT uPgl5lcq5abEIDY7xpIFeU42QowkQKcsnCLDPCOfH7SZwjHgWv6h/ZXs9fkN/rAItn6s rMvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PftEDz+QoIuMD7vFvCCvvry9AT4u1Otsfrl7LAEO2DM=; b=TEobjIJIlZka4RsrPrAFlKJIgkKBI8zvS+XWAxxgZzEDew1S14jENh02vHKyRX7/4e Rnak0nQb1/jMoROXu/zI6x6oOAbs0EEMVS3Kjmicr6VcukVVpBh9WqU+Xu4hEMF4td0A 1ACj4znNxCXt6ud94gjvtcsluM2XBA/8Uozj1vZhCtGUjO+6Hnq5cvu0dafo+oslPyJt L9ItDzEYrKzzAZKA5Bi6/njEHL9X4y8HVvbFJjiauR23rkAMxyc9jfWiul898uQ2c2E2 Q7tyu2qLqkKEpzbmORYy6yS/ESO+A64AlR9QgIx3YFCrCOC/T61yseqmK8HmbA6P4iW1 ABIg== X-Gm-Message-State: AOAM532qO+1N9WdwP2ZQP8oiaifAB8O15u4ewB5uuEp9uEuBj9PRuOtA 4V6/PfSypJLIFQOMadqNTwB83Q== X-Received: by 2002:a2e:86c4:: with SMTP id n4mr5594493ljj.208.1610738012915; Fri, 15 Jan 2021 11:13:32 -0800 (PST) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id t17sm998823lfr.5.2021.01.15.11.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 11:13:32 -0800 (PST) From: Anders Roxell To: tsbogend@alpha.franken.de, natechancellor@gmail.com, ndesaulniers@google.com Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Anders Roxell , stable@vger.kernel.org Subject: [PATCH] mips: vdso: fix DWARF2 warning Date: Fri, 15 Jan 2021 20:13:30 +0100 Message-Id: <20210115191330.2319352-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org When building mips tinyconifg the following warning show up make --silent --keep-going --jobs=8 O=/home/anders/src/kernel/next/out/builddir ARCH=mips CROSS_COMPILE=mips-linux-gnu- HOSTCC=clang CC=clang /srv/src/kernel/next/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: ^ /srv/src/kernel/next/arch/mips/vdso/elf.S:34:2: warning: DWARF2 only supports one section per compilation unit .section .mips_abiflags, "a" ^ Rework so the mips vdso Makefile adds flag '-no-integrated-as' unless LLVM_IAS is defined. Link: https://github.com/ClangBuiltLinux/linux/issues/1256 Cc: stable@vger.kernel.org # v4.19+ Suggested-by: Nick Desaulniers Signed-off-by: Anders Roxell --- arch/mips/vdso/Makefile | 4 ++++ 1 file changed, 4 insertions(+) -- 2.29.2 Reported-by: kernel test robot Reported-by: kernel test robot diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile index 5810cc12bc1d..83e8cf216ac8 100644 --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -26,6 +26,10 @@ ifdef CONFIG_CC_IS_CLANG ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS)) endif +ifneq ($(LLVM_IAS),1) +ccflags-vdso += -no-integrated-as +endif + # # The -fno-jump-tables flag only prevents the compiler from generating # jump tables but does not prevent the compiler from emitting absolute