]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
aio: mark __aio_sigset::sigmask const
authorAvi Kivity <avi@scylladb.com>
Fri, 8 Jun 2018 14:55:05 +0000 (17:55 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 15 Jun 2018 00:06:19 +0000 (20:06 -0400)
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>
include/uapi/linux/aio_abi.h

index 75846164290e9acaa9b2fbead09bdebc5422104c..d00221345c1988ff59de79f47401903d560c55e0 100644 (file)
@@ -109,7 +109,7 @@ struct iocb {
 #undef IFLITTLE
 
 struct __aio_sigset {
-       sigset_t __user *sigmask;
+       const sigset_t __user   *sigmask;
        size_t          sigsetsize;
 };