From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:50340 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932078AbeF2Nhm (ORCPT ); Fri, 29 Jun 2018 09:37:42 -0400 From: Christoph Hellwig To: torvalds@linux-foundation.org Cc: viro@zeniv.linux.org.uk, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, Avi Kivity Subject: [PATCH 2/2] aio: mark __aio_sigset::sigmask const Date: Fri, 29 Jun 2018 15:37:25 +0200 Message-Id: <20180629133725.17606-3-hch@lst.de> In-Reply-To: <20180629133725.17606-1-hch@lst.de> References: <20180629133725.17606-1-hch@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: 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. 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 --- 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