From nobody Fri Dec 19 15:21:00 2025 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 090CF18DB2B for ; Fri, 28 Mar 2025 08:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743150252; cv=none; b=tY0KkfVdalYJRAFO8Pcor9yxMLlqYVvccrAxrUbNiqfxFp2Bi+PjHFPuGd5qxYiboRTsnQGZ6KmyjBpJme8lLNAw0r3KjWVnsiYSXqMGQJvItGWdJQBOLAKeaP/p3HRp9a5Rji3UZiFr7LQs7fhY70mRKBIdkDln+Ntji3EeIAs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743150252; c=relaxed/simple; bh=3K9E9P/3fJhtWUagyMGSRbT2D5mew/Y9C8iypQyVCXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OP3CQDLVNAxTCtE4xNvhUTPSXkXQaS+mHSy20JouU4hsev0hAAFxDvoIXUwkAZUYsWA+4FLQNmNON7ENS7JJuu4P2JKhQ0d9NulDBfJmVE83TRmXhAs26DkVpbCDShIcF3EPyvfN0AkK1WrJXMWo1tasNiibkUJW7Q5lNv7qy3g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:84f5:57a8:7b3b:9088]) by laurent.telenet-ops.be with cmsmtp id W8Q32E0051KBnwa018Q3pj; Fri, 28 Mar 2025 09:24:07 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.97) (envelope-from ) id 1ty50U-0000000G6nn-2d5Y; Fri, 28 Mar 2025 09:24:03 +0100 Received: from geert by rox.of.borg with local (Exim 4.97) (envelope-from ) id 1ty50V-00000006N2R-0Qmy; Fri, 28 Mar 2025 09:24:03 +0100 From: Geert Uytterhoeven To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Md Sadre Alam , Varadarajan Narayanan , Sricharan Ramabadhran , Mark Brown Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , kernel test robot Subject: [PATCH] mtd: nand: Drop explicit test for built-in CONFIG_SPI_QPIC_SNAND Date: Fri, 28 Mar 2025 09:24:01 +0100 Message-ID: <99eef91c334f3f2314c2f5671e1eb55211a5ff19.1743150196.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If CONFIG_SPI_QPIC_SNAND=3Dm, but CONFIG_MTD_NAND_QCOM=3Dn: ERROR: modpost: "qcom_nandc_unalloc" [drivers/spi/spi-qpic-snand.ko] un= defined! ... Fix this by dropping the explicit test for a built-in CONFIG_SPI_QPIC_SNAND completely. Kbuild handles multiple and mixed obj-y/obj-m rules for the same object file fine. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202503280759.XhwLcV7m-lkp@int= el.com/ Fixes: 7304d1909080ef0c ("spi: spi-qpic: add driver for QCOM SPI NAND flash= Interface") Signed-off-by: Geert Uytterhoeven --- drivers/mtd/nand/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile index db516a45f0c52635..44913ff1bf12cc24 100644 --- a/drivers/mtd/nand/Makefile +++ b/drivers/mtd/nand/Makefile @@ -3,11 +3,8 @@ nandcore-objs :=3D core.o bbt.o obj-$(CONFIG_MTD_NAND_CORE) +=3D nandcore.o obj-$(CONFIG_MTD_NAND_ECC_MEDIATEK) +=3D ecc-mtk.o -ifeq ($(CONFIG_SPI_QPIC_SNAND),y) obj-$(CONFIG_SPI_QPIC_SNAND) +=3D qpic_common.o -else obj-$(CONFIG_MTD_NAND_QCOM) +=3D qpic_common.o -endif obj-y +=3D onenand/ obj-y +=3D raw/ obj-y +=3D spi/ --=20 2.43.0