From patchwork Fri Sep 23 13:46:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76872 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp578782qgf; Fri, 23 Sep 2016 06:46:59 -0700 (PDT) X-Received: by 10.66.145.73 with SMTP id ss9mr12758165pab.82.1474638419275; Fri, 23 Sep 2016 06:46:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c73si7762938pfc.116.2016.09.23.06.46.59; Fri, 23 Sep 2016 06:46:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034486AbcIWNq5 (ORCPT + 4 others); Fri, 23 Sep 2016 09:46:57 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33343 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034163AbcIWNqb (ORCPT ); Fri, 23 Sep 2016 09:46:31 -0400 Received: by mail-pf0-f170.google.com with SMTP id 21so42369429pfy.0 for ; Fri, 23 Sep 2016 06:46:30 -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=b/FiK50I7Dxz0v8xip0jCzW4j5U6OhJvCv1lFYKmaaA=; b=FK/CpDTdDw43bBe3NbQIThiZ+TgOW5dTQaDfaBRlodh11M0ko3V7GEh7eSyfiirjoC ees8LBzEG670pxkM2aKnnXCCC742rD+vEXVTuGSWUKJ2Euu+mb6oLzZyKA3Orzor3yH5 2nw2aeNkegyXbeRWs2RhfLqjwOY76VLsLla/o= 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=b/FiK50I7Dxz0v8xip0jCzW4j5U6OhJvCv1lFYKmaaA=; b=JkBAZOi01b7R/tKXVSEvxNjJnbVUBov6rHaO9f3PfCyGjQSqVZrddU2oexjXMyuRsw N9yPckrYsEOXe3z40i+o6WgEYA9nqSpfCsSjCVCK9lL2v+xpQ7Bkrwa5k+vDXNibCWV4 EnsR71QW9DcSaH+5TERxLXojyrtx+Cu8QEYxlkdNcHKRml/NcQABokYtkwDwAXCsAU9A qYSzo/Sw8fS0dkymln2RygrajaoTRQm2ksxa2xcqvh+QuUd+O1jHd9FKrQEN6rWCr0JY ts+CkqT/JpF7OoE8NoUorAhAAWs1oRcJpqLrcfPJfceyiam9ZB2TCZZ937hxiFPyHrMP DFNw== X-Gm-Message-State: AE9vXwM5xo1qrujp0BNux5Vu+hHlKfb4lFI5iT7n0N6DYEGclz7XZz9E/ikVCDqBb/A9tvFT X-Received: by 10.98.200.4 with SMTP id z4mr12413341pff.95.1474638390202; Fri, 23 Sep 2016 06:46:30 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id wa9sm11880726pac.35.2016.09.23.06.46.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 06:46:29 -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@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static Date: Fri, 23 Sep 2016 21:46:13 +0800 Message-Id: <1474638373-27342-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 797137e..9cf70c9 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -605,8 +605,9 @@ 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, - struct xhci_td *td) +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; struct xhci_segment *seg = td->bounce_seg;