WARNING: line length of 81 exceeds 80 columns #179: FILE: include/linux/packing.h:63: + BUILD_BUG_ON_MSG(__f.startbit - __f.endbit >= BITS_PER_BYTE * __f.size, \ WARNING: line length of 85 exceeds 80 columns #183: FILE: include/linux/packing.h:67: + CHECK_PACKED_FIELD_OVERLAP(fields, index - 1, index), \ WARNING: line length of 90 exceeds 80 columns #199: FILE: include/linux/packing.h:83: + __stringify(fields) " first field exceeds packed buffer size"); \ WARNING: line length of 89 exceeds 80 columns #201: FILE: include/linux/packing.h:85: + __stringify(fields) " last field exceeds packed buffer size"); \ WARNING: line length of 94 exceeds 80 columns #484: FILE: include/linux/packing.h:379: + __builtin_choose_expr(ARRAY_SIZE(fields) == 1, ({ CHECK_PACKED_FIELDS_1(fields); }), \ WARNING: line length of 94 exceeds 80 columns #485: FILE: include/linux/packing.h:380: + __builtin_choose_expr(ARRAY_SIZE(fields) == 2, ({ CHECK_PACKED_FIELDS_2(fields); }), \ WARNING: line length of 94 exceeds 80 columns #486: FILE: include/linux/packing.h:381: + __builtin_choose_expr(ARRAY_SIZE(fields) == 3, ({ CHECK_PACKED_FIELDS_3(fields); }), \ WARNING: line length of 94 exceeds 80 columns #487: FILE: include/linux/packing.h:382: + __builtin_choose_expr(ARRAY_SIZE(fields) == 4, ({ CHECK_PACKED_FIELDS_4(fields); }), \ WARNING: line length of 94 exceeds 80 columns #488: FILE: include/linux/packing.h:383: + __builtin_choose_expr(ARRAY_SIZE(fields) == 5, ({ CHECK_PACKED_FIELDS_5(fields); }), \ WARNING: line length of 94 exceeds 80 columns #489: FILE: include/linux/packing.h:384: + __builtin_choose_expr(ARRAY_SIZE(fields) == 6, ({ CHECK_PACKED_FIELDS_6(fields); }), \ WARNING: line length of 94 exceeds 80 columns #490: FILE: include/linux/packing.h:385: + __builtin_choose_expr(ARRAY_SIZE(fields) == 7, ({ CHECK_PACKED_FIELDS_7(fields); }), \ WARNING: line length of 94 exceeds 80 columns #491: FILE: include/linux/packing.h:386: + __builtin_choose_expr(ARRAY_SIZE(fields) == 8, ({ CHECK_PACKED_FIELDS_8(fields); }), \ WARNING: line length of 94 exceeds 80 columns #492: FILE: include/linux/packing.h:387: + __builtin_choose_expr(ARRAY_SIZE(fields) == 9, ({ CHECK_PACKED_FIELDS_9(fields); }), \ WARNING: line length of 96 exceeds 80 columns #493: FILE: include/linux/packing.h:388: + __builtin_choose_expr(ARRAY_SIZE(fields) == 10, ({ CHECK_PACKED_FIELDS_10(fields); }), \ WARNING: line length of 96 exceeds 80 columns #494: FILE: include/linux/packing.h:389: + __builtin_choose_expr(ARRAY_SIZE(fields) == 11, ({ CHECK_PACKED_FIELDS_11(fields); }), \ WARNING: line length of 96 exceeds 80 columns #495: FILE: include/linux/packing.h:390: + __builtin_choose_expr(ARRAY_SIZE(fields) == 12, ({ CHECK_PACKED_FIELDS_12(fields); }), \ WARNING: line length of 96 exceeds 80 columns #496: FILE: include/linux/packing.h:391: + __builtin_choose_expr(ARRAY_SIZE(fields) == 13, ({ CHECK_PACKED_FIELDS_13(fields); }), \ WARNING: line length of 96 exceeds 80 columns #497: FILE: include/linux/packing.h:392: + __builtin_choose_expr(ARRAY_SIZE(fields) == 14, ({ CHECK_PACKED_FIELDS_14(fields); }), \ WARNING: line length of 96 exceeds 80 columns #498: FILE: include/linux/packing.h:393: + __builtin_choose_expr(ARRAY_SIZE(fields) == 15, ({ CHECK_PACKED_FIELDS_15(fields); }), \ WARNING: line length of 96 exceeds 80 columns #499: FILE: include/linux/packing.h:394: + __builtin_choose_expr(ARRAY_SIZE(fields) == 16, ({ CHECK_PACKED_FIELDS_16(fields); }), \ WARNING: line length of 96 exceeds 80 columns #500: FILE: include/linux/packing.h:395: + __builtin_choose_expr(ARRAY_SIZE(fields) == 17, ({ CHECK_PACKED_FIELDS_17(fields); }), \ WARNING: line length of 96 exceeds 80 columns #501: FILE: include/linux/packing.h:396: + __builtin_choose_expr(ARRAY_SIZE(fields) == 18, ({ CHECK_PACKED_FIELDS_18(fields); }), \ WARNING: line length of 96 exceeds 80 columns #502: FILE: include/linux/packing.h:397: + __builtin_choose_expr(ARRAY_SIZE(fields) == 19, ({ CHECK_PACKED_FIELDS_19(fields); }), \ WARNING: line length of 96 exceeds 80 columns #503: FILE: include/linux/packing.h:398: + __builtin_choose_expr(ARRAY_SIZE(fields) == 20, ({ CHECK_PACKED_FIELDS_20(fields); }), \ WARNING: line length of 96 exceeds 80 columns #504: FILE: include/linux/packing.h:399: + __builtin_choose_expr(ARRAY_SIZE(fields) == 21, ({ CHECK_PACKED_FIELDS_21(fields); }), \ WARNING: line length of 96 exceeds 80 columns #505: FILE: include/linux/packing.h:400: + __builtin_choose_expr(ARRAY_SIZE(fields) == 22, ({ CHECK_PACKED_FIELDS_22(fields); }), \ WARNING: line length of 96 exceeds 80 columns #506: FILE: include/linux/packing.h:401: + __builtin_choose_expr(ARRAY_SIZE(fields) == 23, ({ CHECK_PACKED_FIELDS_23(fields); }), \ WARNING: line length of 96 exceeds 80 columns #507: FILE: include/linux/packing.h:402: + __builtin_choose_expr(ARRAY_SIZE(fields) == 24, ({ CHECK_PACKED_FIELDS_24(fields); }), \ WARNING: line length of 96 exceeds 80 columns #508: FILE: include/linux/packing.h:403: + __builtin_choose_expr(ARRAY_SIZE(fields) == 25, ({ CHECK_PACKED_FIELDS_25(fields); }), \ WARNING: line length of 96 exceeds 80 columns #509: FILE: include/linux/packing.h:404: + __builtin_choose_expr(ARRAY_SIZE(fields) == 26, ({ CHECK_PACKED_FIELDS_26(fields); }), \ WARNING: line length of 96 exceeds 80 columns #510: FILE: include/linux/packing.h:405: + __builtin_choose_expr(ARRAY_SIZE(fields) == 27, ({ CHECK_PACKED_FIELDS_27(fields); }), \ WARNING: line length of 96 exceeds 80 columns #511: FILE: include/linux/packing.h:406: + __builtin_choose_expr(ARRAY_SIZE(fields) == 28, ({ CHECK_PACKED_FIELDS_28(fields); }), \ WARNING: line length of 96 exceeds 80 columns #512: FILE: include/linux/packing.h:407: + __builtin_choose_expr(ARRAY_SIZE(fields) == 29, ({ CHECK_PACKED_FIELDS_29(fields); }), \ WARNING: line length of 96 exceeds 80 columns #513: FILE: include/linux/packing.h:408: + __builtin_choose_expr(ARRAY_SIZE(fields) == 30, ({ CHECK_PACKED_FIELDS_30(fields); }), \ WARNING: line length of 96 exceeds 80 columns #514: FILE: include/linux/packing.h:409: + __builtin_choose_expr(ARRAY_SIZE(fields) == 31, ({ CHECK_PACKED_FIELDS_31(fields); }), \ WARNING: line length of 96 exceeds 80 columns #515: FILE: include/linux/packing.h:410: + __builtin_choose_expr(ARRAY_SIZE(fields) == 32, ({ CHECK_PACKED_FIELDS_32(fields); }), \ WARNING: line length of 96 exceeds 80 columns #516: FILE: include/linux/packing.h:411: + __builtin_choose_expr(ARRAY_SIZE(fields) == 33, ({ CHECK_PACKED_FIELDS_33(fields); }), \ WARNING: line length of 96 exceeds 80 columns #517: FILE: include/linux/packing.h:412: + __builtin_choose_expr(ARRAY_SIZE(fields) == 34, ({ CHECK_PACKED_FIELDS_34(fields); }), \ WARNING: line length of 96 exceeds 80 columns #518: FILE: include/linux/packing.h:413: + __builtin_choose_expr(ARRAY_SIZE(fields) == 35, ({ CHECK_PACKED_FIELDS_35(fields); }), \ WARNING: line length of 96 exceeds 80 columns #519: FILE: include/linux/packing.h:414: + __builtin_choose_expr(ARRAY_SIZE(fields) == 36, ({ CHECK_PACKED_FIELDS_36(fields); }), \ WARNING: line length of 96 exceeds 80 columns #520: FILE: include/linux/packing.h:415: + __builtin_choose_expr(ARRAY_SIZE(fields) == 37, ({ CHECK_PACKED_FIELDS_37(fields); }), \ WARNING: line length of 96 exceeds 80 columns #521: FILE: include/linux/packing.h:416: + __builtin_choose_expr(ARRAY_SIZE(fields) == 38, ({ CHECK_PACKED_FIELDS_38(fields); }), \ WARNING: line length of 96 exceeds 80 columns #522: FILE: include/linux/packing.h:417: + __builtin_choose_expr(ARRAY_SIZE(fields) == 39, ({ CHECK_PACKED_FIELDS_39(fields); }), \ WARNING: line length of 96 exceeds 80 columns #523: FILE: include/linux/packing.h:418: + __builtin_choose_expr(ARRAY_SIZE(fields) == 40, ({ CHECK_PACKED_FIELDS_40(fields); }), \ WARNING: line length of 96 exceeds 80 columns #524: FILE: include/linux/packing.h:419: + __builtin_choose_expr(ARRAY_SIZE(fields) == 41, ({ CHECK_PACKED_FIELDS_41(fields); }), \ WARNING: line length of 96 exceeds 80 columns #525: FILE: include/linux/packing.h:420: + __builtin_choose_expr(ARRAY_SIZE(fields) == 42, ({ CHECK_PACKED_FIELDS_42(fields); }), \ WARNING: line length of 96 exceeds 80 columns #526: FILE: include/linux/packing.h:421: + __builtin_choose_expr(ARRAY_SIZE(fields) == 43, ({ CHECK_PACKED_FIELDS_43(fields); }), \ WARNING: line length of 96 exceeds 80 columns #527: FILE: include/linux/packing.h:422: + __builtin_choose_expr(ARRAY_SIZE(fields) == 44, ({ CHECK_PACKED_FIELDS_44(fields); }), \ WARNING: line length of 96 exceeds 80 columns #528: FILE: include/linux/packing.h:423: + __builtin_choose_expr(ARRAY_SIZE(fields) == 45, ({ CHECK_PACKED_FIELDS_45(fields); }), \ WARNING: line length of 96 exceeds 80 columns #529: FILE: include/linux/packing.h:424: + __builtin_choose_expr(ARRAY_SIZE(fields) == 46, ({ CHECK_PACKED_FIELDS_46(fields); }), \ WARNING: line length of 96 exceeds 80 columns #530: FILE: include/linux/packing.h:425: + __builtin_choose_expr(ARRAY_SIZE(fields) == 47, ({ CHECK_PACKED_FIELDS_47(fields); }), \ WARNING: line length of 96 exceeds 80 columns #531: FILE: include/linux/packing.h:426: + __builtin_choose_expr(ARRAY_SIZE(fields) == 48, ({ CHECK_PACKED_FIELDS_48(fields); }), \ WARNING: line length of 96 exceeds 80 columns #532: FILE: include/linux/packing.h:427: + __builtin_choose_expr(ARRAY_SIZE(fields) == 49, ({ CHECK_PACKED_FIELDS_49(fields); }), \ WARNING: line length of 96 exceeds 80 columns #533: FILE: include/linux/packing.h:428: + __builtin_choose_expr(ARRAY_SIZE(fields) == 50, ({ CHECK_PACKED_FIELDS_50(fields); }), \ WARNING: line length of 120 exceeds 80 columns #534: FILE: include/linux/packing.h:429: + ({ BUILD_BUG_ON_MSG(1, "CHECK_PACKED_FIELDS() must be regenerated to support array sizes larger than 50."); }) \ WARNING: line length of 98 exceeds 80 columns #546: FILE: include/linux/packing.h:441: + )((pbuf), (pbuflen), (ustruct), (fields), ARRAY_SIZE(fields), (quirks)); \ WARNING: line length of 98 exceeds 80 columns #556: FILE: include/linux/packing.h:451: + )((pbuf), (pbuflen), (ustruct), (fields), ARRAY_SIZE(fields), (quirks)); \ WARNING: line length of 81 exceeds 80 columns #573: FILE: lib/packing.c:13: +#define __pack_fields(pbuf, pbuflen, ustruct, fields, num_fields, quirks) \ WARNING: line length of 81 exceeds 80 columns #574: FILE: lib/packing.c:14: + ({ \ WARNING: line length of 81 exceeds 80 columns #575: FILE: lib/packing.c:15: + for (size_t i = 0; i < (num_fields); i++) { \ WARNING: line length of 81 exceeds 80 columns #576: FILE: lib/packing.c:16: + typeof(&(fields)[0]) field = &(fields)[i]; \ WARNING: line length of 81 exceeds 80 columns #577: FILE: lib/packing.c:17: + u64 uval; \ WARNING: line length of 81 exceeds 80 columns #578: FILE: lib/packing.c:18: + \ WARNING: line length of 91 exceeds 80 columns #579: FILE: lib/packing.c:19: + uval = ustruct_field_to_u64(ustruct, field->offset, field->size); \ WARNING: line length of 81 exceeds 80 columns #580: FILE: lib/packing.c:20: + \ WARNING: line length of 81 exceeds 80 columns #581: FILE: lib/packing.c:21: + __pack(pbuf, uval, field->startbit, field->endbit, \ WARNING: line length of 81 exceeds 80 columns #582: FILE: lib/packing.c:22: + pbuflen, quirks); \ WARNING: line length of 81 exceeds 80 columns #583: FILE: lib/packing.c:23: + } \ WARNING: line length of 81 exceeds 80 columns #586: FILE: lib/packing.c:26: +#define __unpack_fields(pbuf, pbuflen, ustruct, fields, num_fields, quirks) \ WARNING: line length of 81 exceeds 80 columns #587: FILE: lib/packing.c:27: + ({ \ WARNING: line length of 81 exceeds 80 columns #588: FILE: lib/packing.c:28: + for (size_t i = 0; i < (num_fields); i++) { \ WARNING: line length of 81 exceeds 80 columns #589: FILE: lib/packing.c:29: + typeof(&(fields)[0]) field = &fields[i]; \ WARNING: line length of 81 exceeds 80 columns #590: FILE: lib/packing.c:30: + u64 uval; \ WARNING: line length of 81 exceeds 80 columns #591: FILE: lib/packing.c:31: + \ WARNING: line length of 81 exceeds 80 columns #592: FILE: lib/packing.c:32: + __unpack(pbuf, &uval, field->startbit, field->endbit, \ WARNING: line length of 81 exceeds 80 columns #593: FILE: lib/packing.c:33: + pbuflen, quirks); \ WARNING: line length of 81 exceeds 80 columns #594: FILE: lib/packing.c:34: + \ WARNING: line length of 90 exceeds 80 columns #595: FILE: lib/packing.c:35: + u64_to_ustruct_field(ustruct, field->offset, field->size, uval); \ WARNING: line length of 81 exceeds 80 columns #596: FILE: lib/packing.c:36: + } \ WARNING: line length of 119 exceeds 80 columns #864: FILE: scripts/gen_packed_field_checks.c:27: + printf("\t__builtin_choose_expr(ARRAY_SIZE(fields) == %d, ({ CHECK_PACKED_FIELDS_%d(fields); }), \\\n", WARNING: line length of 137 exceeds 80 columns #867: FILE: scripts/gen_packed_field_checks.c:30: + printf("\t({ BUILD_BUG_ON_MSG(1, \"CHECK_PACKED_FIELDS() must be regenerated to support array sizes larger than %d.\"); }) \\\n", total: 0 errors, 81 warnings, 0 checks, 740 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 511681933e7a ("lib: packing: add pack_fields() and unpack_fields()") 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, 81 warnings, 0 checks, 740 lines checked