mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
NSM: Move nsm_addr() to fs/lockd/mon.c
Clean up: nsm_addr_in() is no longer used, and nsm_addr() is used only in fs/lockd/mon.c, so move it there. Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
e6765b8397
commit
8529bc51d3
2 changed files with 5 additions and 10 deletions
|
|
@ -55,6 +55,11 @@ static DEFINE_SPINLOCK(nsm_lock);
|
|||
*/
|
||||
int nsm_local_state;
|
||||
|
||||
static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm)
|
||||
{
|
||||
return (struct sockaddr *)&nsm->sm_addr;
|
||||
}
|
||||
|
||||
static void nsm_display_ipv4_address(const struct sockaddr *sap, char *buf,
|
||||
const size_t len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue