From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DA3CC433E9 for ; Fri, 15 Jan 2021 19:14:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F392E23A75 for ; Fri, 15 Jan 2021 19:14:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387877AbhAOTOP (ORCPT ); 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-Google-Smtp-Source: ABdhPJxbPRHWjL6kx/iZHWN3F1EaM4GLuZEgGUuQDMr5sDZhXuds79Cgh3mUSIpAdCcq2XUgVC5lOg== 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 Content-Transfer-Encoding: 8bit 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(+) 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 -- 2.29.2