Skip to content

Commit 5935e6d

Browse files
dhowellsJames Morris
authored andcommitted
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>
1 parent 3b9fc37 commit 5935e6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/key-type.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define _LINUX_KEY_TYPE_H
1414

1515
#include <linux/key.h>
16+
#include <linux/errno.h>
1617

1718
#ifdef CONFIG_KEYS
1819

0 commit comments

Comments
 (0)