From patchwork Sat Sep 24 05:01:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76912 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp191272qgf; Fri, 23 Sep 2016 22:01:27 -0700 (PDT) X-Received: by 10.66.12.234 with SMTP id b10mr18660141pac.91.1474693287261; Fri, 23 Sep 2016 22:01:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rw6si11511834pab.162.2016.09.23.22.01.26; Fri, 23 Sep 2016 22:01:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933339AbcIXFBX (ORCPT + 27 others); Sat, 24 Sep 2016 01:01:23 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36688 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbcIXFBU (ORCPT ); Sat, 24 Sep 2016 01:01:20 -0400 Received: by mail-pa0-f51.google.com with SMTP id qn7so28624869pac.3 for ; Fri, 23 Sep 2016 22:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WktlfA/KXHyq8uaGtTtIwgKL5ISIDugYZkcFQfCoueo=; b=Gaie5rDe6fOw7mxKsPUmsyWdTDAPGpfNW8+lRjOngBYW/9elO1/1ZC6j03KEZWvNSh aeAVd+hyzF/NqbD0wXky+RCtm64+VdHWUmmJc8J/dkwCN5evlIKYDytWXeee7a3gE3eZ C4Bv9mLR7KoqgM9q4sz4H/wLenaDf24MS6u6s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WktlfA/KXHyq8uaGtTtIwgKL5ISIDugYZkcFQfCoueo=; b=RVAV2Zq1SXIFDhnZqMRauS0BqjIRE1qQa7mUKjdgRXWDaV1ZtvZV/GoGYs23ohBOuD jnOBNYAhBkALL5nZ471i5HOBMANHAVVhDUU528VMt2NlPOHLgnqrh2b/njX2asBIzgMK aMouJXyGLM9/A0aAQ3JO/zxp7sKFR8FBczuLM6tWdiNm1SFkIDbjZ3/dUQiNFSS2MfeM VCd7eTwxllcYeJ408u1JlCfTX8A7IC5C8axzc0bMH3DylNEYnWil7eqjcK621PmA43vi fqH6eTk0F/oQDW1LlSmp2ud5K1n7BA3AgszQ6j7temrS6BK5mpy0GuruGP6SOZr7WvHS n/Ig== X-Gm-Message-State: AE9vXwNhk9eC5MwO4eTOiw8EZyQq0DdmXMiczSvWklGl515z+BbsV93YuPpvn7ZlIrftEvr5 X-Received: by 10.66.12.234 with SMTP id b10mr18659394pac.91.1474693280102; Fri, 23 Sep 2016 22:01:20 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id c28sm14988952pfj.6.2016.09.23.22.01.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 22:01:19 -0700 (PDT) From: Baoyou Xie To: dan.j.williams@intel.com, vinod.koul@intel.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 3/3] dmaengine: imx-sdma: remove unused function Date: Sat, 24 Sep 2016 13:01:06 +0800 Message-Id: <1474693266-16132-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/dma/imx-sdma.c:673:13: warning: 'sdma_handle_channel_loop' defined but not used [-Wunused-function] In fact, this function is called by no one and not exported, so this patch removes it. Signed-off-by: Baoyou Xie --- drivers/dma/imx-sdma.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.7.4 diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 695f160..7fb55dd 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -670,11 +670,6 @@ static void sdma_event_disable(struct sdma_channel *sdmac, unsigned int event) writel_relaxed(val, sdma->regs + chnenbl); } -static void sdma_handle_channel_loop(struct sdma_channel *sdmac) -{ - dmaengine_desc_get_callback_invoke(&sdmac->desc, NULL); -} - static void sdma_update_channel_loop(struct sdma_channel *sdmac) { struct sdma_buffer_descriptor *bd;