From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (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 8A3B92F2B for ; Wed, 2 Feb 2022 15:50:50 +0000 (UTC) Received: from relay11.mail.gandi.net (unknown [217.70.178.231]) by mslow1.mail.gandi.net (Postfix) with ESMTP id CC53DD29CC for ; Wed, 2 Feb 2022 15:35:02 +0000 (UTC) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E298410000A; Wed, 2 Feb 2022 15:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1643816095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=udh0XHWQaOuEVGcPinmtV33kWRGTQJdx9kgSeb7ptEA=; b=TANoPNZIlK9r9D4RAA6u4ohMIJi2bQzFP5OjFcV7SWY0g1o94ix/w1URlsTW3IJp2TSbol JSKRQDtH4fHVudiBCo8FKdrTJS7+tHHdel0nHhRIeAeLxuCJ6daNOu8JLdwoudsk9qwU1u uCCUTiTx42KqS21ONHO3XLNeOYRmbdgmGLNIpbUVuUWtMMkLgzLw4cQLmOD+5Kabm+BwR2 nZOhcjfcf1JlVjarU/n4C8MWoce6Aj+0rI4SMIqHzomoTxcD+UFfmMFuEoSB7ZI5MC/xbW +x8sXaAGX4a5x4cCE+0yDGI5As0z7J05bOUMFvTipKN5n1HLsPNR9m59eK8+oA== Date: Wed, 2 Feb 2022 16:34:52 +0100 From: Miquel Raynal To: Mark Brown Cc: kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [mtd:spi-mem-ecc 30/30] ld.lld: error: undefined symbol: nand_ecc_unregister_on_host_hw_engine Message-ID: <20220202163452.746d50ca@xps13> In-Reply-To: References: <202202011308.a6RlPiGp-lkp@intel.com> <20220202154504.7737deed@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit broonie@kernel.org wrote on Wed, 2 Feb 2022 15:20:05 +0000: > On Wed, Feb 02, 2022 at 03:45:04PM +0100, Miquel Raynal wrote: > > > I've failed to prevent faulty configurations with regular depends > > on/select keywords, so I've come with a new solution which received a > > successful build coverage test from the 0-day robots. > > > In order to still be able to use the spi controller driver (=y) while > > mtd is =m or =n, I need to add an IS_REACHABLE() check in a couple of > > headers. This way we can just imply the right MTD symbols from the > > SPI_MXIC Kconfig entry. > > Isn't this just a case where we shouldn't allow MTD to be built modular? How would you do that in a nice Kconfig way?