All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [patch 1/3] uml: fix compile error from net_device_ops conversion
@ 2009-03-30 18:41 ` Miklos Szeredi
  0 siblings, 0 replies; 13+ messages in thread
From: Miklos Szeredi @ 2009-03-30 18:41 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: jdike, akpm, linux-kernel

From: Miklos Szeredi <mszeredi@suse.cz>

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 8bb95b39, "uml: convert network device
to netdevice ops".

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
---
 arch/um/drivers/net_kern.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/um/drivers/net_kern.c
===================================================================
--- linux-2.6.orig/arch/um/drivers/net_kern.c	2009-03-30 17:07:10.000000000 +0200
+++ linux-2.6/arch/um/drivers/net_kern.c	2009-03-30 19:25:30.000000000 +0200
@@ -757,7 +757,7 @@ static int uml_inetaddr_event(struct not
 	void (*proc)(unsigned char *, unsigned char *, void *);
 	unsigned char addr_buf[4], netmask_buf[4];
 
-	if (dev->open != uml_net_open)
+	if (dev->netdev_ops->ndo_open != uml_net_open)
 		return NOTIFY_DONE;
 
 	lp = netdev_priv(dev);

------------------------------------------------------------------------------
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-04-04 16:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30 18:41 [uml-devel] [patch 1/3] uml: fix compile error from net_device_ops conversion Miklos Szeredi
2009-03-30 18:41 ` Miklos Szeredi
2009-03-30 18:42 ` [uml-devel] (no subject) Miklos Szeredi
2009-03-30 18:42   ` Miklos Szeredi
2009-03-30 18:45 ` [uml-devel] [patch 3/3] uml: fix warnings in kernel_execve Miklos Szeredi
2009-03-30 18:45   ` Miklos Szeredi
2009-04-01 16:11   ` do_execve() needs const qualifiers (was Re: [patch 3/3] uml: fix warnings in kernel_execve) Américo Wang
2009-04-01 16:21     ` Al Viro
2009-04-04 16:51       ` Américo Wang
2009-03-30 18:47 ` [uml-devel] [patch 2/3] uml: fix link error from prefixing of i386 syscalls with ptregs_ Miklos Szeredi
2009-03-30 18:47   ` Miklos Szeredi
2009-04-01 16:03   ` Américo Wang
2009-04-01 15:49 ` [patch 1/3] uml: fix compile error from net_device_ops conversion Américo Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.