[net-next] devlink: Remove unused extern declaration devlink_port_region_destroy()

Message ID 20230728132113.32888-1-yuehaibing@huawei.com
State New
Headers
Series [net-next] devlink: Remove unused extern declaration devlink_port_region_destroy() |

Commit Message

Yue Haibing July 28, 2023, 1:21 p.m. UTC
  devlink_port_region_destroy() is never implemented since
commit 544e7c33ec2f ("net: devlink: Add support for port regions").

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 include/net/devlink.h | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Simon Horman July 29, 2023, 11:23 a.m. UTC | #1
On Fri, Jul 28, 2023 at 09:21:13PM +0800, Yue Haibing wrote:
> devlink_port_region_destroy() is never implemented since
> commit 544e7c33ec2f ("net: devlink: Add support for port regions").
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>

Reviewed-by: Simon Horman <horms@kernel.org>
  
patchwork-bot+netdevbpf@kernel.org July 31, 2023, 9:30 p.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 28 Jul 2023 21:21:13 +0800 you wrote:
> devlink_port_region_destroy() is never implemented since
> commit 544e7c33ec2f ("net: devlink: Add support for port regions").
> 
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> ---
>  include/net/devlink.h | 2 --
>  1 file changed, 2 deletions(-)

Here is the summary with links:
  - [net-next] devlink: Remove unused extern declaration devlink_port_region_destroy()
    https://git.kernel.org/netdev/net-next/c/2628d40899d1

You are awesome, thank you!
  

Patch

diff --git a/include/net/devlink.h b/include/net/devlink.h
index 0cdb4b16e5b5..a1a8e1b6e7df 100644
--- a/include/net/devlink.h
+++ b/include/net/devlink.h
@@ -1790,8 +1790,6 @@  devlink_port_region_create(struct devlink_port *port,
 			   u32 region_max_snapshots, u64 region_size);
 void devl_region_destroy(struct devlink_region *region);
 void devlink_region_destroy(struct devlink_region *region);
-void devlink_port_region_destroy(struct devlink_region *region);
-
 int devlink_region_snapshot_id_get(struct devlink *devlink, u32 *id);
 void devlink_region_snapshot_id_put(struct devlink *devlink, u32 id);
 int devlink_region_snapshot_create(struct devlink_region *region,