From: Kamalesh Babulal Date: Wed, 9 Mar 2022 11:52:35 +0000 (+0530) Subject: checkpatch.conf: introduce checkpatch.pl configuration X-Git-Tag: v3.0~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182b24a3831ea544b06af987bb5824926219945a;p=thirdparty%2Flibcgroup.git checkpatch.conf: introduce checkpatch.pl configuration Introduce checkpatch.conf, which defines the rules those are exempted in libcgroup when running scripts/checkpatch.pl from Linux Kernel sources. This helps us in introducing a coding standard and stay close to already well defined and debated coding style that of the Linux Kernel. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/.checkpatch.conf b/.checkpatch.conf new file mode 100644 index 00000000..43ac0287 --- /dev/null +++ b/.checkpatch.conf @@ -0,0 +1,15 @@ +# There is no Kernel tree available, run without it. +--no-tree + +# Ignore the SPDX License tag, that's supposed to be the first line in +# Linux Kernel sources. +--ignore SPDX_LICENSE_TAG + +# We do not follow the negative error numbering, so ignore it. +--ignore USE_NEGATIVE_ERRNO + +# Follow the 80-character limit. +--max-line-length=80 + +# Kernel specific kstr* functions recommendation doesn't apply to us. +--ignore SSCANF_TO_KSTRTO