Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3609527pxu; Tue, 8 Dec 2020 17:13:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/CH1fu9uP/O6OnAvRLX2CeAz89K6XowOeDkJ53Y6Y4EldnyPUyOwvV4KquuVgKoqlZaS3 X-Received: by 2002:a50:9dc9:: with SMTP id l9mr580693edk.377.1607476409075; Tue, 08 Dec 2020 17:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607476409; cv=none; d=google.com; s=arc-20160816; b=T5cZYmqFKpSy2YGjy/1zX9E7cm6tS1bcWgi01iPnJTgVXSKV8OecwTChp7I9D0wOVt vzDgSH9dvBCO29iQ78d4e+r+vOKeAkRsUN6tygncGQnCnG17q+xihl8bzDWsJMuKB926 ciiIXoz5Pa0KOqbubFvXrQTXCDB/wLbHhLCinnrtZmUL7o28XpYWvc3ZDmxDGDVu5mOx DedGt+84/76F98YD8jpPSd1NLSbisS4QqNhLaO1W+eFqaZjhhKeWCiktnslWu6q7W1S3 IwaiH3PEXTw1jHX/FFQjQ5DiMh4x/qQUzV8Ge0NVh+VPpVStzFKRIPpsQ3smebySM3OC vhwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Wa0bu8J/tGA6dn35GnlM9+AUoiXQqtWZJhjrsPBx07I=; b=VNEuk07zaYNYaPcNF07PMxe0/1DIjuZs8YSTSnpffMPzS7exFg3AxO/3OqgFJK3SXt 35l2sOti4jKUSpFrwsHjK9BV/I4zwd7kVbIDgJrP1vPOxWIDP9rJNNje3uY/vcF8I7kV /tKpLtAoJ0XENOHpaaByxU6q42oYYd3b1U9nau/STbwebCw/aFKf+PJXgktoh6nmSaoC N8J/uYYWEYAr0Zgc9uMpnnsJ6V8mubdX5cbjiqTudFEVvyJxqTe2bWV8c5XWG8bGtyI8 e42W6PMirnGIQ4CsPfz+cBqgYlzlqXOjiKA4tc4ybr2+53M++HQWFie6wUAWs1Ih07tT N3sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=BhCWWmPo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si82307eja.541.2020.12.08.17.13.06; Tue, 08 Dec 2020 17:13:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=BhCWWmPo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730320AbgLHUeH (ORCPT + 99 others); Tue, 8 Dec 2020 15:34:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbgLHUeH (ORCPT ); Tue, 8 Dec 2020 15:34:07 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95DB0C0617B0; Tue, 8 Dec 2020 12:32:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=Wa0bu8J/tGA6dn35GnlM9+AUoiXQqtWZJhjrsPBx07I=; b=BhCWWmPogKtTQSKegBJ63j3V9o UeQiTiseqDXVSSuOxY4anLCy4UJLyGb8Win/XyVeh1+W6I1+6jWPPxDKMSDR5v+CwTum1ocNW30C+ ghmjfQ3iTVc0tFcsB/GDqdBeeKKP9DkFhSCAkLCJv1wUEWUUrAG8hCanaJFj/5mzzFCk7y4N/3aK8 CmhJLD/1emgycCNAG/67eDPKz44NMsPj/l8HnZBAbDtBzKaqloV1B2cSMovp5EMDAT08C865ZHETe AHAqT+kJlMuW5bBWZxdrKl00EraGp6hr7YM+jJBO4w+hsOyfQTcwNJfvxRXNmrbWSbRTzDKHwPWpz aJH9kG9w==; Received: from [2601:1c0:6280:3f0::1494] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmj5U-0000Xb-UT; Tue, 08 Dec 2020 19:55:53 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Peter Chen , Pawel Laszczak , Roger Quadros , linux-usb@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH -next] usb: cdns3: fix warning when USB_CDNS_HOST is not set Date: Tue, 8 Dec 2020 11:55:47 -0800 Message-Id: <20201208195547.30076-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a build warning when USB_CDNS_HOST is not enabled: In file included from ../drivers/usb/cdns3/core.c:23:0: ../drivers/usb/cdns3/host-export.h:27:51: warning: ‘struct usb_hcd’ declared inside parameter list will not be visible outside of this definition or declaration static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd) ^~~~~~~ Signed-off-by: Randy Dunlap Cc: Peter Chen Cc: Pawel Laszczak Cc: Roger Quadros Cc: linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman --- drivers/usb/cdns3/host-export.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20201208.orig/drivers/usb/cdns3/host-export.h +++ linux-next-20201208/drivers/usb/cdns3/host-export.h @@ -9,10 +9,10 @@ #ifndef __LINUX_CDNS3_HOST_EXPORT #define __LINUX_CDNS3_HOST_EXPORT -#if IS_ENABLED(CONFIG_USB_CDNS_HOST) - struct usb_hcd; +#if IS_ENABLED(CONFIG_USB_CDNS_HOST) + int cdns_host_init(struct cdns *cdns); int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);