devtools: allow ENOSYS in checkpatch

Message ID 20200608132850.2096345-1-thomas@monjalon.net (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series devtools: allow ENOSYS in checkpatch |

Checks

Context Check Description
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/travis-robot success Travis build: passed
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/checkpatch success coding style OK

Commit Message

Thomas Monjalon June 8, 2020, 1:28 p.m. UTC
  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>
---
 devtools/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ferruh Yigit June 8, 2020, 1:47 p.m. UTC | #1
On 6/8/2020 2:28 PM, Thomas Monjalon wrote:
> 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>
  
David Marchand July 3, 2020, 9:08 a.m. UTC | #2
On Mon, Jun 8, 2020 at 3:47 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> On 6/8/2020 2:28 PM, Thomas Monjalon wrote:
> > 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>

Applied, thanks.
  

Patch

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 158087f1ca..0a5840a3ad 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -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,\