]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch.pl: new instances of ENOSYS are errors
authorAndy Lutomirski <luto@amacapital.net>
Thu, 16 Apr 2015 19:44:44 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:58 +0000 (09:03 -0400)
commitdca1f735ade3cc444be6d49306a76f042c45a381
treed521bb93c9d1593cca054cc3a3f9038bc59d6044
parent4c6303d2fa3b2ee8cd360aee66d0572d80cfcef5
checkpatch.pl: new instances of ENOSYS are errors

ENOSYS means that a nonexistent system call was called.  We have a
bad habit of using it for things like invalid operations on
otherwise valid syscalls.  We should avoid this in new code.

Pervasive incorrect usage of ENOSYS came up at the kernel summit ABI
review discussion.  Let's see if checkpatch can help.

I'll submit a separate patch for include/uapi/asm-generic/errno.h.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl