selftests/timens: Add a test for futex()
[linux-2.6-microblaze.git] / lib / test_lockup.c
index ff26f36..f1a020b 100644 (file)
@@ -400,7 +400,7 @@ static void test_lockup(bool master)
        test_unlock(master, true);
 }
 
-DEFINE_PER_CPU(struct work_struct, test_works);
+static DEFINE_PER_CPU(struct work_struct, test_works);
 
 static void test_work_fn(struct work_struct *work)
 {
@@ -512,8 +512,8 @@ static int __init test_lockup_init(void)
        if (test_file_path[0]) {
                test_file = filp_open(test_file_path, O_RDONLY, 0);
                if (IS_ERR(test_file)) {
-                       pr_err("cannot find file_path\n");
-                       return -EINVAL;
+                       pr_err("failed to open %s: %ld\n", test_file_path, PTR_ERR(test_file));
+                       return PTR_ERR(test_file);
                }
                test_inode = file_inode(test_file);
        } else if (test_lock_inode ||