From patchwork Mon Nov 5 17:38:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Pringlemeir X-Patchwork-Id: 197265 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 B9C652C0081 for ; Tue, 6 Nov 2012 05:23:14 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVRI2-0005fu-1x; Mon, 05 Nov 2012 18:20:50 +0000 Received: from blu0-omc1-s6.blu0.hotmail.com ([65.55.116.17]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVRHy-0005fd-5r for linux-mtd@lists.infradead.org; Mon, 05 Nov 2012 18:20:47 +0000 Received: from BLU0-SMTP9 ([65.55.116.8]) by blu0-omc1-s6.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Nov 2012 10:20:40 -0800 X-Originating-IP: [64.229.138.54] X-EIP: [UEDwIYAVZTNLDvMq4CfL4Wd/XWXJCkw7] X-Originating-Email: [bpringle@sympatico.ca] Message-ID: Received: from DeadDuck ([64.229.138.54]) by BLU0-SMTP9.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Nov 2012 10:20:40 -0800 From: Bill Pringlemeir To: linux-mtd@lists.infradead.org Subject: [PATCH 1/2] ubi-test/io_update: ubi_leb_change_start() no longer uses 'dtype'. Date: Mon, 5 Nov 2012 12:38:36 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 X-OriginalArrivalTime: 05 Nov 2012 18:20:40.0374 (UTC) FILETIME=[42C19D60:01CDBB82] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121105_132046_272272_8CE366C1 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [65.55.116.17 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This will not compile for me (due to bit rot?). Maybe the program is never used? Signed-off-by: Bill Pringlemeir --- tests/ubi-tests/io_update.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/ubi-tests/io_update.c b/tests/ubi-tests/io_update.c index e8f0986..ec109e0 100644 --- a/tests/ubi-tests/io_update.c +++ b/tests/ubi-tests/io_update.c @@ -102,8 +102,7 @@ static int test_update1(struct ubi_vol_info *vol_info, int leb_change) test_len = total_len - (rand() % (total_len / 10)); if (leb_change) { - if (ubi_leb_change_start(libubi, fd, 0, test_len, - UBI_SHORTTERM)) { + if (ubi_leb_change_start(libubi, fd, 0, test_len)) { failed("ubi_update_start"); goto close; }