CHECK: multiple assignments should be avoided #90: FILE: drivers/vhost/vhost.c:1998: + vq->next_avail_head = vq->last_avail_idx = CHECK: multiple assignments should be avoided #99: FILE: drivers/vhost/vhost.c:2006: + vq->next_avail_head = vq->last_avail_idx = s.num; CHECK: Unbalanced braces around else statement #130: FILE: drivers/vhost/vhost.c:2617: + else { WARNING: Block comments use a trailing */ on a separate line #132: FILE: drivers/vhost/vhost.c:2619: + * advertising, and increment the index we've seen. */ CHECK: Alignment should match open parenthesis #136: FILE: drivers/vhost/vhost.c:2623: + vq_err(vq, "Failed to read head: idx %d address %p\n", + last_avail_idx, WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #191: FILE: drivers/vhost/vhost.c:2778: + unsigned count) WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #205: FILE: drivers/vhost/vhost.c:2799: + unsigned count) WARNING: sizeof *used should be sizeof(*used) #233: FILE: drivers/vhost/vhost.c:2827: + (vq->num - start) * sizeof *used); WARNING: sizeof *used should be sizeof(*used) #236: FILE: drivers/vhost/vhost.c:2830: + (start + count - vq->num) * sizeof *used); WARNING: Block comments use a trailing */ on a separate line #244: FILE: drivers/vhost/vhost.c:2838: + * signals at least once in 2^16 and remove this. */ WARNING: Block comments use a trailing */ on a separate line #251: FILE: drivers/vhost/vhost.c:2845: + * want to notify the guest, using eventfd. */ WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #253: FILE: drivers/vhost/vhost.c:2847: + u16 *nheads, unsigned count) WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #273: FILE: drivers/vhost/vhost.c:2937: + unsigned count) WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #306: FILE: drivers/vhost/vhost.h:219: + u16 *nheads, unsigned count); WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #312: FILE: drivers/vhost/vhost.h:224: + unsigned count); total: 0 errors, 11 warnings, 4 checks, 258 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 b70f66aba1cb ("vhost: basic in order support") 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, 11 warnings, 4 checks, 258 lines checked