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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
--- /dev/null
+# 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