Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3769AC433F5 for ; Tue, 14 Dec 2021 19:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237332AbhLNTJT convert rfc822-to-8bit (ORCPT ); Tue, 14 Dec 2021 14:09:19 -0500 Received: from aposti.net ([89.234.176.197]:52218 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237319AbhLNTJR (ORCPT ); Tue, 14 Dec 2021 14:09:17 -0500 Date: Tue, 14 Dec 2021 19:09:06 +0000 From: Paul Cercueil Subject: Re: [PATCH 1/3] MIPS: boot/compressed: Disable abicalls To: Nathan Chancellor Cc: Thomas Bogendoerfer , Nick Desaulniers , list@opendingux.net, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Message-Id: <67D44R.5C6XHAZPCYVU3@crapouillou.net> In-Reply-To: References: <20211213224914.1501303-1-paul@crapouillou.net> <20211213224914.1501303-2-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nathan, Le mar., d?c. 14 2021 at 11:06:57 -0700, Nathan Chancellor a ?crit : > On Mon, Dec 13, 2021 at 10:49:12PM +0000, Paul Cercueil wrote: >> Avoid complaints from Clang/LLVM by building the decompress program >> with >> -mno-abicalls. > > What is the message? ld.lld: warning: lto.tmp: linking abicalls code with non-abicalls code arch/mips/kernel/head.o Cheers, -Paul > >> Signed-off-by: Paul Cercueil >> --- >> arch/mips/boot/compressed/Makefile | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/arch/mips/boot/compressed/Makefile >> b/arch/mips/boot/compressed/Makefile >> index f27cf31b4140..4c9ecfbb0ef4 100644 >> --- a/arch/mips/boot/compressed/Makefile >> +++ b/arch/mips/boot/compressed/Makefile >> @@ -27,10 +27,10 @@ ifdef CONFIG_CPU_LOONGSON64 >> KBUILD_CFLAGS := $(filter-out -march=loongson3a, $(KBUILD_CFLAGS)) >> -march=mips64r2 >> endif >> >> -KBUILD_CFLAGS := $(KBUILD_CFLAGS) -D__KERNEL__ -D__DISABLE_EXPORTS >> \ >> +KBUILD_CFLAGS := $(KBUILD_CFLAGS) -mno-abicalls -D__KERNEL__ >> -D__DISABLE_EXPORTS \ >> -DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) >> -D"VMLINUX_LOAD_ADDRESS_ULL=$(VMLINUX_LOAD_ADDRESS)ull" >> >> -KBUILD_AFLAGS := $(KBUILD_AFLAGS) -D__ASSEMBLY__ \ >> +KBUILD_AFLAGS := $(KBUILD_AFLAGS) -mno-abicalls -D__ASSEMBLY__ \ >> -DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) \ >> -DKERNEL_ENTRY=$(VMLINUX_ENTRY_ADDRESS) >> >> -- >> 2.33.0 >> >>