net: stmmac: unexport stmmac_pltfr_init/exit()
Subsystems (4)
PATCH 1/1 net: stmmac: unexport stmmac_pltfr_init/exit()
From: Bartosz Golaszewski <[email protected]>
These functions are only used within the compilation unit they're defined in so there's no reason to export them.
--- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 10 ++++------ drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h | 5 ----- 2 files changed, 4 insertions(+), 11 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +4 -6
@@ -764,8 +764,8 @@ EXPORT_SYMBOL_GPL(stmmac_get_platform_resources);* Description: Call the platform's init callback (if any) and propagate * the return value. */ -int stmmac_pltfr_init (struct platform_device *pdev, -struct plat_stmmacenet_data *plat) +static int stmmac_pltfr_init (struct platform_device *pdev, +struct plat_stmmacenet_data *plat) {int ret =0 ;
@@ -774,7 +774,6 @@ int stmmac_pltfr_init(struct platform_device *pdev,return ret; } -EXPORT_SYMBOL_GPL (stmmac_pltfr_init);/** * stmmac_pltfr_exit
@@ -782,13 +781,12 @@ EXPORT_SYMBOL_GPL(stmmac_pltfr_init);* @plat: driver data platform structure * Description: Call the platform's exit callback (if any). */ -void stmmac_pltfr_exit (struct platform_device *pdev, -struct plat_stmmacenet_data *plat) +static void stmmac_pltfr_exit (struct platform_device *pdev, +struct plat_stmmacenet_data *plat) {if (plat->exit) plat->exit (pdev, plat->bsp_priv); } -EXPORT_SYMBOL_GPL (stmmac_pltfr_exit);/** * stmmac_pltfr_probe
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h +0 -5
@@ -17,11 +17,6 @@ devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);int stmmac_get_platform_resources (struct platform_device *pdev,struct stmmac_resources *stmmac_res); -int stmmac_pltfr_init (struct platform_device *pdev, -struct plat_stmmacenet_data *plat); -void stmmac_pltfr_exit (struct platform_device *pdev, -struct plat_stmmacenet_data *plat); -int stmmac_pltfr_probe (struct platform_device *pdev,struct plat_stmmacenet_data *plat,struct stmmac_resources *res);
Signature · 1 line
2.43.0
Quoted 6 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
These functions are only used within the compilation unit they're defined in so there's no reason to export them.
Signed-off-by Bartosz Golaszewski <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 19 Jun 2024 16:01:19 +0200 you wrote:
From: Bartosz Golaszewski <[email protected]>
These functions are only used within the compilation unit they're defined in so there's no reason to export them.
Signed-off-by Bartosz Golaszewski <[email protected]>[...]
Here is the summary with links:
- [net-next] net: stmmac: unexport stmmac_pltfr_init/exit()
https://git.kernel.org/netdev/net-next/c/d21a103b612c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html