From patchwork Thu Sep 15 13:34:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76307 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2447075qgf; Thu, 15 Sep 2016 06:35:45 -0700 (PDT) X-Received: by 10.66.10.7 with SMTP id e7mr843707pab.172.1473946545732; Thu, 15 Sep 2016 06:35:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b73si4539887pfb.21.2016.09.15.06.35.45; Thu, 15 Sep 2016 06:35:45 -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 S1757406AbcIONfn (ORCPT + 27 others); Thu, 15 Sep 2016 09:35:43 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:34410 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753100AbcIONfe (ORCPT ); Thu, 15 Sep 2016 09:35:34 -0400 Received: by mail-pf0-f171.google.com with SMTP id p64so16921240pfb.1 for ; Thu, 15 Sep 2016 06:35:05 -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=scabokYDAH+4mzQCKU22FupXkE9Z/AnE4MNluISYRug=; b=XfZssT/kaUKnaRFjSuMyIpBYhaEzRqMLEI0vT/0bLzyLMj4o7o6TUq/n7njXc4S1mi vYy1+fxl6fbCHh8zJl9A22X1GCVMkkLlo+Z4a7EgwDFp5wkyOw7e1QQIHz6URDbCYD5x j61QbK8G1Uzr2kRSy0D0G6cJ6tzWkwFI0qcf8= 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=scabokYDAH+4mzQCKU22FupXkE9Z/AnE4MNluISYRug=; b=h16lj05upDCNw0900aPjOKojB9iyaNIgYgOMpIx2WQLFcWdIgPB+gYgsn0ACKzWqwR deOmEmwqS1tCa9L54KCJ8DIgzfYhE0fZzceFAuQQOsL9eR5nIX3Il7K8WgpHdxk8RbPE XhBSAesz0hAxeBiN8M+D+xmOVBzzJxbwVdrT7mqCyxTaKG7C72i1OmRDGYegjfOPxh7g TalmQ0xxuwY39+NS1rNiFjQo/4/ZsfXYLeW6FenAVf3bK8ai3yZxv6e9+aBx8pwfzVsD SRcl3J0cbiSevWyEyDI3FFmUNpt+hYfe/nr0IswSz/LzJgO1uG/4nO93inMAluzRXb6h p6dw== X-Gm-Message-State: AE9vXwN54oRWoMaoyOTzrfiqY3eQdD6KRQAOzFzEWPKE6ZziULmJ87XGUjs3Oe9wRBAC6rfN X-Received: by 10.98.138.207 with SMTP id o76mr14596698pfk.100.1473946504677; Thu, 15 Sep 2016 06:35:04 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.172]) by smtp.gmail.com with ESMTPSA id g10sm45468106pfc.57.2016.09.15.06.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Sep 2016 06:35:03 -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] dmaengine: virt-dma: adjust function declarations in the virt-dma.h Date: Thu, 15 Sep 2016 21:34:39 +0800 Message-Id: <1473946479-24716-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 2 warnings when building kernel with W=1: drivers/dma/virt-dma.c:22:14: warning: no previous prototype for 'vchan_tx_submit' [-Wmissing-prototypes] drivers/dma/virt-dma.c:52:5: warning: no previous prototype for 'vchan_tx_desc_free' [-Wmissing-prototypes] In fact, both functions are declared in the vchan_tx_prep(), but should be moved outside from vchan_tx_prep(). Signed-off-by: Baoyou Xie --- drivers/dma/virt-dma.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/dma/virt-dma.h b/drivers/dma/virt-dma.h index d9731ca..354253a 100644 --- a/drivers/dma/virt-dma.h +++ b/drivers/dma/virt-dma.h @@ -52,11 +52,11 @@ struct virt_dma_desc *vchan_find_desc(struct virt_dma_chan *, dma_cookie_t); * @vd: virtual descriptor to prepare * @tx_flags: flags argument passed in to prepare function */ +extern dma_cookie_t vchan_tx_submit(struct dma_async_tx_descriptor *); +extern int vchan_tx_desc_free(struct dma_async_tx_descriptor *); static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, struct virt_dma_desc *vd, unsigned long tx_flags) { - extern dma_cookie_t vchan_tx_submit(struct dma_async_tx_descriptor *); - extern int vchan_tx_desc_free(struct dma_async_tx_descriptor *); unsigned long flags; dma_async_tx_descriptor_init(&vd->tx, &vc->chan);