Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4518550imu; Mon, 12 Nov 2018 12:25:48 -0800 (PST) X-Google-Smtp-Source: AJdET5cKC9c7jY5petpyP1+CKUE8ZRah/w9jvr5BhyuN+KRpmo5cUhUqc6YcXe7Brz7rOFtQ/lpf X-Received: by 2002:a63:4566:: with SMTP id u38mr2085872pgk.4.1542054348760; Mon, 12 Nov 2018 12:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542054348; cv=none; d=google.com; s=arc-20160816; b=YDmNW+0pKj97U/TZFx5xOhUAD020QLY+Ody1FQR0JWORnRpv4f8Bsv7tNPZLlrTV2z ehiaYuc5dnaXkS0XBlSIQ37Zw3o6mw+LPh/EStiPxCajRVteeyYEEJWvrORBAYtPfNeh EkZ6Ra7expLKecfO+mFuzSw/024FFPiSwU0OthNana7des1oO5mI6nQznSS8KMvzSt3k 321Cz4Qp35sjZFfPaKsSkOfV2I1TcX/hCIoe7FFc48yHlabRc38An1eqetdtqDO+CZyy NNVADfUfA6Quvdh6gCM2LlL3LufnJ0Iv+PBXLjO5/yWZg4wpgUe+2NH09Oru8oQSNuuH 7/UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=loVmp6tvQQOcCP7QeK8oMGkh5eedM2eY+bnfEKqwg9Q=; b=yCrQoJeynTFxKHuSVFnseA0ETJEtPGsfFqSShvsaWgbJxuADLOAbotS2XtIoGNnw6b yfM5cfOrwkPKi//7sE0fXJ4zmPH3ryK809uJf3Y2l2bIqQH8waZSfSqb23pmFttOLsYb q4erZKrbtl9U2ECzRi/4kwtLQQw4YcjU8owzVGf9N9W7USVOYqEgZd2QdU9mG8HCbN0C lT2TvRs1jl3l1scTnXyU6s7mQULAU4VGCBrSNarY8troSNo9ovDMTkLCVJGE/icx37Tr i5Vxj0GS6cxhm1cWggoYZagc4X7Me9Ck+aWl7dqUy3vslgqe9jNEzfwP5z2A/4r6J18T TnoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D0iGLiKS; 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 sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m61-v6si19505044plb.311.2018.11.12.12.25.33; Mon, 12 Nov 2018 12:25:48 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=D0iGLiKS; 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 sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729529AbeKMGT5 (ORCPT + 99 others); Tue, 13 Nov 2018 01:19:57 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37365 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbeKMGT5 (ORCPT ); Tue, 13 Nov 2018 01:19:57 -0500 Received: by mail-ed1-f66.google.com with SMTP id h15so3687169edb.4; Mon, 12 Nov 2018 12:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=loVmp6tvQQOcCP7QeK8oMGkh5eedM2eY+bnfEKqwg9Q=; b=D0iGLiKSFCKRSjv2BUYzeysowPd/5VzIYQisnQMmiKYFFQ9LOMR1b8v+zvqfEuxNPj yb8ppBDHAibzmewTJAkIqtVfuqFdztUzq2k3jqMXJwfuzIpQoUZRdcwnQTjUjf2oTFT1 IOr+gyjrWMJZkwveBBpBFPN0Qz+I/1zL5LI5GpaHaMZ28WwMgL7eoWG4atE6GltmV/Xg C7rdYJVwcODjnI3x3LMLn7z5UfYlSlAdTSqEc25zlzywp6XbgiuzGd/pwwOV4iHDgmvA bGB5s2+g+eyeoKlyqHDSSwUOHS6GZ47za1OeucWmcb7FmiTvH5nBZ4WyRr+yyCM6FXr8 FYiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=loVmp6tvQQOcCP7QeK8oMGkh5eedM2eY+bnfEKqwg9Q=; b=HiogQAv+tj9ZMRTFmCj5Rp38wJGGZOQr65MQzYrbFIz23du9U/jKksQw5Xmau0vnjO yO2zOSSEniBmvvvO5a0p9HmCACpCv1AJXCzqR6ymIixsJG3HzCIr2hIwAQaKjC1Uv/DE GiRvnt6aDz7p7hG5EZrGRl0bJWb3Z9nwW7EKTw1Rm9I2iKn2VjzKmnDaQTV2v7cNe0LN Mce/DBBrVc/Ja8IRVCEuXFE7RJ3zON+kjgqfrGDuO1gWUH8b5MMTcpnqvxuTI25hrRPc heO3MpQYG4J66EgGF8CHGoUFFCG3qThY0tQYv9i6I6nTpmuzt6jC620qSuyQuCxwMQGe Jtmw== X-Gm-Message-State: AGRZ1gKOy+FZK9KImtUcoblE9IgAAYr3dUcubq7qKEoM7E83PsaHnYfb M1ImQpZGSbfPoptIM3XGH7g= X-Received: by 2002:a17:906:1001:: with SMTP id 1-v6mr10358191ejm.91.1542054305657; Mon, 12 Nov 2018 12:25:05 -0800 (PST) Received: from localhost.localdomain ([159.100.241.215]) by smtp.googlemail.com with ESMTPSA id e10-v6sm2484527ejf.28.2018.11.12.12.25.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 12:25:05 -0800 (PST) From: Jean-Philippe Menil To: mathias.nyman@intel.com Cc: jpmenil@gmail.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: xhci: fix build warning - missing prototype Date: Mon, 12 Nov 2018 20:24:35 +0000 Message-Id: <20181112202436.20547-1-jpmenil@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix build warning when building drivers/usb/host/xhci-mem.o due to missing prototype for xhci_free_virt_devices_depth_first. This function is only used in xhci-mem.c so just make it static. Signed-off-by: Jean-Philippe Menil --- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index b1f27aa38b10..c5236f5d917a 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -933,7 +933,7 @@ void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) * that tt_info, then free the child first. Recursive. * We can't rely on udev at this point to find child-parent relationships. */ -void xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id) +static void xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id) { struct xhci_virt_device *vdev; struct list_head *tt_list_head; -- 2.17.1