Files
scst/scripts/checkpatch
Bart Van Assche 6971f60c14 scripts: Merge r8007:8277 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8281 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-30 14:27:19 +00:00

12 lines
402 B
Bash
Executable File

#!/bin/bash
ignore=(
CONSTANT_COMPARISON
LINUX_VERSION_CODE
LONG_LINE_STRING
RETURN_VOID
SPDX_LICENSE_TAG
SYMBOLIC_PERMS
)
../linux-kernel/scripts/checkpatch.pl -f --show-types --ignore="$(echo "${ignore[@]}" | sed 's/ /,/g')" $(list-source-files | grep -vE 'fcst/linux-patches|patch$|pdf$|png$|^ibmvstgt/|^mpt/|^qla_isp/|^mvsas_tgt/') | sed 's/^#[0-9]*: FILE: \(.*\):/\1:1:/'