[[PATCH,net-next] ] net: core: xdp: make __mem_id_disconnect to be static
diff mbox series

Message ID 20190625114246.14726-1-ivan.khoronzhuk@linaro.org
State Accepted
Commit 572a6928f9e3689ad2c2f94814e6215104eec1b7
Headers show
Series
  • [[PATCH,net-next] ] net: core: xdp: make __mem_id_disconnect to be static
Related show

Commit Message

Ivan Khoronzhuk June 25, 2019, 11:42 a.m. UTC
Add missed static for local __mem_id_disconnect().

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
---
 net/core/xdp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Song Liu June 25, 2019, 10:22 p.m. UTC | #1
On Tue, Jun 25, 2019 at 6:11 AM Ivan Khoronzhuk
<ivan.khoronzhuk@linaro.org> wrote:
>
> Add missed static for local __mem_id_disconnect().
>
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>

https://patchwork.ozlabs.org/patch/1121730/

I guess you are a little late. :)

Please ack the other patch.

Song

> ---
>  net/core/xdp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/core/xdp.c b/net/core/xdp.c
> index b29d7b513a18..829377cc83db 100644
> --- a/net/core/xdp.c
> +++ b/net/core/xdp.c
> @@ -85,7 +85,7 @@ static void __xdp_mem_allocator_rcu_free(struct rcu_head *rcu)
>         kfree(xa);
>  }
>
> -bool __mem_id_disconnect(int id, bool force)
> +static bool __mem_id_disconnect(int id, bool force)
>  {
>         struct xdp_mem_allocator *xa;
>         bool safe_to_remove = true;
> --
> 2.17.1
>

Patch
diff mbox series

diff --git a/net/core/xdp.c b/net/core/xdp.c
index b29d7b513a18..829377cc83db 100644
--- a/net/core/xdp.c
+++ b/net/core/xdp.c
@@ -85,7 +85,7 @@  static void __xdp_mem_allocator_rcu_free(struct rcu_head *rcu)
 	kfree(xa);
 }
 
-bool __mem_id_disconnect(int id, bool force)
+static bool __mem_id_disconnect(int id, bool force)
 {
 	struct xdp_mem_allocator *xa;
 	bool safe_to_remove = true;