From patchwork Thu Dec 4 10:21:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 41927 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 16D0025E8C for ; Thu, 4 Dec 2014 10:26:00 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id ge10sf7175459lab.4 for ; Thu, 04 Dec 2014 02:25:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=sVllMKsrWNy7QXZwTETpkLz8Wn+bUJ5VaCi4vdKavok=; b=Nv7JX2PDMwViy96NhqfaaMF0d2SmpJq+41UojRr9YKdoxpLsJBa3utDzh+uLFTkirT eVbkvCSQoxWhFC1ocskpN2Z/7FSV70qknDp+pxzUZR0GD8Vj1UG6KcSBvQ8EL6QGYxIc lq9ohUHo8ncj0mksSHyxF6vR1txWgEz50k09mfLQNmII/FRkfERVzmBR0vPtAPPyeVyb 1i/9bvW+iOAtC8byAD9MHVlTDQX6st9K7ZHK3gG2Hi1rocVfqq5gAnsdXePLV3Yo2DpJ UGH/e5Ewf9TfFkgXwTtPU/sEgr8VXCRpFnM/GMmsAqtLN3tbb78iY9dUjGg1f13j3mZ+ ZEZA== X-Gm-Message-State: ALoCoQmXN/BJAu/MdBCK94iGBoTGnjKzj32Pfbu5XdgpK2w3gVMe7N80VM3QgDRpYF18YAl0nyA6 X-Received: by 10.112.188.199 with SMTP id gc7mr2085747lbc.6.1417688759095; Thu, 04 Dec 2014 02:25:59 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.170 with SMTP id p10ls260612lal.35.gmail; Thu, 04 Dec 2014 02:25:58 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr8618607lal.29.1417688758915; Thu, 04 Dec 2014 02:25:58 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id a3si25462572lbv.43.2014.12.04.02.25.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 02:25:58 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so13692027lbv.14 for ; Thu, 04 Dec 2014 02:25:58 -0800 (PST) X-Received: by 10.152.2.165 with SMTP id 5mr8725057lav.40.1417688758831; Thu, 04 Dec 2014 02:25:58 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp10521lbc; Thu, 4 Dec 2014 02:25:58 -0800 (PST) X-Received: by 10.66.157.101 with SMTP id wl5mr16943432pab.37.1417688757331; Thu, 04 Dec 2014 02:25:57 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id hy9si31359096pac.170.2014.12.04.02.25.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Dec 2014 02:25:57 -0800 (PST) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XwTa4-0005Nc-Kf; Thu, 04 Dec 2014 10:24:16 +0000 Received: from mail-yk0-f170.google.com ([209.85.160.170]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XwTYM-00045Z-Px for linux-arm-kernel@lists.infradead.org; Thu, 04 Dec 2014 10:22:31 +0000 Received: by mail-yk0-f170.google.com with SMTP id q200so7844740ykb.29 for ; Thu, 04 Dec 2014 02:22:09 -0800 (PST) X-Received: by 10.236.4.134 with SMTP id 6mr11711347yhj.101.1417688529128; Thu, 04 Dec 2014 02:22:09 -0800 (PST) Received: from localhost.localdomain (host109-148-232-11.range109-148.btcentralplus.com. [109.148.232.11]) by mx.google.com with ESMTPSA id y67sm16089929yhc.11.2014.12.04.02.22.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 02:22:08 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 RESEND 03/11] mtd: st_spi_fsm: Fix [-Wsign-compare] build warning Date: Thu, 4 Dec 2014 10:21:44 +0000 Message-Id: <1417688512-7644-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417688512-7644-1-git-send-email-lee.jones@linaro.org> References: <1417688512-7644-1-git-send-email-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141204_022230_994441_37E84EF0 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.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 [209.85.160.170 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.160.170 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: linux-mtd@lists.infradead.org, computersforpeace@gmail.com, lee.jones@linaro.org, kernel@stlinux.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 drivers/mtd/devices/st_spi_fsm.c:1647:17: warning: comparison between signed and unsigned integer expressions Signed-off-by: Lee Jones --- drivers/mtd/devices/st_spi_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c index ddb659f..35eb475 100644 --- a/drivers/mtd/devices/st_spi_fsm.c +++ b/drivers/mtd/devices/st_spi_fsm.c @@ -1586,11 +1586,11 @@ static int stfsm_write(struct stfsm *fsm, const uint8_t *buf, uint32_t size_lb; uint32_t size_mop; uint32_t tmp[4]; + uint32_t i; uint32_t page_buf[FLASH_PAGESIZE_32]; uint8_t *t = (uint8_t *)&tmp; const uint8_t *p; int ret; - int i; dev_dbg(fsm->dev, "writing %d bytes to 0x%08x\n", size, offset);