From patchwork Thu Sep 1 11:32:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75193 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp243738qga; Thu, 1 Sep 2016 04:32:49 -0700 (PDT) X-Received: by 10.98.79.156 with SMTP id f28mr26047416pfj.161.1472729569211; Thu, 01 Sep 2016 04:32:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x68si3501950pfx.172.2016.09.01.04.32.48; Thu, 01 Sep 2016 04:32:49 -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 S1755208AbcIALcq (ORCPT + 27 others); Thu, 1 Sep 2016 07:32:46 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:34358 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751696AbcIALco (ORCPT ); Thu, 1 Sep 2016 07:32:44 -0400 Received: by mail-pf0-f176.google.com with SMTP id p64so30617237pfb.1 for ; Thu, 01 Sep 2016 04:32:44 -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=qMn6kjlVZURo5hi1irfaxthi7QsZM5uew1Z/SJOsmOc=; b=Uxk0Mh81qV4Rn0FKW4ypWb/0NDrGHiSpb5PcOLlxwjsKbjLkYsNlbfzLSGLuIT1u5H 61R9TTGgyB7DNVlIPadrYTAbk4Inb6e0BIHRfYZa4lCaxrhjENZi2hb4pTQr4TP+53Os tP4oaF24ZmBOiv1Q6m/KIosyTZYcUbCWf+NpQ= 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=qMn6kjlVZURo5hi1irfaxthi7QsZM5uew1Z/SJOsmOc=; b=CewUbFNc11v0GHKkRZgHilHgSoh0hADdfXdcERo9bXqqJ06fOQHUwEETSI325YrHuu vFNnG5ySaY7jjU4jZIypdqeJpo/MFCotkbl7hRMsMp4jSLhw7Y2uRjJzZcy8jCz4QokC l2aqWB2UxrSrahmXL4TBI3NyS0QZRwahOGfk6nl1K0+d23ugT6LEfthkRB20oPitjMdY g00tMCRQox/SgPMauritub8xnISJKhExuabsznhGJzZD7EMQnFeqXYFSp53ojcUVYO6r lyyiWHHl5fk7OXegPPpWyFlOOd8Lcf4AB6SCZL2CY7Nvq3hjXXZDGvj0/8APzHU47LIb Hbqg== X-Gm-Message-State: AE9vXwN4AMuVWISkCNpW6iwkIEOk9Vh0CPsV/2Z0+Goj9jjUViwrm8PgHnhI8kFCTA+bHHiD X-Received: by 10.98.10.157 with SMTP id 29mr25939609pfk.62.1472729563757; Thu, 01 Sep 2016 04:32:43 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.82]) by smtp.gmail.com with ESMTPSA id e2sm6991415pfd.45.2016.09.01.04.32.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Sep 2016 04:32:43 -0700 (PDT) From: Baoyou Xie To: mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] xhci: mark xhci_unmap_td_bounce_buffer() static Date: Thu, 1 Sep 2016 19:32:14 +0800 Message-Id: <1472729534-27200-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/usb/host/xhci-ring.c:608:6: warning: no previous prototype for 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/usb/host/xhci-ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 918e0c7..b0a3815 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -605,7 +605,8 @@ static void xhci_giveback_urb_in_irq(struct xhci_hcd *xhci, } } -void xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci, struct xhci_ring *ring, +static void +xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_td *td) { struct device *dev = xhci_to_hcd(xhci)->self.controller;