devtools: allow ENOSYS in checkpatch
authorThomas Monjalon <thomas@monjalon.net>
Mon, 8 Jun 2020 13:28:50 +0000 (15:28 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 3 Jul 2020 08:40:18 +0000 (10:40 +0200)
The Linux checkpatch default is warning on the use of ENOSYS.
This is allowed in DPDK API.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
devtools/checkpatches.sh

index e24414b..27ab125 100755 (executable)
@@ -27,7 +27,7 @@ elif [ -f "$codespell" ] ; then
 fi
 options="$options --max-line-length=$length"
 options="$options --show-types"
-options="$options --ignore=LINUX_VERSION_CODE,\
+options="$options --ignore=LINUX_VERSION_CODE,ENOSYS,\
 FILE_PATH_CHANGES,MAINTAINERS_STYLE,SPDX_LICENSE_TAG,\
 VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\
 PREFER_KERNEL_TYPES,BIT_MACRO,CONST_STRUCT,\