mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
WorkStruct: make allyesconfig
Fix up for make allyesconfig. Signed-Off-By: David Howells <[email protected]>
This commit is contained in:
parent
65f27f3844
commit
c4028958b6
282 changed files with 1771 additions and 1450 deletions
|
|
@ -577,12 +577,12 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
|
|||
server->rcv.ptr = (unsigned char*)&server->rcv.buf;
|
||||
server->rcv.len = 10;
|
||||
server->rcv.state = 0;
|
||||
INIT_WORK(&server->rcv.tq, ncp_tcp_rcv_proc, server);
|
||||
INIT_WORK(&server->tx.tq, ncp_tcp_tx_proc, server);
|
||||
INIT_WORK(&server->rcv.tq, ncp_tcp_rcv_proc);
|
||||
INIT_WORK(&server->tx.tq, ncp_tcp_tx_proc);
|
||||
sock->sk->sk_write_space = ncp_tcp_write_space;
|
||||
} else {
|
||||
INIT_WORK(&server->rcv.tq, ncpdgram_rcv_proc, server);
|
||||
INIT_WORK(&server->timeout_tq, ncpdgram_timeout_proc, server);
|
||||
INIT_WORK(&server->rcv.tq, ncpdgram_rcv_proc);
|
||||
INIT_WORK(&server->timeout_tq, ncpdgram_timeout_proc);
|
||||
server->timeout_tm.data = (unsigned long)server;
|
||||
server->timeout_tm.function = ncpdgram_timeout_call;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -350,9 +350,10 @@ static void info_server(struct ncp_server *server, unsigned int id, const void *
|
|||
}
|
||||
}
|
||||
|
||||
void ncpdgram_rcv_proc(void *s)
|
||||
void ncpdgram_rcv_proc(struct work_struct *work)
|
||||
{
|
||||
struct ncp_server *server = s;
|
||||
struct ncp_server *server =
|
||||
container_of(work, struct ncp_server, rcv.tq);
|
||||
struct socket* sock;
|
||||
|
||||
sock = server->ncp_sock;
|
||||
|
|
@ -468,9 +469,10 @@ static void __ncpdgram_timeout_proc(struct ncp_server *server)
|
|||
}
|
||||
}
|
||||
|
||||
void ncpdgram_timeout_proc(void *s)
|
||||
void ncpdgram_timeout_proc(struct work_struct *work)
|
||||
{
|
||||
struct ncp_server *server = s;
|
||||
struct ncp_server *server =
|
||||
container_of(work, struct ncp_server, timeout_tq);
|
||||
mutex_lock(&server->rcv.creq_mutex);
|
||||
__ncpdgram_timeout_proc(server);
|
||||
mutex_unlock(&server->rcv.creq_mutex);
|
||||
|
|
@ -652,18 +654,20 @@ skipdata:;
|
|||
}
|
||||
}
|
||||
|
||||
void ncp_tcp_rcv_proc(void *s)
|
||||
void ncp_tcp_rcv_proc(struct work_struct *work)
|
||||
{
|
||||
struct ncp_server *server = s;
|
||||
struct ncp_server *server =
|
||||
container_of(work, struct ncp_server, rcv.tq);
|
||||
|
||||
mutex_lock(&server->rcv.creq_mutex);
|
||||
__ncptcp_rcv_proc(server);
|
||||
mutex_unlock(&server->rcv.creq_mutex);
|
||||
}
|
||||
|
||||
void ncp_tcp_tx_proc(void *s)
|
||||
void ncp_tcp_tx_proc(struct work_struct *work)
|
||||
{
|
||||
struct ncp_server *server = s;
|
||||
struct ncp_server *server =
|
||||
container_of(work, struct ncp_server, tx.tq);
|
||||
|
||||
mutex_lock(&server->rcv.creq_mutex);
|
||||
__ncptcp_try_send(server);
|
||||
|
|
|
|||
Loading…
Reference in a new issue