Skip to contentSkip to conversation

aio: mark __aio_sigset::sigmask const

PATCH In review Avi Kivity 2 participants 3 messages Jun 8, 2018 – Jun 14, 2018 VFS

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

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.

---
 include/uapi/linux/aio_abi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/aio_abi.h +1 -1
index ed0185945bb2..cdf115b03761 100644
@@ -106,11 +106,11 @@ struct iocb {
 
 #undef IFBIG
 #undef IFLITTLE
 
 struct __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
#2 lore raw
In reply to Avi Kivity
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.

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
index ed0185945bb2..cdf115b03761 100644
@@ -106,11 +106,11 @@ struct iocb {
 
 #undef IFBIG
 #undef IFLITTLE
 
 struct __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---