From patchwork Mon Dec 15 11:59:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42256 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E07B721772 for ; Mon, 15 Dec 2014 12:02:30 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf3421859wid.7 for ; Mon, 15 Dec 2014 04:02:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=xxiIUw30489g+yfHG6RRseKz+ieDVIwZxbbBiCQGdns=; b=HA7NzSbtbLOjBx2Q9fU0lxHQWS1poJjLRFCxAAb33468dGhOQeuIT9DJFAmmvjN2+q hU6Ys+7nSWoJHMtNlZ12ODvhnx97HhaaV40JfY2CTcZWp9ksaoVg85z9Xb/vTfaxPKEn qZl+xlDVWxKbgEibdAedKvIzESR6jinXTOUQqNcumniCa46ogZ2MTC5osHe7IynQmmKc Ajs+VqfHhCG2Zs8htkVHEH9EzSnVM5r8l5r+5W5+JMkeYEby3oEI2nF/b0m6mmaMAsty NbzRMsUdBsL3pW38W6tQZeYxNaRC7vmj4tmtMXc5RVYP38xHZquk3V8JEh4vPRT1PJL5 eNrg== X-Gm-Message-State: ALoCoQnDNCtXvY6ee9WjSJhAHecHYMSq7/+LYd9BXmhDq6ui/P57/C+LWgXaGXB7913BlT/rffRO X-Received: by 10.152.8.67 with SMTP id p3mr332301laa.4.1418644950158; Mon, 15 Dec 2014 04:02:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.165 with SMTP id 5ls755195lav.42.gmail; Mon, 15 Dec 2014 04:02:29 -0800 (PST) X-Received: by 10.152.234.140 with SMTP id ue12mr29102381lac.78.1418644949516; Mon, 15 Dec 2014 04:02:29 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id w2si10186344laz.109.2014.12.15.04.02.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Dec 2014 04:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id b6so8958499lbj.36 for ; Mon, 15 Dec 2014 04:02:29 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr29424525lbc.23.1418644949427; Mon, 15 Dec 2014 04:02:29 -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.142.69 with SMTP id ru5csp692594lbb; Mon, 15 Dec 2014 04:02:28 -0800 (PST) X-Received: by 10.68.211.104 with SMTP id nb8mr50412261pbc.29.1418644947457; Mon, 15 Dec 2014 04:02:27 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ta2si13493353pab.227.2014.12.15.04.02.26 for ; Mon, 15 Dec 2014 04:02:27 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752127AbaLOMCZ (ORCPT + 27 others); Mon, 15 Dec 2014 07:02:25 -0500 Received: from mail-yh0-f48.google.com ([209.85.213.48]:55004 "EHLO mail-yh0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbaLOL7k (ORCPT ); Mon, 15 Dec 2014 06:59:40 -0500 Received: by mail-yh0-f48.google.com with SMTP id i57so4976479yha.7 for ; Mon, 15 Dec 2014 03:59:39 -0800 (PST) X-Received: by 10.170.57.211 with SMTP id 202mr24634282ykz.116.1418644779358; Mon, 15 Dec 2014 03:59:39 -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 d91sm5783468yhq.53.2014.12.15.03.59.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 03:59:38 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, computersforpeace@gmail.com, linux-mtd@lists.infradead.org Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [PATCH v3 05/13] mtd: st_spi_fsm: Fix [-Wsign-compare] build warning Date: Mon, 15 Dec 2014 11:59:12 +0000 Message-Id: <1418644760-18773-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418644760-18773-1-git-send-email-lee.jones@linaro.org> References: <1418644760-18773-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.177 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 d82394a..63a84d2 100644 --- a/drivers/mtd/devices/st_spi_fsm.c +++ b/drivers/mtd/devices/st_spi_fsm.c @@ -1625,11 +1625,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);