[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180629133725.17606-3-hch@lst.de>
Date: Fri, 29 Jun 2018 15:37:25 +0200
From: Christoph Hellwig <hch@....de>
To: torvalds@...ux-foundation.org
Cc: viro@...iv.linux.org.uk, netdev@...r.kernel.org,
linux-fsdevel@...r.kernel.org, Avi Kivity <avi@...lladb.com>
Subject: [PATCH 2/2] aio: mark __aio_sigset::sigmask const
From: Avi Kivity <avi@...lladb.com>
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@....de>
Signed-off-by: Avi Kivity <avi@...lladb.com>
Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
[hch: reapply the patch that got incorrectly reverted]
Signed-off-by: Christoph Hellwig <hch@....de>
---
include/uapi/linux/aio_abi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
};
--
2.18.0
Powered by blists - more mailing lists