WARNING: line length of 95 exceeds 80 columns #52: FILE: tools/testing/selftests/ptp/testptp.c:203: + while (EOF != (c = getopt(argc, argv, "cd:e:f:F:ghH:i:k:lL:n:o:p:P:sSt:T:w:x:Xy:z"))) { CHECK: braces {} should be used on all arms of this statement #61: FILE: tools/testing/selftests/ptp/testptp.c:284: + if (!strcasecmp(optarg, "realtime")) [...] + else if (!strcasecmp(optarg, "monotonic")) [...] + else if (!strcasecmp(optarg, "monotonic-raw")) [...] + else { [...] CHECK: Unbalanced braces around else statement #67: FILE: tools/testing/selftests/ptp/testptp.c:290: + else { WARNING: line length of 92 exceeds 80 columns #94: FILE: tools/testing/selftests/ptp/testptp.c:597: + printf("sample #%2d: real time before: %lld.%09u\n", WARNING: line length of 97 exceeds 80 columns #99: FILE: tools/testing/selftests/ptp/testptp.c:602: + printf("sample #%2d: monotonic time before: %lld.%09u\n", WARNING: line length of 101 exceeds 80 columns #104: FILE: tools/testing/selftests/ptp/testptp.c:607: + printf("sample #%2d: monotonic-raw time before: %lld.%09u\n", WARNING: line length of 90 exceeds 80 columns #117: FILE: tools/testing/selftests/ptp/testptp.c:618: + printf(" real time after: %lld.%09u\n", WARNING: line length of 95 exceeds 80 columns #122: FILE: tools/testing/selftests/ptp/testptp.c:623: + printf(" monotonic time after: %lld.%09u\n", WARNING: line length of 99 exceeds 80 columns #127: FILE: tools/testing/selftests/ptp/testptp.c:628: + printf(" monotonic-raw time after: %lld.%09u\n", total: 0 errors, 7 warnings, 2 checks, 100 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. Commit 88b3303d096a ("selftest/ptp: update ptp selftest to exercise the gettimex options") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 7 warnings, 2 checks, 100 lines checked