WARNING: return sysfs_emit(...) formats should include a terminating newline #31: FILE: drivers/ptp/ptp_ocp.c:3370: + return sysfs_emit(buf, "ttyS%d", bp->port[(uintptr_t)ea->var].line); WARNING: line length of 84 exceeds 80 columns #35: FILE: drivers/ptp/ptp_ocp.c:3374: +ptp_ocp_timecard_tty_is_visible(struct kobject *kobj, struct attribute *attr, int n) WARNING: line length of 82 exceeds 80 columns #53: FILE: drivers/ptp/ptp_ocp.c:3392: + { __ATTR(tty##_name, 0444, ptp_ocp_tty_show, NULL), (void *)_val } total: 0 errors, 3 warnings, 0 checks, 98 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 29b503d1c7a1 ("ptp: ocp: adjust sysfs entries to expose tty information") 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, 3 warnings, 0 checks, 98 lines checked