aio: mark __aio_sigset::sigmask const

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>
This commit is contained in:
Avi Kivity 2018-06-29 15:37:25 +02:00 committed by Linus Torvalds
parent e88958e636
commit 2cd3ae2129

View File

@ -111,7 +111,7 @@ struct iocb {
#undef IFLITTLE #undef IFLITTLE
struct __aio_sigset { struct __aio_sigset {
sigset_t __user *sigmask; const sigset_t __user *sigmask;
size_t sigsetsize; size_t sigsetsize;
}; };