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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E970C77B7E for ; Thu, 25 May 2023 18:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243447AbjEYS60 (ORCPT ); Thu, 25 May 2023 14:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243523AbjEYSz0 (ORCPT ); Thu, 25 May 2023 14:55:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2750D49E8; Thu, 25 May 2023 11:47:23 -0700 (PDT) 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 1C48760EB9; Thu, 25 May 2023 18:45:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4A6CC4339C; Thu, 25 May 2023 18:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685040315; bh=CKkzf9WnSHSuDY0Ls9IPQG/AS+xqgVyUO5PWSL2wPI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rQ4tkrkIcFXktI6J6PerG0qwEU1H+BuE/N6IozSn6BkbkfoDwpbe7eUhL9MKJGV87 JsCebhD4nErotcQBQ2XjvAxEvuyisZRNn9SFPKsT80CXXS5mBN7z10tK7kHKFJb7UH ZZY7PniWQghHq67aB/UajZtqRr9DWghH9N3kzNUe2c0YJpUKX2z7sHbl7Cu1H9C4s1 9v0EMAk40oHd9E0DV0JsQWXlRq//qKbYtGKS3lM99BynVTUyrlugxtlEDEGl275aZQ mTqEg80DjcG+NlJlkp3R2C9S7/OU8WhpOHGIzU2109rLrRrcjIfnCLYkUKUy19qloB k2DV/i2aBM1PA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Jakub Kicinski , Sasha Levin , andrew@lunn.ch, hkallweit1@gmail.com, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 27/27] mdio_bus: unhide mdio_bus_init prototype Date: Thu, 25 May 2023 14:43:53 -0400 Message-Id: <20230525184356.1974216-27-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230525184356.1974216-1-sashal@kernel.org> References: <20230525184356.1974216-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 2e9f8ab68f42b059e80db71266c1675c07c664bd ] mdio_bus_init() is either used as a local module_init() entry, or it gets called in phy_device.c. In the former case, there is no declaration, which causes a warning: drivers/net/phy/mdio_bus.c:1371:12: error: no previous prototype for 'mdio_bus_init' [-Werror=missing-prototypes] Remove the #ifdef around the declaration to avoid the warning.. Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20230516194625.549249-4-arnd@kernel.org Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- include/linux/phy.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/phy.h b/include/linux/phy.h index 86a3792c568c2..dbaca6a6a32b8 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1080,10 +1080,8 @@ int phy_ethtool_set_link_ksettings(struct net_device *ndev, const struct ethtool_link_ksettings *cmd); int phy_ethtool_nway_reset(struct net_device *ndev); -#if IS_ENABLED(CONFIG_PHYLIB) int __init mdio_bus_init(void); void mdio_bus_exit(void); -#endif /* Inline function for use within net/core/ethtool.c (built-in) */ static inline int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data) -- 2.39.2