Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5008814pxb; Tue, 28 Sep 2021 08:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzghr1zpimuvIINMnC07XnlOkjiLFMuegu2KHZcNjo89bG/WDIk41U9NRjBcI/QTeuLg88j X-Received: by 2002:a17:902:6ac2:b0:13e:2b51:ca27 with SMTP id i2-20020a1709026ac200b0013e2b51ca27mr5561826plt.65.1632843865711; Tue, 28 Sep 2021 08:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632843865; cv=none; d=google.com; s=arc-20160816; b=yEmnnUNz3nYVYVzMvpbIccifF48RneFVeD2oOEWuTO5GH9wYOLEIYL62Em/Bs76BN0 6bvAeDe74l7ZimUKq6DZmbfe1qIefkAZuYzPcaSj9gWHKACNKjxQvOESM5HSiRSovLzK h9WhyEUnH7OqqbdxEOjUk4BZnAfLvT+2APSSvIJ40ywp/iLkaySgVTe/7veCRaGCcNnB Z3cRS/aYJvBDsFwSZpAdrh7f6U1XtCqAPcDVvoMC6wV0NdGijOe8z9DHOHCUL8dFe7Rd 6Y40jMF3yKHAxDcJGKw7kAXZkwZnuWzJCvMQIW45yCfVKm3dWNwIWEfz1OGI+RbAj+sh y8YA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MStIDwTivT3oesGJR7JJ9i1Ea9e1vwL+gVl0MQTt/cQ=; b=MvizMP8Z95FJtvSjJHJW5XC7gYePk6fPZWh2wgaxK/oj/3fHq3FNaKJ90vYnkQXnEy N4tc3BvgALICgxg0MZNRGC3F9PtB1sqPQm4LmGqdW5f8YL9iQaGcKY809r7pfIhsztFU sYlKp5+HVsf47SkSIN6fgKPA1JscUhM+kZfp6V8Fu7hTj3aDv1W/QdBL0r9d5IIkwJZO DtfzKWoV9iNEgyTHchGJoxLt88memM63iWdcJA/mZWkhCzzpzRw3i1OOTjP5wE/8Pfqp 4oZZsoJYFE1SQe+c8OchxQ6PL9A9sSouS7vLscpTPUdlZIQZiSrDN72FmETtXzYJyf9F UnFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JcpQRLmI; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si25633236plg.10.2021.09.28.08.44.10; Tue, 28 Sep 2021 08:44:25 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=JcpQRLmI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241824AbhI1PoL (ORCPT + 99 others); Tue, 28 Sep 2021 11:44:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:60876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241740AbhI1Pn7 (ORCPT ); Tue, 28 Sep 2021 11:43:59 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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