Commit 02ab4fca authored by Kees Cook's avatar Kees Cook Committed by David S. Miller

um: net: 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. (Note that this timer is actually

Cc: Jeff Dike <>
Cc: Richard Weinberger <>
Cc: "David S. Miller" <>
Cc: Jarod Wilson <>
Signed-off-by: default avatarKees Cook <>
Signed-off-by: default avatarDavid S. Miller <>
parent 7d85b2c8
......@@ -168,7 +168,6 @@ static int uml_net_open(struct net_device *dev)
goto out_close;
lp-> = (unsigned long) &lp->user;
/* clear buffer - it can happen that the host side of the interface
......@@ -278,10 +277,11 @@ static const struct ethtool_ops uml_net_ethtool_ops = {
.get_ts_info = ethtool_op_get_ts_info,
static void uml_net_user_timer_expire(unsigned long _conn)
static void uml_net_user_timer_expire(struct timer_list *t)
#ifdef undef
struct connection *conn = (struct connection *)_conn;
struct uml_net_private *lp = from_timer(lp, t, tl);
struct connection *conn = &lp->user;
dprintk(KERN_INFO "uml_net_user_timer_expire [%p]\n", conn);
......@@ -458,9 +458,8 @@ static void eth_configure(int n, void *init, char *mac,
.add_address = transport->user->add_address,
.delete_address = transport->user->delete_address });
timer_setup(&lp->tl, uml_net_user_timer_expire, 0);
lp->tl.function = uml_net_user_timer_expire;
memcpy(lp->mac, dev->dev_addr, sizeof(lp->mac));
if ((transport->user->init != NULL) &&
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment