]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - lib/test-kstrtox.c
pnfs/blocklayout: include vmalloc.h for __vmalloc
[karo-tx-linux.git] / lib / test-kstrtox.c
index bea3f3fa3f02a920fb92b9293c0adf06d72a52a6..4137bca5f8e8e5008ca88b7fcb801096856eaf0c 100644 (file)
@@ -3,7 +3,7 @@
 #include <linux/module.h>
 
 #define for_each_test(i, test) \
-       for (i = 0; i < sizeof(test) / sizeof(test[0]); i++)
+       for (i = 0; i < ARRAY_SIZE(test); i++)
 
 struct test_fail {
        const char *str;