From: Bernd Schubert Date: Sat, 4 Jan 2025 21:06:31 +0000 (+0100) Subject: checkpatch: Disable warning for externs in C files X-Git-Tag: fuse-3.17.1-rc0~21 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0cab87aeff36503a74222e181d5206b2c77c9bb9;p=qemu-gpiodev%2Flibfuse.git checkpatch: Disable warning for externs in C files We do actually need these, at least for compat.c. Also disable git commit id warnings, these are doing more harm than good (for example trigger long line warnings when fulfilled). Signed-off-by: Bernd Schubert --- diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index 3f0eb9f..91db8f2 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -24,7 +24,7 @@ jobs: git rev-list --reverse $base_commit..HEAD | while read commit; do subject=$(git log -1 --format=%s $commit) echo "Checking commit: $commit - $subject" - if ! ./checkpatch.pl --no-tree --ignore MAINTAINERS,SPDX_LICENSE_TAG,COMMIT_MESSAGE,FILE_PATH_CHANGES,EMAIL_SUBJECT -g $commit; then + if ! ./checkpatch.pl --no-tree --ignore MAINTAINERS,SPDX_LICENSE_TAG,COMMIT_MESSAGE,FILE_PATH_CHANGES,EMAIL_SUBJECT,AVOID_EXTERNS,GIT_COMMIT_ID -g $commit; then echo "checkpatch.pl found issues in commit $commit - $subject" exit 1 fi