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 48A6572 for ; Tue, 28 Sep 2021 15:42:18 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 58BBC611BD; Tue, 28 Sep 2021 15:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843738; bh=20HrPlguOHn0M8K+69hCaAI8qSZhXcrez8gQx1tVSes=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htL2BmgtLyCDQTTZaByWG4uMFHLESfUkX1tZvQz5DcFypt6AqFvXoU8mCbpJKVMID xaTHblViyswWVy9ObHuDXohCW45EbfIs+5Ex9fv7J4vi/clNJV8GuEX+Iscs3+Vr3l z+OalgA8Wzvf9O/4LD8mFfv60Y1rzrFJOWYNNU34r2MtLbYgA3UqkNCg62f42OzbrR 6jNHkPniTkogd6+HW5sz+dGQ3n/J70iZbDUyXBa8SdovsaUwhRNe7q8Hd4qHaGjh04 muUcS97Vh2ULralF87vZdj/IwqWgUmyfhyb/PwX2hO0UgoY10YsIat6c4s/9eKSbp6 aNyPB1FogGhmQ== 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 09/14] ARM: allow compile-testing without machine record Date: Tue, 28 Sep 2021 17:41:38 +0200 Message-Id: <20210928154143.2106903-10-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 A lot of randconfig builds end up not selecting any machine type at all. This is generally fine for the purpose of compile testing, but of course it means that the kernel is not usable on actual hardware, and it causes a warning about this fact. As most of the build bots now force-enable CONFIG_COMPILE_TEST for randconfig builds, use that as a guard to control whether we warn on this type of broken configuration. We could do the same for the missing-cpu-type warning, but those configurations fail to build much earlier. Signed-off-by: Arnd Bergmann --- arch/arm/kernel/vmlinux-xip.lds.S | 2 ++ arch/arm/kernel/vmlinux.lds.S | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index e0c00986487f..bf16fadb6a00 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -166,7 +166,9 @@ SECTIONS * binutils is too old (for other reasons as well) */ ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support") +#ifndef CONFIG_COMPILE_TEST ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") +#endif #ifdef CONFIG_XIP_DEFLATED_DATA /* diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 20c4f6d20c7a..f02d617e3359 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -174,6 +174,8 @@ __start_rodata_section_aligned = ALIGN(__start_rodata, 1 << SECTION_SHIFT); * binutils is too old (for other reasons as well) */ ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support") +#ifndef CONFIG_COMPILE_TEST ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") +#endif #endif /* CONFIG_XIP_KERNEL */ -- 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 821F8C433EF for ; Tue, 28 Sep 2021 15:46:33 +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 41FD160E90 for ; Tue, 28 Sep 2021 15:46:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 41FD160E90 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=tP7uBGh5wrRgOj3/ENr3j2j7etsHQ2AKCCBGZL7NNyc=; b=VD4/91g6CoXBuj MQgKiIAaevSaR6mhZ5sSyh+yAXtltHJwLSuVQivNW/8WRn9VWtdMFGDsCc8yQqgTcJ48sLnm+7q/G 30+T78IP7Q0YxNTjX6F+kz9Y/tXoD9u7LpQAiM9pffvOfqsPdG4pYQ1kqtNENYgpp/Icjh7rSZIBT mZlcSEJXkOY1i5EU3bgHNHo1wyfqmPSlOXtr18mix3JJJ+QCJGBTMLovODMDZRDPjGWbwDoSQImWw XW62ZdLAdkB4IFFuxfgw/7wVdGbufIefx7JSKBe0254xf+VLriEgqEe60f6oxsr6i/MVH3V/pX7Zd SxqFtkIxZyScgJKnGt3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFHx-007pJm-Ed; Tue, 28 Sep 2021 15:45:01 +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 1mVFFK-007oAr-DH for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 15:42:20 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 58BBC611BD; Tue, 28 Sep 2021 15:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843738; bh=20HrPlguOHn0M8K+69hCaAI8qSZhXcrez8gQx1tVSes=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htL2BmgtLyCDQTTZaByWG4uMFHLESfUkX1tZvQz5DcFypt6AqFvXoU8mCbpJKVMID xaTHblViyswWVy9ObHuDXohCW45EbfIs+5Ex9fv7J4vi/clNJV8GuEX+Iscs3+Vr3l z+OalgA8Wzvf9O/4LD8mFfv60Y1rzrFJOWYNNU34r2MtLbYgA3UqkNCg62f42OzbrR 6jNHkPniTkogd6+HW5sz+dGQ3n/J70iZbDUyXBa8SdovsaUwhRNe7q8Hd4qHaGjh04 muUcS97Vh2ULralF87vZdj/IwqWgUmyfhyb/PwX2hO0UgoY10YsIat6c4s/9eKSbp6 aNyPB1FogGhmQ== 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 09/14] ARM: allow compile-testing without machine record Date: Tue, 28 Sep 2021 17:41:38 +0200 Message-Id: <20210928154143.2106903-10-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_084218_512718_9A531B1A X-CRM114-Status: GOOD ( 12.98 ) 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 A lot of randconfig builds end up not selecting any machine type at all. This is generally fine for the purpose of compile testing, but of course it means that the kernel is not usable on actual hardware, and it causes a warning about this fact. As most of the build bots now force-enable CONFIG_COMPILE_TEST for randconfig builds, use that as a guard to control whether we warn on this type of broken configuration. We could do the same for the missing-cpu-type warning, but those configurations fail to build much earlier. Signed-off-by: Arnd Bergmann --- arch/arm/kernel/vmlinux-xip.lds.S | 2 ++ arch/arm/kernel/vmlinux.lds.S | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index e0c00986487f..bf16fadb6a00 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -166,7 +166,9 @@ SECTIONS * binutils is too old (for other reasons as well) */ ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support") +#ifndef CONFIG_COMPILE_TEST ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") +#endif #ifdef CONFIG_XIP_DEFLATED_DATA /* diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 20c4f6d20c7a..f02d617e3359 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -174,6 +174,8 @@ __start_rodata_section_aligned = ALIGN(__start_rodata, 1 << SECTION_SHIFT); * binutils is too old (for other reasons as well) */ ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support") +#ifndef CONFIG_COMPILE_TEST ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") +#endif #endif /* CONFIG_XIP_KERNEL */ -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel