From patchwork Mon Jul 12 02:53:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Buckendahl X-Patchwork-Id: 58564 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 0CBF0B6F0C for ; Mon, 12 Jul 2010 12:55:04 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OY997-0006Xp-43; Mon, 12 Jul 2010 02:53:29 +0000 Received: from mail-iw0-f177.google.com ([209.85.214.177]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OY994-0006X4-DY for linux-mtd@lists.infradead.org; Mon, 12 Jul 2010 02:53:27 +0000 Received: by iwn40 with SMTP id 40so4814640iwn.36 for ; Sun, 11 Jul 2010 19:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=IwxLXMCtCmR6VXvOHlVCTx0aVaDSGj2EibqcceJZ/us=; b=M6Buhi7qenWGL25yYoHCX/i1Ll2jTaA4/hqYHNpZSVD17zi7VfJXpX5ZB6hE7QPWlp YcrY3CvDsptTtWTF7uoJjrrwQnZ+wezDHLAOVz4fGM7o1zIyIi9RpnsgP0ghDN0OlWEJ MWsqsRjCbvApw5htTSXRt3FCFMUeddWU6DLio= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=g4fmcVOQnGClF1SbLksV/H8xP3kOLYSSw5bm58Lx8uThLEYnmtZlw8OQe560UQoSm3 74O0u4sSLLfdCoy+m8Keq2ziHcb59wJ1ny8oys4xPC/YVqg0Djqf7tGKihkbttP2Dgdo LYFSrrzmnPIDi+U7mGJo0WkDSFpQsk/pTMjSU= Received: by 10.231.35.10 with SMTP id n10mr12719621ibd.137.1278903205438; Sun, 11 Jul 2010 19:53:25 -0700 (PDT) Received: from [192.168.0.5] (adsl-75-57-125-67.dsl.emhril.sbcglobal.net [75.57.125.67]) by mx.google.com with ESMTPS id h8sm17331192ibk.3.2010.07.11.19.53.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Jul 2010 19:53:24 -0700 (PDT) Message-ID: <4C3A83A1.4000309@gmail.com> Date: Sun, 11 Jul 2010 21:53:21 -0500 From: Neal B User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Artem.Bityutskiy@nokia.com Subject: [PATCH 5/6] Mtd: fixed tab/space related issues. X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100711_225326_582826_7C8B7C30 X-CRM114-Status: GOOD ( 23.27 ) X-Spam-Score: 2.1 (++) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (2.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (nealb001[at]gmail.com) 2.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (nealb001[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 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: maximlevitsky@gmail.com, cascardo@holoscopio.com, linux-kernel@vger.kernel.org, Julia Lawall , linux-mtd@lists.infradead.org, jkosina@suse.cz, mohanlaljangir@gmail.com, rmk+kernel@arm.linux.org.uk, dwmw2@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: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This is dependent on [patch 4/6] From c7a714a1a7dce6585e117835748517d0c7b48767 Mon Sep 17 00:00:00 2001 From: Neal Buckendahl Date: Sun, 11 Jul 2010 18:37:30 -0500 Subject: [PATCH 5/6] Mtd: fixed tab/space related issues found by the checkpatch.pl tool Signed-off-by: Neal Buckendahl --- drivers/mtd/cmdlinepart.c | 52 ++++++++++++++++++++++---------------------- 1 files changed, 26 insertions(+), 26 deletions(-) else diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index 38666bb..2423ade 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c @@ -34,7 +34,7 @@ /* debug macro */ #if 0 -#define dbg(x) do { printk("DEBUG-CMDLINE-PART: "); printk x; } while(0) +#define dbg(x) do { printk("DEBUG-CMDLINE-PART: "); printk x; } while (0) #else #define dbg(x) #endif @@ -67,11 +67,11 @@ static int cmdline_parsed = 0; * syntax has been verified ok. */ static struct mtd_partition * newpart(char *s, - char **retptr, - int *num_parts, - int this_part, - unsigned char **extra_mem_ptr, - int extra_mem_size) + char **retptr, + int *num_parts, + int this_part, + unsigned char **extra_mem_ptr, + int extra_mem_size) { struct mtd_partition *parts; unsigned long size; @@ -98,19 +98,19 @@ static struct mtd_partition * newpart(char *s, /* fetch partition name and flags */ mask_flags = 0; /* this is going to be a regular partition */ delim = 0; - /* check for offset */ - if (*s == '@') { - s++; - offset = memparse(s, &s); - } - /* now look for name */ + /* check for offset */ + if (*s == '@') { + s++; + offset = memparse(s, &s); + } + /* now look for name */ if (*s == '(') delim = ')'; if (delim) { char *p; - name = ++s; + name = ++s; p = strchr(name, delim); if (!p) { printk(KERN_ERR ERRP "no closing %c found in partition name\n", delim); @@ -119,24 +119,24 @@ static struct mtd_partition * newpart(char *s, name_len = p - name; s = p + 1; } else { - name = NULL; + name = NULL; name_len = 13; /* Partition_000 */ } /* record name length for memory allocation later */ extra_mem_size += name_len + 1; - /* test for options */ - if (strncmp(s, "ro", 2) == 0) { + /* test for options */ + if (strncmp(s, "ro", 2) == 0) { mask_flags |= MTD_WRITEABLE; s += 2; } - /* if lk is found do NOT unlock the MTD partition*/ - if (strncmp(s, "lk", 2) == 0) { + /* if lk is found do NOT unlock the MTD partition*/ + if (strncmp(s, "lk", 2) == 0) { mask_flags |= MTD_POWERUP_LOCK; s += 2; - } + } /* test if more partitions are following */ if (*s == ',') { @@ -200,14 +200,14 @@ static int mtdpart_setup_real(char *s) { cmdline_parsed = 1; - for( ; s != NULL; ) { + for ( ; s != NULL; ) { struct cmdline_mtd_partition *this_mtd; struct mtd_partition *parts; - int mtd_id_len; + int mtd_id_len; int num_parts; char *p, *mtd_id; - mtd_id = s; + mtd_id = s; /* fetch */ if (!(p = strchr(s, ':'))) { printk(KERN_ERR ERRP "no mtd-id\n"); @@ -280,8 +280,8 @@ static int mtdpart_setup_real(char *s) * the first one in the chain if a NULL mtd_id is passed in. */ static int parse_cmdline_partitions(struct mtd_info *master, - struct mtd_partition **pparts, - unsigned long origin) + struct mtd_partition **pparts, + unsigned long origin) { unsigned long offset; int i; @@ -292,9 +292,9 @@ static int parse_cmdline_partitions(struct mtd_info *master, if (!cmdline_parsed) mtdpart_setup_real(cmdline); - for(part = partitions; part; part = part->next) { + for (part = partitions; part; part = part->next) { if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id))) { - for(i = 0, offset = 0; i < part->num_parts; i++) { + for (i = 0, offset = 0; i < part->num_parts; i++) { if (part->parts[i].offset == OFFSET_CONTINUOUS) part->parts[i].offset = offset;