From patchwork Wed Aug 24 00:17:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 111211 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 96B86B6F18 for ; Wed, 24 Aug 2011 10:18:34 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qw1Al-0005bw-7L; Wed, 24 Aug 2011 00:18:23 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qw1Ak-00087G-OZ; Wed, 24 Aug 2011 00:18:22 +0000 Received: from mail-gy0-f177.google.com ([209.85.160.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qw1AP-00082j-UB for linux-mtd@lists.infradead.org; Wed, 24 Aug 2011 00:18:02 +0000 Received: by gyh20 with SMTP id 20so646448gyh.36 for ; Tue, 23 Aug 2011 17:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=uz2v+yPik9DJ6woOBMv0qwBzYELgqVSgUtoaGm9TM4E=; b=RoD4UiEPJM08UH6orQ1kSpeG1Saqi8S8mI9jaJQu9m8Ku88QrbXPeoHC1yW5iraxkR ZpW8WpQ29QmK3Fb4yEaWI102mh2M2oJn93H7z/79RWIxnD5M1Njp6m64iAc+LFUb9jX+ ueTA+9ItPK0taIB54zeXmvoEtLD+VM8QkpHdY= Received: by 10.142.11.12 with SMTP id 12mr762516wfk.59.1314145078490; Tue, 23 Aug 2011 17:17:58 -0700 (PDT) Received: from localhost.localdomain (cpe-76-174-190-12.socal.res.rr.com [76.174.190.12]) by mx.google.com with ESMTPS id i2sm121121wfd.20.2011.08.23.17.17.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Aug 2011 17:17:57 -0700 (PDT) From: Brian Norris To: Artem Bityutskiy Subject: [PATCH 3/5] mtd: remove MEMSETOOBSEL macro definition Date: Tue, 23 Aug 2011 17:17:34 -0700 Message-Id: <1314145056-5233-3-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1314145056-5233-1-git-send-email-computersforpeace@gmail.com> References: <1314145056-5233-1-git-send-email-computersforpeace@gmail.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110823_201802_118225_C266D2E9 X-CRM114-Status: GOOD ( 12.97 ) 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.160.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[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 Cc: Brian Norris , linux-mtd@lists.infradead.org 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 MEMSETOOBSEL is completely unused and useless. Remove the definition. Note: it's probably best not to use this ioctl number in the future for MTD, since that may cause conflicts between old kernels and new user software (or new kernels and old user software). This shouldn't be much problem. Signed-off-by: Brian Norris --- include/mtd/mtd-abi.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index 2f7d45b..f0e8027 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h @@ -112,7 +112,7 @@ struct otp_info { #define MEMUNLOCK _IOW('M', 6, struct erase_info_user) #define MEMGETREGIONCOUNT _IOR('M', 7, int) #define MEMGETREGIONINFO _IOWR('M', 8, struct region_info_user) -#define MEMSETOOBSEL _IOW('M', 9, struct nand_oobinfo) + #define MEMGETOOBSEL _IOR('M', 10, struct nand_oobinfo) #define MEMGETBADBLOCK _IOW('M', 11, __kernel_loff_t) #define MEMSETBADBLOCK _IOW('M', 12, __kernel_loff_t)