aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-12-19 10:56:24 -0800
committerEric Biggers <ebiggers@google.com>2019-12-31 10:33:51 -0600
commite933adde6f97c4b51d39250c1dad0e89bd3fb1c7 (patch)
tree9a76609dc6538dfc11c18a2c5a8970414a37e8f8
parentfscrypt: don't check for ENOKEY from fscrypt_get_encryption_info() (diff)
downloadlinux-dev-e933adde6f97c4b51d39250c1dad0e89bd3fb1c7.tar.xz
linux-dev-e933adde6f97c4b51d39250c1dad0e89bd3fb1c7.zip
fscrypt: include <linux/ioctl.h> in UAPI header
<linux/fscrypt.h> defines ioctl numbers using the macros like _IOWR() which are defined in <linux/ioctl.h>, so <linux/ioctl.h> should be included as a prerequisite, like it is in many other kernel headers. In practice this doesn't really matter since anyone referencing these ioctl numbers will almost certainly include <sys/ioctl.h> too in order to actually call ioctl(). But we might as well fix this. Link: https://lore.kernel.org/r/20191219185624.21251-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
-rw-r--r--include/uapi/linux/fscrypt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/fscrypt.h b/include/uapi/linux/fscrypt.h
index d5112a24e8b9..0d8a6f47711c 100644
--- a/include/uapi/linux/fscrypt.h
+++ b/include/uapi/linux/fscrypt.h
@@ -8,6 +8,7 @@
#ifndef _UAPI_LINUX_FSCRYPT_H
#define _UAPI_LINUX_FSCRYPT_H
+#include <linux/ioctl.h>
#include <linux/types.h>
/* Encryption policy flags */