Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5008707pxb; Tue, 28 Sep 2021 08:44:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRH0BRT0PkNxs0wQBtvxmYY9z1raiRein5NlH4AFwXKwbtCfTOAncR6Etm4lf2xJlMSr9X X-Received: by 2002:a17:90a:4a03:: with SMTP id e3mr590332pjh.198.1632843856042; Tue, 28 Sep 2021 08:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632843856; cv=none; d=google.com; s=arc-20160816; b=dvLuYf9uIuKGTM9zh/eDRT8TvR/THgFmnMbZ7b7L2PhIA0qZ7T+2VmlgyMKsv/HOz3 VOt58a99aIlHVlSLu4xOkFgT9YVQeuSL05dRxA+7LWtzV6VIIYJaA6ATcdkgFkIeN2Yu +oL8kd/TSmcA8+jsp4WpeIp8gndIuulgsKmRnsw97Xipmv0/cLoAJglOK44tlH1/AqRr d7bN376eStnYPTXql1qweHSP3NqegnaInwOq8o4gkAfWyuNR0t6fJF4sqcInm8Ir4cBM jdzTXqEK3plIpTECmTjLiy1UcjdtW484odYEOOqJta/n4KiDOBoML7a4DdGhe7o9au5m WJ4w== 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=JNkAnnZUzQWEYMoTKmWdagRPDQkJrJCFbYmfoizhsQU=; b=L7TsaGgUZQWHysD2F+gu9fNV0Fao35VUJDmrfcna0NgnrbeK2MJgXSunBeFfP11wJy MiQ3QTHA2qeiw4140q7qtzPrbLViDJMCC+zXoh2vaWe4qD7irqsKKe3HW+cTWVfFm88A Bvu+Y+jgT0yK1URvvjJ4j3aVS6M30KsmYTBLQaFh2ztDZ0WnLErUdBZUjgVCeIdXUQvA BRnSAo8uEdN1ylIeYzDjVDTbTSxt57O/ngJNUdI42cr4jeKX4+CGNactpm5CrVVavkbN OD+6VcuzJbfy/Dqdyxg8/lZg87nUi3keA2gX66i2HJZsI6Fu+PWTwu/X4JoFgtiWsLDE mbAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=htL2Bmgt; 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 m19si3644795pgu.445.2021.09.28.08.44.01; Tue, 28 Sep 2021 08:44:16 -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=htL2Bmgt; 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 S241766AbhI1PoE (ORCPT + 99 others); Tue, 28 Sep 2021 11:44:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:60806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241758AbhI1Pn5 (ORCPT ); Tue, 28 Sep 2021 11:43:57 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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