mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Recent changes to uipc_cow.c have eliminated the need for some sf_buf-
related variables to be global. Make them either local to sf_buf_init() or static.
This commit is contained in:
parent
4c8a7679d0
commit
7be80f55ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112859
@ -97,9 +97,7 @@ static struct {
|
||||
struct mtx sf_lock;
|
||||
} sf_freelist;
|
||||
|
||||
vm_offset_t sf_base;
|
||||
struct sf_buf *sf_bufs;
|
||||
u_int sf_buf_alloc_want;
|
||||
static u_int sf_buf_alloc_want;
|
||||
|
||||
/*
|
||||
* System call interface to the socket abstraction.
|
||||
@ -1617,6 +1615,8 @@ getsockaddr(namp, uaddr, len)
|
||||
static void
|
||||
sf_buf_init(void *arg)
|
||||
{
|
||||
struct sf_buf *sf_bufs;
|
||||
vm_offset_t sf_base;
|
||||
int i;
|
||||
|
||||
mtx_init(&sf_freelist.sf_lock, "sf_bufs list lock", NULL, MTX_DEF);
|
||||
|
Loading…
Reference in New Issue
Block a user