fscrypt: include <linux/ioctl.h> in UAPI header
authorEric Biggers <ebiggers@google.com>
Thu, 19 Dec 2019 18:56:24 +0000 (10:56 -0800)
committerEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 16:33:51 +0000 (10:33 -0600)
<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>
include/uapi/linux/fscrypt.h

index d5112a2..0d8a6f4 100644 (file)
@@ -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 */