OSDN Git Service

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)
commitb2aecfe8e49059a69379a521aa68b4f55516780f
treea49c597606f3198556fc2fb85362c0025e55208c
parentd3239425351a219ec779488ffb125352449c4106
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