Skip to content

Commit ebe28bb

Browse files
Miklos Szereditorvalds
authored andcommitted
uml: fix compile error from net_device_ops conversion
Fix the following compile error: arch/um/drivers/net_kern.c: In function 'uml_inetaddr_event': arch/um/drivers/net_kern.c:760: error: 'struct net_device' has no member named 'open' This was introduced by commit 8bb95b3, "uml: convert network device to netdevice ops". Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Stephen Hemminger <shemminger@vyatta.com> Cc: David S. Miller <davem@davemloft.net> Cc: Jeff Dike <jdike@addtoit.com> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 83f9ef4 commit ebe28bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/um/drivers/net_kern.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ static int uml_inetaddr_event(struct notifier_block *this, unsigned long event,
757757
void (*proc)(unsigned char *, unsigned char *, void *);
758758
unsigned char addr_buf[4], netmask_buf[4];
759759

760-
if (dev->open != uml_net_open)
760+
if (dev->netdev_ops->ndo_open != uml_net_open)
761761
return NOTIFY_DONE;
762762

763763
lp = netdev_priv(dev);

0 commit comments

Comments
 (0)