From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.105.134] helo=mgw-mx09.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1OdGhc-0006RY-7J for linux-mtd@lists.infradead.org; Mon, 26 Jul 2010 05:58:16 +0000 Subject: Re: [PATCHv2 4/5] libmtd: add support for 64-bit offsets, OOB From: Artem Bityutskiy To: Kevin Cernekee In-Reply-To: References: <1279386513.7515.33.camel@localhost.localdomain> <1279427219.16247.5.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" Date: Mon, 26 Jul 2010 08:57:25 +0300 Message-ID: <1280123845.14917.43.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org, jwboyer@gmail.com, saeed.bishara@gmail.com, vapier.adi@gmail.com Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2010-07-23 at 18:07 -0700, Kevin Cernekee wrote: > On Sat, Jul 17, 2010 at 9:26 PM, Artem Bityutskiy wrote: > > +int do_oob_op(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, > > + uint64_t start, uint64_t length, void *data, int cmd64, int cmd) > > cmd64 should be an unsigned int. When it gets compared to > MEMREADOOB64 (0xc0184d16), gcc says "comparison is always false due to > limited range of data type." > > > + if (cmd64 == MEMREADOOB64) { > > Extra space after == > > > + /* > > + * MEMREADOOB64/MEMWRITEOOB64 support was added in kernel > > + * version 2.6.30, so probably we are working with older kernel > > + * and these ioctls are not supported. > > + */ > > The new sysfs attributes were in 2.6.30, but the new ioctls did not > make it in until 2.6.31 (commit 0dc54e). Amended and pushed, thanks. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)