blob: 414b00cc1b699349f372a41b6ba63d7e6b2cf8d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- kqemu-linux.c 2006-03-27 13:58:01.000000000 -0700
+++ kqemu-linux.c.new 2006-04-01 23:10:54.754966655 -0700
@@ -3,6 +3,9 @@
* Copyright (c) 2004-2005 Fabrice Bellard
*/
#include <linux/module.h>
+#ifndef MODULE_PARM
+ #include <linux/moduleparam.h>
+#endif
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/fs.h>
@@ -48,7 +51,11 @@
/* if 0 is used, then devfs/udev is used to automatically create the
device */
int major = 250;
-MODULE_PARM(major,"i");
+#ifdef MODULE_PARM
+ MODULE_PARM(major,"i");
+#else
+ module_param(major, int, 0444);
+#endif
/* lock the page at virtual address 'user_addr' and return its
page index. Return -1 if error */
|