Re: [PATCH net-next v2] checkpatch: warn about uses of ENOTSUPP

2020-05-11 Thread Jakub Kicinski
On Mon, 11 May 2020 10:03:31 -0700 Joe Perches wrote: > On Mon, 2020-05-11 at 09:53 -0700, Jakub Kicinski wrote: > > ENOTSUPP often feels like the right error code to use, but it's > > in fact not a standard Unix error. E.g.: > [] > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl >

Re: [PATCH net-next v2] checkpatch: warn about uses of ENOTSUPP

2020-05-11 Thread Joe Perches
On Mon, 2020-05-11 at 09:53 -0700, Jakub Kicinski wrote: > ENOTSUPP often feels like the right error code to use, but it's > in fact not a standard Unix error. E.g.: [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -4199,6 +4199,17 @@ sub process { >

[PATCH net-next v2] checkpatch: warn about uses of ENOTSUPP

2020-05-11 Thread Jakub Kicinski
ENOTSUPP often feels like the right error code to use, but it's in fact not a standard Unix error. E.g.: $ python >>> import errno >>> errno.errorcode[errno.ENOTSUPP] Traceback (most recent call last): File "", line 1, in AttributeError: module 'errno' has no attribute 'ENOTSUPP' There were nu