]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
checkpatch: Ignore ENOSYS warnings
authorSean Anderson <seanga2@gmail.com>
Thu, 15 Apr 2021 02:02:21 +0000 (22:02 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 22 Apr 2021 18:09:45 +0000 (14:09 -0400)
There are no system calls in U-Boot, but ENOSYS is still allowed (and
preferred since 42a2668743 ("dm: core: Document the common error codes")).
Silence this warning.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
.checkpatch.conf

index ed0c2150ba8cb4e608b13047d1b25ef144732f2e..9e40ea060be11523592b842ce7ac3da2a2640b73 100644 (file)
@@ -26,6 +26,9 @@
 # addresses are __aligned(2)".
 --ignore PREFER_ETHER_ADDR_COPY
 
+# ENOSYS is a conventionally used error, even though U-Boot lacks system calls.
+--ignore ENOSYS
+
 # A bit shorter of a description is OK with us.
 --min-conf-desc-length=2