From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5007272 for ; Tue, 28 Sep 2021 15:42:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DD9961206; Tue, 28 Sep 2021 15:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843740; bh=6j5W3PeNhaqrb1ag47WKtjEaOZNAEDFZKRywAiERVWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JcpQRLmIY7uju3UPPtngKNiNR+OwKrbSdXhuV/mwt/GdB8lePBrEv+T9RS+/oe8WU IdVQMCxmuWhb1QowpZJzHLVKIsNtvnb3rR0pTJEotJ7CHv79XJAKkk9dcTm4uKAp9o cbgHXTmB+UgL1nXExUGz3sRMfvs0fTCNpC5dGdVgAz3VKdUTV3vuP28B88AV7qSfwE UaqVthh4Su5blhV+Hs09PHIIk4TJTz1Dvn0eiMcr4w4LOe/YSxwCloqsaV2r02N1uK WPC9xKpvlFc/LD/2UdO7NtbmJy4pecL8yQd1OnDE+NzleGZg93FEylePMnOTsXLBUQ ujW2c5sEGoNeA== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev Subject: [PATCH 10/14] ARM: only warn about XIP address when not compile testing Date: Tue, 28 Sep 2021 17:41:39 +0200 Message-Id: <20210928154143.2106903-11-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann In randconfig builds, we sometimes come across this warning: arm-linux-gnueabi-ld: XIP start address may cause MPU programming issues While this is helpful for actual systems to figure out why it fails, the warning does not provide any benefit for build testing, so guard it in a check for CONFIG_COMPILE_TEST, which is usually set on randconfig builds. Fixes: 216218308cfb ("ARM: 8713/1: NOMMU: Support MPU in XIP configuration") Signed-off-by: Arnd Bergmann --- arch/arm/kernel/vmlinux-xip.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index bf16fadb6a00..76678732c60d 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -178,7 +178,7 @@ ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") ASSERT((_end - __bss_start) >= 12288, ".bss too small for CONFIG_XIP_DEFLATED_DATA") #endif -#ifdef CONFIG_ARM_MPU +#if defined(CONFIG_ARM_MPU) && !defined(CONFIG_COMPILE_TEST) /* * Due to PMSAv7 restriction on base address and size we have to * enforce minimal alignment restrictions. It was seen that weaker -- 2.29.2 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF208C433EF for ; Tue, 28 Sep 2021 15:48:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D0CD611EF for ; Tue, 28 Sep 2021 15:48:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9D0CD611EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sHJKfjODe7XMBsSsVp4pyMCosKvd+mPFDBT22Ko7rsA=; b=yoy1sq2GE2FkLS Xe3oC5jUR3W6aafMclnhryQKsy4lusxlgedkp6rw44jbRnrFcmEgk019GQ8ifj37x/XQa6WuLOnkz DcwhLG9QRuBzR/m7nr4VL+UwtrWSedf6TPPwt+SqSoeZNw0lcJWZMq7RXqFfosgKjJaBvmOPPvuBN Nw8nNONiaZhGy+ClNItvxoCN8u/GEL3UvhR08y+hzizyBAnZ/l70/sVlBnZtpMcGhjINl93ib597h Kg0YbjHwR7WKsMSoYTXyjfWW+LP/W7PWAyz9GqMbRNCPsSBY16aL3mN2YPPpAcOOg0m5hzIAU+xXL 7VFigFl3J6a76GoICnFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFIV-007pg0-DF; Tue, 28 Sep 2021 15:45:36 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFFM-007oBY-Dw for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 15:42:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DD9961206; Tue, 28 Sep 2021 15:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843740; bh=6j5W3PeNhaqrb1ag47WKtjEaOZNAEDFZKRywAiERVWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JcpQRLmIY7uju3UPPtngKNiNR+OwKrbSdXhuV/mwt/GdB8lePBrEv+T9RS+/oe8WU IdVQMCxmuWhb1QowpZJzHLVKIsNtvnb3rR0pTJEotJ7CHv79XJAKkk9dcTm4uKAp9o cbgHXTmB+UgL1nXExUGz3sRMfvs0fTCNpC5dGdVgAz3VKdUTV3vuP28B88AV7qSfwE UaqVthh4Su5blhV+Hs09PHIIk4TJTz1Dvn0eiMcr4w4LOe/YSxwCloqsaV2r02N1uK WPC9xKpvlFc/LD/2UdO7NtbmJy4pecL8yQd1OnDE+NzleGZg93FEylePMnOTsXLBUQ ujW2c5sEGoNeA== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev Subject: [PATCH 10/14] ARM: only warn about XIP address when not compile testing Date: Tue, 28 Sep 2021 17:41:39 +0200 Message-Id: <20210928154143.2106903-11-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_084220_559204_D3144995 X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann In randconfig builds, we sometimes come across this warning: arm-linux-gnueabi-ld: XIP start address may cause MPU programming issues While this is helpful for actual systems to figure out why it fails, the warning does not provide any benefit for build testing, so guard it in a check for CONFIG_COMPILE_TEST, which is usually set on randconfig builds. Fixes: 216218308cfb ("ARM: 8713/1: NOMMU: Support MPU in XIP configuration") Signed-off-by: Arnd Bergmann --- arch/arm/kernel/vmlinux-xip.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index bf16fadb6a00..76678732c60d 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -178,7 +178,7 @@ ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") ASSERT((_end - __bss_start) >= 12288, ".bss too small for CONFIG_XIP_DEFLATED_DATA") #endif -#ifdef CONFIG_ARM_MPU +#if defined(CONFIG_ARM_MPU) && !defined(CONFIG_COMPILE_TEST) /* * Due to PMSAv7 restriction on base address and size we have to * enforce minimal alignment restrictions. It was seen that weaker -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel