Skip to content

Commit

Permalink
KEYS: linux/key-type.h needs linux/errno.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and James Morris committed Jul 30, 2012
1 parent 3b9fc37 commit 5935e6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/key-type.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define _LINUX_KEY_TYPE_H

#include <linux/key.h>
#include <linux/errno.h>

#ifdef CONFIG_KEYS

Expand Down

0 comments on commit 5935e6d

Please sign in to comment.