CHECK: extern prototypes should be avoided in .h files #33: FILE: include/linux/mm.h:2487: +extern int copy_str_from_process_vm(struct task_struct *tsk, unsigned long addr, CHECK: Alignment should match open parenthesis #34: FILE: include/linux/mm.h:2488: +extern int copy_str_from_process_vm(struct task_struct *tsk, unsigned long addr, + void *buf, int len, unsigned int gup_flags); WARNING: line length of 139 exceeds 80 columns #63: FILE: kernel/bpf/helpers.c:3091: +__bpf_kfunc int bpf_copy_from_user_task_str(void *dst, u32 dst__sz, const void __user *unsafe_ptr__ign, struct task_struct *tsk, u64 flags) WARNING: line length of 91 exceeds 80 columns #74: FILE: kernel/bpf/helpers.c:3102: + ret = copy_str_from_process_vm(tsk, (unsigned long)unsafe_ptr__ign, dst, count, 0); CHECK: Alignment should match open parenthesis #116: FILE: mm/memory.c:6681: +static int __copy_str_from_remote_vm(struct mm_struct *mm, unsigned long addr, + void *buf, int len, unsigned int gup_flags) WARNING: line length of 82 exceeds 80 columns #156: FILE: mm/memory.c:6721: + retval = strncpy_from_user(buf, (const char __user *)addr, bytes); WARNING: line length of 81 exceeds 80 columns #188: FILE: mm/memory.c:6787: + * copy_str_from_process_vm - copy a string from another process's address space. CHECK: Alignment should match open parenthesis #202: FILE: mm/memory.c:6801: +int copy_str_from_process_vm(struct task_struct *tsk, unsigned long addr, + void *buf, int len, unsigned int gup_flags) total: 0 errors, 4 warnings, 4 checks, 180 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 4728f9747931 ("bpf: Add bpf_copy_from_user_task_str kfunc") 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, 4 warnings, 4 checks, 180 lines checked