u mean both this line ? both need to be change ? and how about the kernel version ?
- err = path_lookup(path, LOOKUP_FOLLOW, &nd);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
+ err = kern_path(path, LOOKUP_FOLLOW, &(nd.path));
+#else
+ err = path_lookup(path, LOOKUP_FOLLOW...