Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp413162pxv; Thu, 8 Jul 2021 05:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUIQo0y3+oOP24ITWN9anyQI9ZKYvRuD+FNiKgSoLOvwO3GEv2gzb+7KKxUNOtYBAwQdPU X-Received: by 2002:a02:2547:: with SMTP id g68mr26711862jag.24.1625747661159; Thu, 08 Jul 2021 05:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625747661; cv=none; d=google.com; s=arc-20160816; b=ocPdQK9KqM8Sowi/hxl5lqMlbuXlkW9B8W1onlbocV1p9GE35xod+EFbNP3Q8HYO+g OCGPLIAoN9lJ2s2kfG1XDKQKLFAOHavzOVqNybfwGf8/ZhSZukKjDmgOvw5HbuHyeyu+ jkWAi7w4nZ/NHxF9Ries5MUNHxGnRrxiTpWou743C5ijXdU0AkQTCug/l9VV7MLZwn/1 PNp+0ojGlQBFjXPpveVFe9D8rqMtTZmmbHJ3p7GSF1Bz0XtBk1dMppZq1xtLAiqYs+yz +JuPMbTD28p5CVRlHWTZr2ir/AbaDtztbmzxvJVGwQ3E2GJrInCuqFpXM2gNZ7+zAi3b KEhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=y4SEihJb5bN/kDnzvR/Xf/e+bAy4FD4YpD6vm5kRqzQ=; b=gPDRspOMPx496nC/ZmXCQXtpF/6PLwow0szRJGkH1abBu+JS9y0NCLTk7iNCqZ7V6/ Zihwyj5A3mhYHcw2YOsVtQWBgy1y8STiQhnf7ixNDJHYGPCXCsIyebpORRrAZm5UsDU8 47aarz3I4VGc8GMPurwonNHeGm2VuAWudzayxTJ7medE4YW/SPIInZXNWE0YwI6ommuE F2nn2+nx0+yw3zl9JPm7AOgY63bcCZv50sMehA5nJv1+6+h65yf5/5E+RAGuVuCggV8R z4SENcPrzRP1B1t+D6tL7IMMje9DORI8IAw+Z7gDceEotbH6GhDc7+60TRh2lJt6V8Pr Wahw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si2353298jak.26.2021.07.08.05.34.09; Thu, 08 Jul 2021 05:34:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231133AbhGHMgI (ORCPT + 99 others); Thu, 8 Jul 2021 08:36:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:49248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbhGHMgH (ORCPT ); Thu, 8 Jul 2021 08:36:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D60CC61424; Thu, 8 Jul 2021 12:33:24 +0000 (UTC) Subject: Re: [PATCH] m68k/nommu: prevent setting ROMKERNEL when ROM is not set To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: linux-m68k@lists.linux-m68k.org, uclinux-dev@uclinux.org References: <20210707163729.30388-1-rdunlap@infradead.org> From: Greg Ungerer Message-ID: Date: Thu, 8 Jul 2021 22:33:22 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210707163729.30388-1-rdunlap@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On 8/7/21 2:37 am, Randy Dunlap wrote: > When CONFIG_ROMKERNEL is set but CONFIG_ROM is not set, the linker > complains: > m68k-linux-ld:./arch/m68k/kernel/vmlinux.lds:5: undefined symbol `CONFIG_ROMSTART' referenced in expression > > # CONFIG_ROM is not set > # CONFIG_RAMKERNEL is not set > CONFIG_ROMKERNEL=y > > Since ROMSTART depends on ROM, make ROMKERNEL also depend on ROM. > > Signed-off-by: Randy Dunlap > Cc: Greg Ungerer > Cc: linux-m68k@lists.linux-m68k.org > Cc: uclinux-dev@uclinux.org Looks good, thanks. I will apply to for-next branch of m68knommu git tree when the current merge window closes. Regards Greg > --- > arch/m68k/Kconfig.machine | 1 + > 1 file changed, 1 insertion(+) > > --- linux-next-20210701.orig/arch/m68k/Kconfig.machine > +++ linux-next-20210701/arch/m68k/Kconfig.machine > @@ -464,6 +464,7 @@ config RAMKERNEL > > config ROMKERNEL > bool "ROM" > + depends on ROM > help > The kernel will be resident in FLASH/ROM when running. This is > often referred to as Execute-in-Place (XIP), since the kernel >