aio: mark __aio_sigset::sigmask const
PATCH 1/1 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.
Signed-off-by Avi Kivity <[email protected]>
--- include/uapi/linux/aio_abi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/aio_abi.h +1 -1
@@ -106,11 +106,11 @@ struct iocb {#undef IFBIG#undef IFLITTLEstruct __aio_sigset { -sigset_t __user *sigmask; +const sigset_t __user *sigmask;size_t sigsetsize; };#endif /* __LINUX__AIO_ABI_H */
Signature · 1 line
2.14.4
Quoted 4 lines · Avi Kivity
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.Signed-off-by Avi Kivity <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>
Quoted 4 lines · Avi Kivity
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.Signed-off-by Avi Kivity <[email protected]>
Al, can you pick this one and the masking fix before -rc1?
Quoted 23 lines
--- include/uapi/linux/aio_abi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/linux/aio_abi.h +1
-1@@ -106,11 +106,11 @@ struct iocb {#undef IFBIG#undef IFLITTLEstruct __aio_sigset { -sigset_t __user *sigmask; +const sigset_t __user *sigmask;size_t sigsetsize; };#endif /* __LINUX__AIO_ABI_H */ Signature · 1 line
2.14.4
---end quoted text---