From patchwork Tue Jan 11 11:33:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 78343 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from canuck.infradead.org (canuck.infradead.org [134.117.69.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 419BBB7043 for ; Tue, 11 Jan 2011 22:43:28 +1100 (EST) Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PccU5-0001v7-NQ; Tue, 11 Jan 2011 11:33:53 +0000 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PccTy-0001tq-Sm for linux-mtd@lists.infradead.org; Tue, 11 Jan 2011 11:33:47 +0000 Received: by fxm19 with SMTP id 19so19231221fxm.36 for ; Tue, 11 Jan 2011 03:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=C1cjca41TEZ3m/usdDvKoLfTTWUeA39DQplvNUvtyac=; b=kp7kq/kpO98qb0W6tfXW7HSdqRebAVppNCAvZLTEpA+L0x+fmdbi8juJ7J2sfhY1g0 A/jPWBtP3QODvEFzhSR+KgGm9u86zY0dKQvPx+I4VP8afvqcAwSUI7SDQBMVXg/GY6pX fwGHQorlWbBZKULTjwd4aDEBid59OH19tORNM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=aSVgK+kzeItJTAtE84xHCz5lwzSoc18X36M8nTwlyTQWBhmzmCXfYkF1oU+2Pg2mmE cnddawcYhajYXhMAGDuNrHjxjQruoiiECmBnEiIApPScCvegeRPk8taxYKKFs87LuOC5 iAkbxG9s5NKj5fgjDF0DPyFuIuFzCq+dU7qlY= Received: by 10.223.86.3 with SMTP id q3mr3058148fal.139.1294745624749; Tue, 11 Jan 2011 03:33:44 -0800 (PST) Received: from doriath.ww600.siemens.net ([91.213.169.4]) by mx.google.com with ESMTPS id o17sm7339183fal.25.2011.01.11.03.33.41 (version=SSLv3 cipher=RC4-MD5); Tue, 11 Jan 2011 03:33:42 -0800 (PST) From: Dmitry Eremin-Solenikov To: David Woodhouse Subject: [PATCH 1/5] MTD: make MTD_CONCAT support mandatory Date: Tue, 11 Jan 2011 14:33:35 +0300 Message-Id: <1294745619-7142-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.2.3 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110111_063347_163706_486839EA X-CRM114-Status: GOOD ( 15.21 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (dbaryshkov[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain Cc: Stefan Roese , linux-mtd@lists.infradead.org, Artem Bityutskiy X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Move mtdconcat to be an integral part of the mtd core. It's a tiny bit of code, which bears 'say Y if you don't know what to do' note in the Kconfig. OTOH there are several ugly ifdefs depending on the MTD_CONCAT. So, making MTD_CONCAT support mandatory will allow us to clean up code a lot. Kconfig entry is changed to be a bool defaulting to Y, so all code pieces depending on it, will have MTD_CONCAT Kconfig symbol and CONFIG_MTD_CONCAT define. This will be removed in one of next patches. Signed-off-by: Dmitry Eremin-Solenikov Cc: Artem Bityutskiy Cc: Stefan Roese Acked-by: Stefan Roese --- drivers/mtd/Kconfig | 3 ++- drivers/mtd/Makefile | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 1e2cbf5..38ca5f2 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -34,7 +34,8 @@ config MTD_TESTS various checks and verifications when loaded. config MTD_CONCAT - tristate "MTD concatenating support" + bool + default y help Support for concatenating several MTD devices into a single (virtual) one. This allows you to have -for example- a JFFS(2) diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 760abc5..a166b71 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -4,10 +4,9 @@ # Core functionality. obj-$(CONFIG_MTD) += mtd.o -mtd-y := mtdcore.o mtdsuper.o +mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o -obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o obj-$(CONFIG_MTD_AFS_PARTS) += afs.o