Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5697163pxv; Wed, 7 Jul 2021 09:38:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+iui3v2mdTrU/FjQc4pQLl3T8GYtVfR++Xugr+/5Ww2Y0rSjpkZL8vdR6Sunx5uOvElfy X-Received: by 2002:a92:1906:: with SMTP id 6mr13789472ilz.273.1625675935557; Wed, 07 Jul 2021 09:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625675935; cv=none; d=google.com; s=arc-20160816; b=0PWanSHf9nZsjAfc4C3YTt7q8JoJVYrMf0zLp9iIpv1SZQyNG9eKSkEQzKdpWuxNxv pPbbKLCQFtPSlS38qwaLbc1D9Q82poEQWHMZfwFegTRbmYKTBCOyduB3ytjd67Z0BUDZ Su4a7aIliOJO8o/RiDQzivANxSQhj0b6oyuVmBzM14aKYqAGWoBbFOBNYPKljwUhbG0P MnlFRyGMTk1YwXllKM1WZzzfTquKFOZSS9W9EnrRFnnrsuvZnXtVP6vCyiok71+L6Xn/ 6q5+Qt8JIcccHV7DBS81pBbu6rNZUYLnZkj0jtxMq7JDiBQAnD8sK0oHadATzRKmdXhP wFRw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=afkY8fwCdiinxqtpJexWC5QSojoHbl6E8/ynsI8qr+0=; b=woH22nBgdLdbSA11fdlem9n2Bqvgcw72IhTQ13jlBqHHFcFypw8r4RXETvzpCyuoYO 9/i+1qgTh8UV0VotMUIAaMcY8JPA8VT5+5OR25Zzpqbv+35Mfzs7wK3YiqaJWg5xZNPz PzFjVHB04A77tqVUt9poud3UERfLR3Xmp/QdUB1uL+CYRFBxAOFHHsd3AYQE1QPEI1rQ cZRBOq5yOcFHhJ1kjOVDtvgHmwPgBlECpVqIlP8+1n22NP8ULtPWRvo/3mR81S6UPmeu h2yis492tTwTyY4gubQpwGPt458EqeK69IELW08xeEsKW4GpyWbA1RN2MhONok4OM+oB Am1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=jGgPW2qE; 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 i13si24654145ilm.156.2021.07.07.09.38.42; Wed, 07 Jul 2021 09:38:55 -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=@infradead.org header.s=desiato.20200630 header.b=jGgPW2qE; 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 S230160AbhGGQkQ (ORCPT + 99 others); Wed, 7 Jul 2021 12:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhGGQkQ (ORCPT ); Wed, 7 Jul 2021 12:40:16 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F75C061574; Wed, 7 Jul 2021 09:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=afkY8fwCdiinxqtpJexWC5QSojoHbl6E8/ynsI8qr+0=; b=jGgPW2qEz7oj4ztURfzsTH7ZXW UUkbmjXcTSOWX24r1uiYSFLinnI8pygrnAdBCC43Uod6ZCjY+NbQ9oue/HvrxzhTC4/UZRCjet6f+ aliYhGProwyDtA4YCfbePZ4ZapgVirsW5RxoaG4a0lJcWU928znsaJHBTSyoSceNo9VgdaVVfM447 iBt0v0tfP7Efwjb+2JV5vuo/E5pfNKxYu/YKcOvitgzxQB/PHkBM+S3bdebV9aekXA9ESOmp1VAOS Vcn5bn7LNVWiUxclA9nNLHHeMzO6jp2RMR9vX4AurdB1m/mDSXjV4Vay4YVhKMqAP0psSgpip/7z4 O3UFPmqQ==; Received: from [2601:1c0:6280:3f0::a22f] (helo=smtpauth.infradead.org) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1AYH-00FPKf-Kh; Wed, 07 Jul 2021 16:37:34 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Greg Ungerer , linux-m68k@lists.linux-m68k.org, uclinux-dev@uclinux.org Subject: [PATCH] m68k/nommu: prevent setting ROMKERNEL when ROM is not set Date: Wed, 7 Jul 2021 09:37:29 -0700 Message-Id: <20210707163729.30388-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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