WARNING: line length of 90 exceeds 80 columns #86: FILE: kernel/bpf/hashtab.c:2678: +static void rhtab_read_elem_value(struct bpf_map *map, void *dst, struct rhtab_elem *elem, WARNING: line length of 81 exceeds 80 columns #146: FILE: kernel/bpf/hashtab.c:2738: +static int rhtab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) WARNING: line length of 89 exceeds 80 columns #162: FILE: kernel/bpf/hashtab.c:2754: + slot = (key && !found) ? rht_key_hashfn(&rhtab->ht, tbl, key, rhtab->params) : 0; WARNING: line length of 81 exceeds 80 columns #169: FILE: kernel/bpf/hashtab.c:2761: + } else if (memcmp(elem->data, key, map->key_size) == 0) { WARNING: line length of 89 exceeds 80 columns #207: FILE: kernel/bpf/hashtab.c:2799: + rhtab->elem_size = sizeof(struct rhtab_elem) + round_up(rhtab->map.key_size, 8) + WARNING: line length of 83 exceeds 80 columns #261: FILE: kernel/bpf/hashtab.c:2853: +static void *rhtab_map_lookup_elem(struct bpf_map *map, void *key) __must_hold(RCU) WARNING: line length of 83 exceeds 80 columns #300: FILE: kernel/bpf/hashtab.c:2892: + bpf_map_free_internal_structs(map, rhtab_elem_value(elem)); WARNING: line length of 99 exceeds 80 columns #308: FILE: kernel/bpf/hashtab.c:2900: +static int rhtab_map_lookup_and_delete_elem(struct bpf_map *map, void *key, void *value, u64 flags) WARNING: line length of 88 exceeds 80 columns #314: FILE: kernel/bpf/hashtab.c:2906: + ((flags & BPF_F_LOCK) && !btf_record_has_field(map->record, BPF_SPIN_LOCK))) WARNING: line length of 96 exceeds 80 columns #330: FILE: kernel/bpf/hashtab.c:2922: +static long rhtab_map_update_existing(struct bpf_map *map, struct rhtab_elem *elem, void *value, WARNING: line length of 81 exceeds 80 columns #337: FILE: kernel/bpf/hashtab.c:2929: + copy_map_value_locked(map, rhtab_elem_value(elem), value, false); WARNING: line length of 93 exceeds 80 columns #343: FILE: kernel/bpf/hashtab.c:2935: +static long rhtab_map_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) WARNING: line length of 90 exceeds 80 columns #351: FILE: kernel/bpf/hashtab.c:2943: + if ((map_flags & BPF_F_LOCK) && !btf_record_has_field(map->record, BPF_SPIN_LOCK)) WARNING: line length of 92 exceeds 80 columns #374: FILE: kernel/bpf/hashtab.c:2966: + tmp = rhashtable_lookup_get_insert_key(&rhtab->ht, key, &elem->node, rhtab->params); WARNING: line length of 85 exceeds 80 columns #402: FILE: kernel/bpf/hashtab.c:2994: + (void *(*)(struct bpf_map *map, void *key)) NULL)); WARNING: line length of 96 exceeds 80 columns #406: FILE: kernel/bpf/hashtab.c:2998: + offsetof(struct rhtab_elem, data) + round_up(map->key_size, 8)); WARNING: line length of 87 exceeds 80 columns #411: FILE: kernel/bpf/hashtab.c:3003: +static void rhtab_map_seq_show_elem(struct bpf_map *map, void *key, struct seq_file *m) WARNING: line length of 100 exceeds 80 columns #428: FILE: kernel/bpf/hashtab.c:3020: +static long bpf_each_rhash_elem(struct bpf_map *map, bpf_callback_t callback_fn, void *callback_ctx, WARNING: line length of 89 exceeds 80 columns #460: FILE: kernel/bpf/hashtab.c:3052: + ret = callback_fn((u64)(long)map, (u64)(long)key, (u64)(long)val, WARNING: line length of 82 exceeds 80 columns #479: FILE: kernel/bpf/hashtab.c:3071: +static int rhtab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, WARNING: line length of 93 exceeds 80 columns #485: FILE: kernel/bpf/hashtab.c:3077: +static int rhtab_map_lookup_and_delete_batch(struct bpf_map *map, const union bpf_attr *attr, WARNING: line length of 82 exceeds 80 columns #518: FILE: kernel/bpf/hashtab.c:3110: +static int bpf_iter_init_rhash_map(void *priv_data, struct bpf_iter_aux_info *aux) total: 0 errors, 22 warnings, 0 checks, 523 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 103e34055b21 ("bpf: Implement basic functions for resizable hashtab") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES 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, 22 warnings, 0 checks, 523 lines checked