aio: mark __aio_sigset::sigmask const
authorAvi Kivity <avi@scylladb.com>
Fri, 29 Jun 2018 13:37:25 +0000 (15:37 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Jun 2018 13:51:57 +0000 (06:51 -0700)
io_pgetevents() will not change the signal mask.  Mark it const to make
it clear and to reduce the need for casts in user code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Avi Kivity <avi@scylladb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[hch: reapply the patch that got incorrectly reverted]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/aio_abi.h

index d4e768d55d145e4a7db55d69d2791feb0386d047..3c5038b587ba0b3ab6064d5dd8a90e2e8c6bfeae 100644 (file)
@@ -111,7 +111,7 @@ struct iocb {
 #undef IFLITTLE
 
 struct __aio_sigset {
-       sigset_t __user *sigmask;
+       const sigset_t __user   *sigmask;
        size_t          sigsetsize;
 };