KEYS: linux/key-type.h needs linux/errno.h
authorDavid Howells <dhowells@redhat.com>
Mon, 23 Jul 2012 14:37:31 +0000 (15:37 +0100)
committerJames Morris <james.l.morris@oracle.com>
Mon, 30 Jul 2012 05:08:46 +0000 (15:08 +1000)
commit5935e6dcaaa8f666dd7f1169fa87d36752ebeb94
tree7f02532c82a683ced7d02a289cd0a16e92ae19ee
parent3b9fc37280c521b086943f9aedda767f5bf3b2d3
KEYS: linux/key-type.h needs linux/errno.h

linux/key-type.h needs to #include linux/errno.h as it refers to ENOKEY.
Without this, with sparc's allmodconfig in one of my test trees, the following
error occurs:

include/linux/key-type.h: In function 'key_negate_and_link':
include/linux/key-type.h:122:43: error: 'ENOKEY' undeclared (first use in this function)
include/linux/key-type.h:122:43: note: each undeclared identifier is reported only once for each fun

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
include/linux/key-type.h