Whamcloud - gitweb
- use USERMODEHELPER macro
authoralex <alex>
Thu, 16 Oct 2003 16:41:24 +0000 (16:41 +0000)
committeralex <alex>
Thu, 16 Oct 2003 16:41:24 +0000 (16:41 +0000)
lnet/libcfs/debug.c
lustre/portals/libcfs/debug.c

index 61229f5..2a6a474 100644 (file)
@@ -879,11 +879,7 @@ void portals_run_upcall(char **argv)
 
         LASSERT(argc >= 2);
         
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-        rc = call_usermodehelper(argv[0], argv, envp);
-#else
-        rc = call_usermodehelper(argv[0], argv, envp, 1);
-#endif
+        rc = USERMODEHELPER(argv[0], argv, envp);
         if (rc < 0) {
                 CERROR("Error %d invoking portals upcall %s %s%s%s%s%s%s%s%s; "
                        "check /proc/sys/portals/upcall\n",
index 61229f5..2a6a474 100644 (file)
@@ -879,11 +879,7 @@ void portals_run_upcall(char **argv)
 
         LASSERT(argc >= 2);
         
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-        rc = call_usermodehelper(argv[0], argv, envp);
-#else
-        rc = call_usermodehelper(argv[0], argv, envp, 1);
-#endif
+        rc = USERMODEHELPER(argv[0], argv, envp);
         if (rc < 0) {
                 CERROR("Error %d invoking portals upcall %s %s%s%s%s%s%s%s%s; "
                        "check /proc/sys/portals/upcall\n",