]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: don't export __l2tp_session_unhash
authorTom Parkin <tparkin@katalix.com>
Tue, 28 Jul 2020 17:20:28 +0000 (18:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2020 23:45:31 +0000 (16:45 -0700)
commitfa8d32d0c66e01958dd1a4257e5f1289e9253a0b
treea49c597606f3198556fc2fb85362c0025e55208c
parent753333ae1d00053cef504896846812da0fd16dfc
l2tp: don't export __l2tp_session_unhash

When __l2tp_session_unhash was first added it was used outside of
l2tp_core.c, but that's no longer the case.

As such, there's no longer a need to export the function.  Make it
private inside l2tp_core.c, and relocate it to avoid having to declare
the function prototype in l2tp_core.h.

Since the function is no longer used outside l2tp_core.c, remove the
"__" prefix since we don't need to indicate anything special about its
expected use to callers.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h