Menu

#8 Fails to build against 2.6.32

open
nobody
None
5
2010-09-04
2010-09-04
Anonymous
No

Complete patch I need to build 2.1.7 against Fedora 12 (kernel 2.6.32):

--- x10dev-2.1.7/dev/dev.c 2006-12-03 18:14:48.000000000 -0500
+++ x10dev-2.1.7new/dev/dev.c 2010-09-04 11:24:44.161924498 -0400
@@ -56,6 +56,7 @@
#include <linux/proc_fs.h>

#include <linux/version.h>
+#include <linux/sched.h>

#define __X10_MODULE__
#include "x10.h"
@@ -560,7 +561,7 @@ x10_init (void)
returnvalue = -ENOMEM;
goto error_info;
}
- procinfo->owner = THIS_MODULE;
+// procinfo->owner = THIS_MODULE;

memset(&x10api,0,sizeof(x10api_t));
x10api.data = -1;
@@ -618,13 +619,16 @@ x10_exit (void)

if (x10api.data >= 0) {
dbg ("unregistering %d:%s", x10api.data, DATA_DEVICE_NAME);
- if (unregister_chrdev (x10api.data, DATA_DEVICE_NAME) == -EINVAL)
- dbg ("error unregistering %s", DATA_DEVICE_NAME);
+ unregister_chrdev (x10api.data, DATA_DEVICE_NAME);
+// if (unregister_chrdev (x10api.data, DATA_DEVICE_NAME) == -EINVAL)
+// dbg ("error unregistering %s", DATA_DEVICE_NAME);
+
}
if (x10api.control >= 0) {
dbg ("unregistering %d:%s", x10api.control, CONTROL_DEVICE_NAME);
- if (unregister_chrdev (x10api.control, CONTROL_DEVICE_NAME) == -EINVAL)
- dbg ("error unregistering %s", CONTROL_DEVICE_NAME);
+ unregister_chrdev (x10api.control, CONTROL_DEVICE_NAME);
+// if (unregister_chrdev (x10api.control, CONTROL_DEVICE_NAME) == -EINVAL)
+// dbg ("error unregistering %s", CONTROL_DEVICE_NAME);
}
remove_proc_entry(procinfoname,procdir);
remove_proc_entry(procdirname,NULL);

Discussion


Log in to post a comment.