cxgbe tom: Fix jobtotid() compilation.
The previous commit lost an implicit struct socket * cast. Use an
inline function instead as the macro is already rather long.
Fixes: e1401f7579
cxgbe: use standard sototcpcb() accessor macro to get socket's tcpcb
Sponsored by: Chelsio Communications
This commit is contained in:
parent
326f455625
commit
e4bc19b2fa
@ -2052,8 +2052,20 @@ t4_uninit_cpl_io_handlers(void)
|
||||
#define aio_sent backend3
|
||||
#define aio_refs backend4
|
||||
|
||||
#define jobtotid(job) \
|
||||
(((struct toepcb *)(sototcpcb((job)->fd_file->f_data)->t_toe))->tid)
|
||||
#ifdef VERBOSE_TRACES
|
||||
static int
|
||||
jobtotid(struct kaiocb *job)
|
||||
{
|
||||
struct socket *so;
|
||||
struct tcpcb *tp;
|
||||
struct toepcb *toep;
|
||||
|
||||
so = job->fd_file->f_data;
|
||||
tp = sototcpcb(so);
|
||||
toep = tp->t_toe;
|
||||
return (toep->tid);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
aiotx_free_job(struct kaiocb *job)
|
||||
|
Loading…
Reference in New Issue
Block a user