From patchwork Tue Jan 8 00:42:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1943211 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 708BF3FED4 for ; Tue, 8 Jan 2013 00:42:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754926Ab3AHAmv (ORCPT ); Mon, 7 Jan 2013 19:42:51 -0500 Received: from mail-yh0-f52.google.com ([209.85.213.52]:62021 "EHLO mail-yh0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754729Ab3AHAmt (ORCPT ); Mon, 7 Jan 2013 19:42:49 -0500 Received: by mail-yh0-f52.google.com with SMTP id m1so1363154yhg.11 for ; Mon, 07 Jan 2013 16:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=znUaGIJEMAFD1L3lBZgMDTa67OTGAK8OU2pTlpQJyGk=; b=gzGtMxXCaI4blGASSN9FOc9YBb8i34bp4ntxgpWgmD6X0kEMI3rq8aRzl+B5TpBzYi LwWBovNDWNLhjwKn2wJSuWpwC3pm+IvUniVp0bwSDXR7ngCNIqS7ti5G5jFLqdSu4G/q qHuDU+fKxc+knI8nffvg0cKRDIBO9yrQBe5JJZx0PjuO2lmXVI9U2b4gH5c9bm5pTnvo LKQK1wQ2fRdSLEQR5zREtfcO5T08/5/cpjvDwHZ33bnaQOrvRuhzlOZwvYkTxPXKwKI2 qSZwYoL/026c9dH5CLMxcFdbAmzEhRGaU0Uf/zBvkEwuBzwxu/yIxG/eVlBAltUnickR 9LTA== X-Received: by 10.236.114.11 with SMTP id b11mr70821022yhh.61.1357605768561; Mon, 07 Jan 2013 16:42:48 -0800 (PST) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([189.61.223.46]) by mx.google.com with ESMTPS id t2sm61515091anj.3.2013.01.07.16.42.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 16:42:48 -0800 (PST) From: Fabio Estevam To: cjb@laptop.org Cc: marex@denx.de, linux-mmc@vger.kernel.org, Fabio Estevam Subject: [PATCH] mmc: mxs-mmc: Fix warning due to incorrect type Date: Mon, 7 Jan 2013 22:42:35 -0200 Message-Id: <1357605755-8872-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Fabio Estevam Fixes the following warning when building with W=1 option: drivers/mmc/host/mxs-mmc.c: In function 'mxs_mmc_adtc': drivers/mmc/host/mxs-mmc.c:401:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] The warning happens because 'i' is used in 'for_each_sg(sgl, sg, sg_len, i)' and should be made unsigned. Signed-off-by: Fabio Estevam Acked-by: Marek Vasut --- drivers/mmc/host/mxs-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 206fe49..eb33cb1 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c @@ -354,7 +354,7 @@ static void mxs_mmc_adtc(struct mxs_mmc_host *host) struct dma_async_tx_descriptor *desc; struct scatterlist *sgl = data->sg, *sg; unsigned int sg_len = data->sg_len; - int i; + unsigned int i; unsigned short dma_data_dir, timeout; enum dma_transfer_direction slave_dirn;