From: Avi Kivity Date: Fri, 8 Jun 2018 14:55:05 +0000 (+0300) Subject: aio: mark __aio_sigset::sigmask const X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=94aefd32f431a2c15f9d2c5f8f19dece73a77b52;p=openwrt%2Fstaging%2Fblogic.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 --- diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h index 75846164290e..d00221345c19 100644 --- a/include/uapi/linux/aio_abi.h +++ b/include/uapi/linux/aio_abi.h @@ -109,7 +109,7 @@ struct iocb { #undef IFLITTLE struct __aio_sigset { - sigset_t __user *sigmask; + const sigset_t __user *sigmask; size_t sigsetsize; };