drm/nouveau: block a bunch of classes from userspace
[linux-2.6-microblaze.git] / lib / test_kasan.c
index 44e08f4..8f7b0b2 100644 (file)
@@ -110,17 +110,13 @@ static void kasan_test_exit(struct kunit *test)
 } while (0)
 
 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do {                  \
-       if (!IS_ENABLED(config)) {                                      \
-               kunit_info((test), "skipping, " #config " required");   \
-               return;                                                 \
-       }                                                               \
+       if (!IS_ENABLED(config))                                        \
+               kunit_skip((test), "Test requires " #config "=y");      \
 } while (0)
 
 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do {                 \
-       if (IS_ENABLED(config)) {                                       \
-               kunit_info((test), "skipping, " #config " enabled");    \
-               return;                                                 \
-       }                                                               \
+       if (IS_ENABLED(config))                                         \
+               kunit_skip((test), "Test requires " #config "=n");      \
 } while (0)
 
 static void kmalloc_oob_right(struct kunit *test)
@@ -655,7 +651,7 @@ static void kasan_global_oob(struct kunit *test)
 {
        /*
         * Deliberate out-of-bounds access. To prevent CONFIG_UBSAN_LOCAL_BOUNDS
-        * from failing here and panicing the kernel, access the array via a
+        * from failing here and panicking the kernel, access the array via a
         * volatile pointer, which will prevent the compiler from being able to
         * determine the array bounds.
         *