OSDN Git Service

fs: remove the HAVE_UNLOCKED_IOCTL and HAVE_COMPAT_IOCTL defines
authorChristoph Hellwig <hch@lst.de>
Sat, 20 Jun 2020 07:16:38 +0000 (09:16 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jun 2020 15:16:02 +0000 (09:16 -0600)
These are not defined anywhere, and contrary to the comments we really
do not care about out of tree code at all.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h

index 0d282c8..224edcc 100644 (file)
@@ -1774,12 +1774,6 @@ struct dir_context {
        loff_t pos;
 };
 
-/* These macros are for out of kernel modules to test that
- * the kernel supports the unlocked_ioctl and compat_ioctl
- * fields in struct file_operations. */
-#define HAVE_COMPAT_IOCTL 1
-#define HAVE_UNLOCKED_IOCTL 1
-
 /*
  * These flags let !MMU mmap() govern direct device mapping vs immediate
  * copying more easily for MAP_PRIVATE, especially for ROM filesystems.