mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
inet: frags: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Alexander Aring <[email protected]> Cc: Stefan Schmidt <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Alexey Kuznetsov <[email protected]> Cc: Hideaki YOSHIFUJI <[email protected]> Cc: Pablo Neira Ayuso <[email protected]> Cc: Jozsef Kadlecsik <[email protected]> Cc: Florian Westphal <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Acked-by: Stefan Schmidt <[email protected]> # for ieee802154 Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
59f379f904
commit
78802011fb
6 changed files with 15 additions and 11 deletions
|
|
@ -80,12 +80,13 @@ static void lowpan_frag_init(struct inet_frag_queue *q, const void *a)
|
|||
fq->daddr = *arg->dst;
|
||||
}
|
||||
|
||||
static void lowpan_frag_expire(unsigned long data)
|
||||
static void lowpan_frag_expire(struct timer_list *t)
|
||||
{
|
||||
struct inet_frag_queue *frag = from_timer(frag, t, timer);
|
||||
struct frag_queue *fq;
|
||||
struct net *net;
|
||||
|
||||
fq = container_of((struct inet_frag_queue *)data, struct frag_queue, q);
|
||||
fq = container_of(frag, struct frag_queue, q);
|
||||
net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags);
|
||||
|
||||
spin_lock(&fq->q.lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue