From: Avi Kivity Date: Fri, 29 Jun 2018 13:37:25 +0000 (+0200) Subject: aio: mark __aio_sigset::sigmask const X-Git-Tag: Ubuntu-5.2.0-15.16~4090 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2cd3ae2129736f9019130064d09713a375870941;p=mirror_ubuntu-eoan-kernel.git 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 Signed-off-by: Avi Kivity Signed-off-by: Al Viro [hch: reapply the patch that got incorrectly reverted] Signed-off-by: Christoph Hellwig Signed-off-by: Linus Torvalds --- 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; };