laforge submitted this change.
lint: checkpatch: ignore ENOSYS
I saw CI complain with:
src/dahdi_trunkdev.c:216: WARNING:ENOSYS: ENOSYS means 'invalid syscall nr' and nothing else
Using ENOSYS outside of the kernel to check if the syscall is valid with
whatever kernel version is running on the current system is fine, so
ignore this.
Change-Id: I884c112a723a41d620a11b096913a5f1342aec02
---
M lint/checkpatch/checkpatch_osmo.sh
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lint/checkpatch/checkpatch_osmo.sh b/lint/checkpatch/checkpatch_osmo.sh
index ec10b0c..f241176 100755
--- a/lint/checkpatch/checkpatch_osmo.sh
+++ b/lint/checkpatch/checkpatch_osmo.sh
@@ -61,6 +61,7 @@
# * DEEP_INDENTATION: warns about many leading tabs, not useful if changing existing code without refactoring
# * EMBEDDED_FILENAME: this is useful sometimes (e.g. explaining how to use a script), so do not fail here
# * EMBEDDED_FUNCTION_NAME: often __func__ isn't used, arguably not much benefit in changing this when touching code
+# * ENOSYS: complains about using ENOSYS, which doesn't make sense outside of the kernel
# * EXECUTE_PERMISSIONS: not followed, files need to be executable: git-version-gen, some in debian/
# * FILE_PATH_CHANGES: we don't use a MAINTAINERS file
# * GLOBAL_INITIALISERS: we initialise globals to NULL for talloc ctx (e.g. *tall_lapd_ctx = NULL)
@@ -100,6 +101,7 @@
--ignore DEEP_INDENTATION \
--ignore EMBEDDED_FILENAME \
--ignore EMBEDDED_FUNCTION_NAME \
+ --ignore ENOSYS \
--ignore EXECUTE_PERMISSIONS \
--ignore FILE_PATH_CHANGES \
--ignore GLOBAL_INITIALISERS \
To view, visit change 44236. To unsubscribe, or for help writing mail filters, visit settings.