From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18C4DECAAD3 for ; Wed, 31 Aug 2022 07:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hmPRdPfvjUkyG3ApocJM8KBQuJdxRL0aFPMHcphe5/o=; b=olMW+Pd+JkBSMD G4hOcHelCMFHO/NyveXufJj+FsH8UpUSArwNBmMo5jgf3XF84GwCshppE9UUol94dt7hkERMZu6dh X1J6rT+azrQLTF/lij+vUyNdt1kxnCyYUNUqArX0cAZZq3Ns/jMAmMpdnT3yaTzHH8qipMDKMxzYk aNnebKxNK0xecbeI7w4bcs0pm9kP+Prszs+fUugIa6lIaVYBGPw1Y73Tzh22P2U93mx5kYZ01xd0u 8lroK6ikVQOlHODsYarwc7PcHk0lpF4is1eHYLlK8uBCRxoMxoe+7f329DuAL9wU2MZgtvkOff3Hl zyv31LpJdC+Obak059eA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTIBS-004bIr-TI; Wed, 31 Aug 2022 07:30:47 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTIBP-004bHg-84 for linux-arm-kernel@lists.infradead.org; Wed, 31 Aug 2022 07:30:44 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A711A6189A; Wed, 31 Aug 2022 07:30:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 837B6C433C1; Wed, 31 Aug 2022 07:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661931038; bh=O0rPw8Oihaz4yR+43b4ZmSmPtj+BredqtoyyQMI4C2Y=; h=From:To:Cc:Subject:Date:From; b=TK8dakXDG2+vKT3sCKygQduTtkrc1DQ60DU3BQMLwG4t407IwBEynrsGRrPxIqXrn f2zH67/O7+fkn4DCSNDgdRfBXiapmHK9ud2mO3s0xOdJk+LL7BsgmnCcFJE13qP0ip Aw1I3ZKYypDb3S/19LxejwwcNl5Eo7OOxfcQJgjA= From: Greg Kroah-Hartman To: linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman , kernel test robot , Ard Biesheuvel , Alan Stern , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: hcd: remove unused hcd_name variables Date: Wed, 31 Aug 2022 09:30:32 +0200 Message-Id: <20220831073032.1409291-1-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2490; i=gregkh@linuxfoundation.org; h=from:subject; bh=O0rPw8Oihaz4yR+43b4ZmSmPtj+BredqtoyyQMI4C2Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDMn8fGK3/50x2i5lMetzz10Oq0kB0/IVWhxYD1ZV1TOaKT+K bu7uiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIksvcQwP7N19a74T/alykKrJbmF0i b9VDOcyjDPpnmy2tsYtw9T7ZqilzEKZmsKr84BAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220831_003043_379879_42CC423A X-CRM114-Status: GOOD ( 14.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the commit 10174220f55a ("usb: reduce kernel log spam on driver registration") a lot of unneeded kernel log messages were removed, but that caused a few build warnings to show up where the variable `hcd_name` was being set but never used anymore. Resolve this by just removing these variables as they are not needed anymore Reported-by: kernel test robot Cc: Ard Biesheuvel Cc: Alan Stern Cc: Krzysztof Kozlowski Cc: Alim Akhtar Cc: Rob Herring Cc: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Fixes: 10174220f55a ("usb: reduce kernel log spam on driver registration") Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/ehci-exynos.c | 1 - drivers/usb/host/ehci-platform.c | 2 -- drivers/usb/host/ohci-platform.c | 2 -- 3 files changed, 5 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index a65e365e3a04..c8e152c2e0ce 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -32,7 +32,6 @@ (EHCI_INSNREG00_ENA_INCR16 | EHCI_INSNREG00_ENA_INCR8 | \ EHCI_INSNREG00_ENA_INCR4 | EHCI_INSNREG00_ENA_INCRX_ALIGN) -static const char hcd_name[] = "ehci-exynos"; static struct hc_driver __read_mostly exynos_ehci_hc_driver; #define PHY_NUMBER 3 diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 50491eea9409..fe497c876d76 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -53,8 +53,6 @@ struct ehci_platform_priv { struct delayed_work poll_work; }; -static const char hcd_name[] = "ehci-platform"; - static int ehci_platform_reset(struct usb_hcd *hcd) { struct platform_device *pdev = to_platform_device(hcd->self.controller); diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 6d56b52966c7..4e7946024ce7 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -41,8 +41,6 @@ struct ohci_platform_priv { struct reset_control *resets; }; -static const char hcd_name[] = "ohci-platform"; - static int ohci_platform_power_on(struct platform_device *dev) { struct usb_hcd *hcd = platform_get_drvdata(dev); -- 2.37.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel