From patchwork Sat Sep 24 04:58: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: 76911 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp190551qgf; Fri, 23 Sep 2016 21:58:59 -0700 (PDT) X-Received: by 10.98.35.84 with SMTP id j81mr18904694pfj.166.1474693139825; Fri, 23 Sep 2016 21:58:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si11505089pfe.131.2016.09.23.21.58.59; Fri, 23 Sep 2016 21:58:59 -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 S1756180AbcIXE65 (ORCPT + 27 others); Sat, 24 Sep 2016 00:58:57 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35737 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753186AbcIXE6z (ORCPT ); Sat, 24 Sep 2016 00:58:55 -0400 Received: by mail-pf0-f170.google.com with SMTP id s13so13813887pfd.2 for ; Fri, 23 Sep 2016 21:58:55 -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=7i9Cz7Biso5LfYR9HJIpVB69cKBSLtU5CP/NpvF7G/g=; b=WcFUKlibw8BW6lXlFZDYS+sdm+qSQiO4wdI/ET9AQgIVyOHF/F9zh7gtIw1Q7YNaPX EWTkN2ffJCd5SwmcdXTV8n+Ppns3lA1y6AUFJSTbaHkS8uoDB16i1/TpeQ5PZgyzEElU E571fAt+CcNuyp8iWS4R5qEB/hJk8lM+vZTAk= 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=7i9Cz7Biso5LfYR9HJIpVB69cKBSLtU5CP/NpvF7G/g=; b=VtusKX54YiNncNJ0tJH2xP8798YmUJV8+4t/A1WKzINpEdvCIhnhNUgp/XyfaMxAR+ XpxKgLYKG282D2/RyAoVLxeMoc+QO0Szq5VZz6S5dbLOEVEYEYsokUAH3KE+6qvtIypp 1wkeAdjRSwwGzWR1q5FnDsjertKVeay94dhWFNj9aGGJHONBJoHGwdefOUxMxTSbRZkZ unjQXdxThMmQKYtfYxJq99v70pHO8E1NFeDpURpyYg2tAHJxw42oPSbEztragUXB8Mfq pBQ0oqqgvByOX3/xSHALm1N+8H7N/LheRqiPgK+Weg32H8SpG3uA9vxduy5fz2jZV4Ll y4FQ== X-Gm-Message-State: AE9vXwOylRQP4oBNZKClbfthNdkuyXIrN8hy1iRm4md9g/8JB5DkZxkZqX9P4mGKlWABSumI X-Received: by 10.98.156.81 with SMTP id f78mr18439528pfe.139.1474693134900; Fri, 23 Sep 2016 21:58:54 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id n77sm14934038pfj.31.2016.09.23.21.58.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 21:58:54 -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 2/3] dmaengine: pxa_dma: add function declaration Date: Sat, 24 Sep 2016 12:58:39 +0800 Message-Id: <1474693119-15939-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/pxa_dma.c:1525:5: warning: no previous prototype for 'pxad_toggle_reserved_channel' [-Wmissing-prototypes] In fact, this function is undeclared in any header files. So this patch adds function declaration in include/linux/dma/pxa-dma.h. Signed-off-by: Baoyou Xie --- include/linux/dma/pxa-dma.h | 1 ++++++ 1 file changed, 1 insertions(+) -- 2.7.4 diff --git a/include/linux/dma/pxa-dma.h b/include/linux/dma/pxa-dma.h index 3edc992..1823257 100644 --- a/include/linux/dma/pxa-dma.h +++ b/include/linux/dma/pxa-dma.h @@ -17,6 +17,7 @@ struct dma_chan; #ifdef CONFIG_PXA_DMA bool pxad_filter_fn(struct dma_chan *chan, void *param); +int pxad_toggle_reserved_channel(int legacy_channel); #else static inline bool pxad_filter_fn(struct dma_chan *chan, void *param) {