Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2020195pxb; Mon, 12 Apr 2021 12:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTs8xXideunKIFlZ5XcJAKkPHuXxJYtbHWFVbfAbnFgcDWZkMcoMeQT8dcfM8mtQ6oEnFx X-Received: by 2002:aa7:8e52:0:b029:23e:5c6e:61f8 with SMTP id d18-20020aa78e520000b029023e5c6e61f8mr26394010pfr.16.1618254504832; Mon, 12 Apr 2021 12:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618254504; cv=none; d=google.com; s=arc-20160816; b=KZ5XyoOE316nXXKj7Qh8T48QOBLdZlL80Kq6V5eX71C9SnudTZsK8n90SRE+D1lX9o q5C1voGEu+G8uq2KwzvqcYTsP0O4IXbtkfCZGFI51rPtutZe489ramsvNrA+m5gpS5D5 I+pZgDDYX1sdy1enZ9RdR8onEy1lBGyAUerSU17usCUywgqbXOV/fy/psZBkcE4+dkj+ Fk7wiC6DXp/gcMJAVwNw+DiL1Kho7LUyzYD+vYkpaj0GzBqpML6eQIGnbLOgV8DEeGsB PDGoT1SfzHzOUCxylFTPk2PNVNygtSmzOY/JolEmr/qupdARjCqHkas8tBGaJUZlnfDb SQ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UryxrO6clAQ+gSWPF8aTxV/VWh5eKXZIooN3CCW0R4g=; b=fsEfBvxpOAV/vOjoZ3j6pHQWgH6ujeyce68opm6drsfAHHaE5pLl6ldigLBci//czA IwthnGN/Sy+Ze5bPLQKiKRAiKV6LvdZrszYBwfVBh4LnW3sa1bwCEN3H5fEiiHytiI86 c3ITw20/hoeRW83opcekaQ5XwixA7KXf+3uAZgUOZTZ88skMn1lt4UXoNCeQrO03yCn1 6+Ka2DW7OgooGRqSpSTmPuYYqnY03v3vKF7U/OZXqnHuzsQaqpPpYqDplWpLnnjxaTe7 rUTOPJ4hR+/sKGrX4qZIGZAt9Tm7ngzmoYLiylpDCxbS8pI+6AlB7+Xve2iwRrFOxJiC 1EhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TuDxfi1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me6si275688pjb.172.2021.04.12.12.08.11; Mon, 12 Apr 2021 12:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TuDxfi1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237153AbhDLHw4 (ORCPT + 99 others); Mon, 12 Apr 2021 03:52:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237147AbhDLHwz (ORCPT ); Mon, 12 Apr 2021 03:52:55 -0400 Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F143AC06138C for ; Mon, 12 Apr 2021 00:52:37 -0700 (PDT) Received: by mail-vs1-xe29.google.com with SMTP id b18so995988vso.7 for ; Mon, 12 Apr 2021 00:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UryxrO6clAQ+gSWPF8aTxV/VWh5eKXZIooN3CCW0R4g=; b=TuDxfi1mXRUdhJSc3QJpNmZ8vGtbRzg8k2p2+0RRPD1K5s7IhlkIIPMOtxtyuAsU7v 8cR4i98UmepF5NZmKf0d5X1zzczYr2hrXxmZEN7PgkZ5r6+IM+rRLdkNTJFrCfLA0y/x COhUHWky1wfHQJJnnSoVq+1he/7ZvJRcKrSdBuf6uLUvZAqqOIOe0FvFRvY9Unj5Ty51 LSLH2DBMMk/hzPSCgv0ZkmtQY0wnCaok0XPYsAsq+RlxxLVWplIBxyxw2FzYWKoZ5dr8 ynZ+bforMuTdLnwIbdxZOxMPf2GKeFsl2kwl3iqg4dXrjFYRbE/xGNA+QXwF6OkI3EMH YxkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UryxrO6clAQ+gSWPF8aTxV/VWh5eKXZIooN3CCW0R4g=; b=mfFDqDPJtxJfVzox34AVtdWPIDQHjpNBV79apLqs9bP4jlXnm3JQai0RWosVtVPSHX G6eo5PFM0O1y8A9vP2Ps4baMrjX0b1kzR3CZRn5HhOBsf9hnj8eB1ZYsv6hDw7I7MeNf MScPMSL8W6BZLIpVxYgpfgr+D8S51u7aqawqXD4UqPcGx+zdw/17DYLs5m+Syw3oQe85 HyUz6IptIWGNzFWMambIc5mnVaDBGWXWSk0OVCJYAaxKZ6URQWhHSoLw5K0Dwa3Bvw9P ZIA3bwD24Jb+adjPOrQWoDLCASBZa95kiVglpn8MkyCa4AIRNzF3edx781qDCxNpcx3k +e8A== X-Gm-Message-State: AOAM533DaHFyT7U0wnvDSqy/6bf7TgOGI8r19fpQVexu/sJ2QTas/wOA k9lJfwkgz4g6aqYeiECmdRw11RKMwa8o0AiRlqGG8JuRlGE= X-Received: by 2002:a67:fd48:: with SMTP id g8mr11938720vsr.55.1618213957148; Mon, 12 Apr 2021 00:52:37 -0700 (PDT) MIME-Version: 1.0 References: <1617357231-93064-1-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1617357231-93064-1-git-send-email-yang.lee@linux.alibaba.com> From: Ulf Hansson Date: Mon, 12 Apr 2021 09:52:00 +0200 Message-ID: Subject: Re: [PATCH] mmc: moxart: Remove unused variable 'dma_time' and 'pio_time' To: Yang Li Cc: linux-mmc , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Apr 2021 at 11:53, Yang Li wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/mmc/host/moxart-mmc.c:257:7: warning: variable =E2=80=98dma_time= =E2=80=99 set > but not used > drivers/mmc/host/moxart-mmc.c:395:7: warning: variable =E2=80=98pio_time= =E2=80=99 set > but not used > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/moxart-mmc.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.= c > index 89bff4e..bde2988 100644 > --- a/drivers/mmc/host/moxart-mmc.c > +++ b/drivers/mmc/host/moxart-mmc.c > @@ -257,7 +257,6 @@ static void moxart_dma_complete(void *param) > static void moxart_transfer_dma(struct mmc_data *data, struct moxart_hos= t *host) > { > u32 len, dir_slave; > - long dma_time; > struct dma_async_tx_descriptor *desc =3D NULL; > struct dma_chan *dma_chan; > > @@ -294,8 +293,8 @@ static void moxart_transfer_dma(struct mmc_data *data= , struct moxart_host *host) > > data->bytes_xfered +=3D host->data_remain; > > - dma_time =3D wait_for_completion_interruptible_timeout( > - &host->dma_complete, host->timeout); > + wait_for_completion_interruptible_timeout(&host->dma_complete, > + host->timeout); > > dma_unmap_sg(dma_chan->device->dev, > data->sg, data->sg_len, > @@ -395,7 +394,6 @@ static void moxart_prepare_data(struct moxart_host *h= ost) > static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq= ) > { > struct moxart_host *host =3D mmc_priv(mmc); > - long pio_time; > unsigned long flags; > u32 status; > > @@ -431,8 +429,8 @@ static void moxart_request(struct mmc_host *mmc, stru= ct mmc_request *mrq) > spin_unlock_irqrestore(&host->lock, flags); > > /* PIO transfers start from interrupt. */ > - pio_time =3D wait_for_completion_interruptible_ti= meout( > - &host->pio_complete, host->timeout); > + wait_for_completion_interruptible_timeout(&host->= pio_complete, > + host->t= imeout); > > spin_lock_irqsave(&host->lock, flags); > } > -- > 1.8.3.1 >