From patchwork Tue Apr 5 13:55:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shevchenko Andriy (EXT-Teleca/Helsinki)" X-Patchwork-Id: 89868 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D0168B6F9A for ; Tue, 5 Apr 2011 23:56:53 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q76jF-0005lY-Nf; Tue, 05 Apr 2011 13:55:33 +0000 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 1Q76jE-0004Z6-1F; Tue, 05 Apr 2011 13:55:32 +0000 Received: from smtp.nokia.com ([147.243.128.24] helo=mgw-da01.nokia.com) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q76j8-0004Ye-C0 for linux-mtd@lists.infradead.org; Tue, 05 Apr 2011 13:55:30 +0000 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p35DtMmo007560 for ; Tue, 5 Apr 2011 16:55:23 +0300 Received: from fs-test.research.nokia.com ([esdhcp05135.research.nokia.com [172.21.51.35]]) by mgw-da01.nokia.com with ESMTP id p35Dt1uh007133 ; Tue, 5 Apr 2011 16:55:02 +0300 Received: by fs-test.research.nokia.com (Postfix, from userid 1001) id CE238D042D; Tue, 5 Apr 2011 16:55:56 +0300 (EEST) From: Andy Shevchenko To: Artem Bityutskiy , linux-mtd@lists.infradead.org Subject: [PATCHv1 5/5] tests: ubi-tests: seed_random_generator() was used w/o prototype Date: Tue, 5 Apr 2011 16:55:54 +0300 Message-Id: <079428894ea293560f65737475e222af2332bfa9.1302011698.git.ext-andriy.shevchenko@nokia.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <741f4ff14ea8ad70001e78a94e98e01dbe783b3b.1302011698.git.ext-andriy.shevchenko@nokia.com> In-Reply-To: References: <1302007944.2760.126.camel@localhost> <112dd0ed24fca0a1af988a2c99f1258468184d68.1302011698.git.ext-andriy.shevchenko@nokia.com> <741f4ff14ea8ad70001e78a94e98e01dbe783b3b.1302011698.git.ext-andriy.shevchenko@nokia.com> References: X-Nokia-AV: Clean X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110405_095526_661220_7902FAE2 X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [147.243.128.24 listed in list.dnswl.org] 0.0 TVD_RCVD_SPACE_BRACKET TVD_RCVD_SPACE_BRACKET -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Andy Shevchenko 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 Signed-off-by: Andy Shevchenko --- tests/ubi-tests/integ.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ubi-tests/integ.c b/tests/ubi-tests/integ.c index f293444..4e13b73 100644 --- a/tests/ubi-tests/integ.c +++ b/tests/ubi-tests/integ.c @@ -14,6 +14,7 @@ #include #include "libubi.h" +#include "common.h" struct erase_block_info; struct volume_info; @@ -586,7 +587,7 @@ static void reload_ubi(void) sleep(1); } -static void check_volume(struct volume_info *vol) +static void integ_check_volume(struct volume_info *vol) { struct erase_block_info *eb = vol->erase_blocks; int pos; @@ -607,7 +608,7 @@ static void check_ubi_device(struct ubi_device_info *ubi_device) vol = ubi_device->volumes; while (vol) { - check_volume(vol); + integ_check_volume(vol); vol = vol->next; } }