Module Name: src
Committed By: pooka
Date: Thu Mar 7 18:57:42 UTC 2013
Modified Files:
src/sys/rump/kern/lib/libsys_linux: component.c
Log Message:
implement linux_fakedev: silly in, silly out, silly inside out
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/kern/lib/libsys_linux/component.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/kern/lib/libsys_linux/component.c
diff -u src/sys/rump/kern/lib/libsys_linux/component.c:1.4 src/sys/rump/kern/lib/libsys_linux/component.c:1.5
--- src/sys/rump/kern/lib/libsys_linux/component.c:1.4 Thu Mar 7 18:53:40 2013
+++ src/sys/rump/kern/lib/libsys_linux/component.c Thu Mar 7 18:57:42 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: component.c,v 1.4 2013/03/07 18:53:40 pooka Exp $ */
+/* $NetBSD: component.c,v 1.5 2013/03/07 18:57:42 pooka Exp $ */
#include <sys/param.h>
#include <sys/proc.h>
@@ -25,6 +25,16 @@ RUMP_COMPONENT(RUMP_COMPONENT_KERN)
emul_default = &emul_rump_sys_linux;
}
+#include <compat/linux/common/linux_machdep.h>
+
+dev_t
+linux_fakedev(dev_t in, int raw)
+{
+
+ /* I don't really think it matters what we return here */
+ return in;
+}
+
/*
* XXX: the linux emulation code is not split into factions
*/