CHECK: No space is necessary after a cast #65: FILE: kernel/bpf/arraymap.c:264: + *imm = (u64) array->pptrs[0]; CHECK: No space is necessary after a cast #73: FILE: kernel/bpf/arraymap.c:272: + u64 base = (u64) array->pptrs[0]; WARNING: line length of 95 exceeds 80 columns #135: FILE: kernel/bpf/verifier.c:9147: + verbose(env, "percpu_array map does not support direct string value access\n"); WARNING: line length of 89 exceeds 80 columns #174: FILE: kernel/bpf/verifier.c:21336: + insn_buf[1] = BPF_MOV64_PERCPU_REG(insn->dst_reg, insn->dst_reg); WARNING: line length of 86 exceeds 80 columns #178: FILE: kernel/bpf/verifier.c:21340: + new_prog = bpf_patch_insn_data(env, i + delta, insn_buf, cnt); CHECK: multiple assignments should be avoided #183: FILE: kernel/bpf/verifier.c:21345: + env->prog = prog = new_prog; CHECK: spaces preferred around that '*' (ctx:VxV) #237: FILE: tools/lib/bpf/libbpf.c:1948: + memcpy(map->data + i*elem_sz, data, data_sz); ^ CHECK: spaces preferred around that '*' (ctx:VxV) #305: FILE: tools/lib/bpf/libbpf.c:2013: + memset(map->data, 0, map->num_cpus*roundup(data_sz, 8)); ^ WARNING: line length of 89 exceeds 80 columns #342: FILE: tools/lib/bpf/libbpf.c:5189: + data_sz = map_is_percpu_data(map) ? roundup(map->def.value_size, 8)*map->num_cpus CHECK: spaces preferred around that '*' (ctx:VxV) #342: FILE: tools/lib/bpf/libbpf.c:5189: + data_sz = map_is_percpu_data(map) ? roundup(map->def.value_size, 8)*map->num_cpus ^ WARNING: line length of 84 exceeds 80 columns #401: FILE: tools/lib/bpf/libbpf.c:10445: + return map->def.type == BPF_MAP_TYPE_PERCPU_ARRAY ? map->data : map->mmaped; total: 0 errors, 5 warnings, 6 checks, 329 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 7ff4d957c72c ("bpf: Introduce global percpu data") 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, 5 warnings, 6 checks, 329 lines checked