From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AA3A23D47 for ; Thu, 25 May 2023 18:40:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8054AC4339B; Thu, 25 May 2023 18:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685040054; bh=APBlNI/qcdoXnPWFFr65Vf6WowqMEzJE0skahYJVPlg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hBDwMrTRAph50a8bbWLd5Pk+gd7kdJKJLjhxvJSIhx8N0kFOx2L1cEz0xkuINt048 NCB7Q5C4tRsRLDsGwqAEg9rHNJKVyTJ2p4XpIsl49HjsuLwfTWZcGWMqK1Uj+P9d/9 7KDT10F+VkXlKBlKUbZrmE4HZYSGpNC6BA/mHr52g7/Zv4JTeGDZHpOJB+KmtRfDRV wHUxei2nMcjpgB6sXgkQG0mM9GsmmYnq1YDAoR0zvG/IhThkLD8yPLEMeEK1lhCEW0 UbDf7ZrgJMxmQod3kw379Md9ZOwxbJyWyGjLtN4Cc3NClcLi/LX+gAkHDMY6Y07o+x PMh4x+hPBe8WQ== 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 5.15 41/43] mdio_bus: unhide mdio_bus_init prototype Date: Thu, 25 May 2023 14:38:52 -0400 Message-Id: <20230525183854.1855431-41-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230525183854.1855431-1-sashal@kernel.org> References: <20230525183854.1855431-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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 946ccec178588..31312b036fd1e 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1677,10 +1677,8 @@ void phy_package_leave(struct phy_device *phydev); int devm_phy_package_join(struct device *dev, struct phy_device *phydev, int addr, size_t priv_size); -#if IS_ENABLED(CONFIG_PHYLIB) int __init mdio_bus_init(void); void mdio_bus_exit(void); -#endif int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data); int phy_ethtool_get_sset_count(struct phy_device *phydev); -- 2.39.2