Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp439723pxr; Sun, 10 Apr 2022 20:20:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkLiATaPdTf+nuD9Fx60HFzwTFGUXFn5OcCeoWsKlylkR/+GSHR0kGmrN5wSK3qocg+0jB X-Received: by 2002:a17:90b:3851:b0:1c7:80f9:5306 with SMTP id nl17-20020a17090b385100b001c780f95306mr34387330pjb.207.1649647228214; Sun, 10 Apr 2022 20:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649647228; cv=none; d=google.com; s=arc-20160816; b=h6n9AQRGS85y8vO0+VnrcJSFlLMm/oWY2MHKR2QnJ1TEUSHLzQKQpcKTqJT19bdRek +VsGeUtvkvelIU1KBdqz7Ma98NQhwGwzhH/ydQeMTm1H48XHCSpY7Mnr0nVAi6Wfrhm4 lNIRZTC7Hl+cgKVdwfMayX5f09tiJGaILb0/aPqrJAItXsMz+vbrC8kFBeWUGvvKLXkZ vymwji2JgXL+hkd/y6hnPzsptCkHmVozBiXtnstX1hBZGo1fbVLIW/JjTKoELiC1aOhr BvdT6lc+CPwcilA7WLXojTBuclmAeCrZRiv/0y96soPchryjWBc2Qwh13guooaZ08v66 LHxg== 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=cIdqjLCFAxoIp4Ta8Sa/kLWiG2xTZyv1wodCLDa8stg=; b=xBW0z5ZwYzT7PNrgFpg4yHnybLOWCIILeAI8/c3jaesvwr+GCbDJ5mRY6oGX+us93E r5mua/HVI3qTZTcTdI7syUz+Kdyxet3Ix/wUbGI+NGwu7O/TaZLzp36aYIV0KWVDa/Tb DEiM7fiyJPyiAhyNUtU7QWuoC66KrgPs/4h5XZVQ749ZvbkVTjZ81iW7z1/DQirbKcJ4 Jgiwfv3uXOmg38wiY+OgEckrgnaZxFVAUBanHhffD5rJFXVyeMCqKUzWjkpHOxRnTSqT e1KbYMAnBTBmxwRM83RlO0BuBVn0qD4VisajW9Nr0ClWaxQqAbE9TM/31B1ZEm7IsXu9 PpNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PQZgjAf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a170902ab8600b00153b2d16576si7309220plr.382.2022.04.10.20.20.13; Sun, 10 Apr 2022 20:20:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PQZgjAf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238038AbiDIFYY (ORCPT + 99 others); Sat, 9 Apr 2022 01:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbiDIFYW (ORCPT ); Sat, 9 Apr 2022 01:24:22 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A1D26129 for ; Fri, 8 Apr 2022 22:22:15 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id c23so9688041plo.0 for ; Fri, 08 Apr 2022 22:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cIdqjLCFAxoIp4Ta8Sa/kLWiG2xTZyv1wodCLDa8stg=; b=PQZgjAf4GQRLJ6M2/BS05ElPfRJXPffzAfjrrtKqoKnCHmeJRknvqOkL0J4VvwxyHw BaO5FCyTQkjhrVTUB95fcNO6g2yy+A0aMQnyH2p6id1CY7vsqDn2dT9OpwCizEbk85Cn T6UF6d3LD5eUsQUx+18lNYnOqycletll+YHMx6Pyl/tgteQIdpqIjNpsunk3SYk3hn+M n748KW643Lrh697qXNJGzuTUsG2PoKy1ZrvjfTeSEK8sKHfwcnIb6ufcbQNcXGJi/ZRV haxLtbOHIVgLLYi6G+fvtrmIjZVl9sJEOPNaVuvqpXkyoUHZnhNNSkBjBhMlC8IIPLd4 FxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cIdqjLCFAxoIp4Ta8Sa/kLWiG2xTZyv1wodCLDa8stg=; b=W0Ev2RWPCYp2xVT4F+xzDbm9JLR7XDWjVkj0+KGwrAaH0m5ZUXNJpycIMYfo8cIDqd 4IaIq6D1YQE/HRz/WEBJ61KHcYgDLb5uE2a0Dmc13HzISb0av42wAJ9Qonm28HYELCSM b/yNH2JHMPjY+gWRn0TMefXFwwsQaPjbnR+A4befUk+msmwqUaaYC9IPHEMZG+UAbvxt xp4qAEwpdEPStfpAYhbJaJxLfBiFe0xnyM9J6ZFWngGCOHpST19QsZuTi/glfzfoojTM YVirOsfqGzAgBwwMJ0aMtN8oz09HsOVdu2JiWcIfUHbUjm+TL89g3F834an0gMJDCmL/ M8uQ== X-Gm-Message-State: AOAM533kV4Xs3ChwykOiJuHMi3N0GgGbKQFdcLz1sIGXNqNhSxbfy0KW dT6xL9AZj9DeMtBQqGUOhMWDklReixOiE4gN X-Received: by 2002:a17:902:e5c6:b0:155:ceb9:3710 with SMTP id u6-20020a170902e5c600b00155ceb93710mr23274831plf.59.1649481735053; Fri, 08 Apr 2022 22:22:15 -0700 (PDT) Received: from guoguo-omen.lan ([2001:250:3000:7000:7978:d40d:86ff:591d]) by smtp.gmail.com with ESMTPSA id d8-20020a636808000000b00398e9c7049bsm21694446pgc.31.2022.04.08.22.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 22:22:14 -0700 (PDT) From: Chuanhong Guo To: linux-mtd@lists.infradead.org Cc: Chuanhong Guo , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] mtd: nand: separate ecc-mxic from nandcore Date: Sat, 9 Apr 2022 13:21:48 +0800 Message-Id: <20220409052148.2159196-1-gch981213@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ecc-mxic contains its own MODULE_* macros. It should get a separated obj- entry in Makefile instead of being built as a part of nandcore.o Fixes: 48e6633a9fa2 ("mtd: nand: mxic-ecc: Add Macronix external ECC engine support") Signed-off-by: Chuanhong Guo --- drivers/mtd/nand/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile index a4e6b7ae0614..dbc62bc7b2f9 100644 --- a/drivers/mtd/nand/Makefile +++ b/drivers/mtd/nand/Makefile @@ -2,6 +2,7 @@ nandcore-objs := core.o bbt.o obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o +obj-$(CONFIG_MTD_NAND_ECC_MXIC) += ecc-mxic.o obj-y += onenand/ obj-y += raw/ @@ -10,4 +11,3 @@ obj-y += spi/ nandcore-$(CONFIG_MTD_NAND_ECC) += ecc.o nandcore-$(CONFIG_MTD_NAND_ECC_SW_HAMMING) += ecc-sw-hamming.o nandcore-$(CONFIG_MTD_NAND_ECC_SW_BCH) += ecc-sw-bch.o -nandcore-$(CONFIG_MTD_NAND_ECC_MXIC) += ecc-mxic.o -- 2.35.1