CHECK: No space is necessary after a cast #82: FILE: test/cmocka/src/lib/lib/rstrlen.c:42: + (void) state; CHECK: No space is necessary after a cast #93: FILE: test/cmocka/src/lib/lib/rstrlen.c:53: + (void) state; CHECK: No space is necessary after a cast #104: FILE: test/cmocka/src/lib/lib/rstrlen.c:64: + (void) state; CHECK: No space is necessary after a cast #115: FILE: test/cmocka/src/lib/lib/rstrlen.c:75: + (void) state; CHECK: spaces preferred around that '+' (ctx:VxV) #126: FILE: test/cmocka/src/lib/lib/rstrlen.c:86: + char str[size+1]; ^ CHECK: No space is necessary after a cast #132: FILE: test/cmocka/src/lib/lib/rstrlen.c:92: + (void) state; CHECK: No space is necessary after a cast #143: FILE: test/cmocka/src/lib/lib/rstrlen.c:103: + (void) state; CHECK: Avoid CamelCase: #151: FILE: test/cmocka/src/lib/lib/rstrlen.c:111: + const struct CMUnitTest tests[] = { CHECK: Lines should not end with a '(' #157: FILE: test/cmocka/src/lib/lib/rstrlen.c:117: + cmocka_unit_test( total: 0 errors, 0 warnings, 9 checks, 140 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. 0001-test-lib-rstrlen-Added-unit-tests-for-lib-rstrlen.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.