summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@scylladb.com>2018-06-29 15:37:25 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-29 06:51:57 -0700
commit2cd3ae2129736f9019130064d09713a375870941 (patch)
tree376129f28e4e32923315c26d4255c31907a27be0 /include
parente88958e6369aeba48623afa18dd67fdf41c98d75 (diff)
downloadlinux-2cd3ae2129736f9019130064d09713a375870941.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/aio_abi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h
index d4e768d55d14..3c5038b587ba 100644
--- a/include/uapi/linux/aio_abi.h
+++ b/include/uapi/linux/aio_abi.h
@@ -111,7 +111,7 @@ struct iocb {
#undef IFLITTLE
struct __aio_sigset {
- sigset_t __user *sigmask;
+ const sigset_t __user *sigmask;
size_t sigsetsize;
};