*new* return_cast: complain about return -EINVAL in u8 functions
commitf65a092d16cf269d67797559d94f8e3a0f13f09d
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Feb 2015 09:06:18 +0000 (18 12:06 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Feb 2015 09:06:18 +0000 (18 12:06 +0300)
tree42fe8b24d72564b23fddfbf2089dfa7cfb3dbf92
parent8a377b5c322141fc27a9197162b702af45be7ca4
*new* return_cast: complain about return -EINVAL in u8 functions

The kernel returns negative error codes, normally.  Some people forget
this and declare their functions as returning unsigned char so the return
code is truncated.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_list.h
check_return_cast.c [new file with mode: 0644]