Return-Path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:40526 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbeFHOzK (ORCPT ); Fri, 8 Jun 2018 10:55:10 -0400 Received: by mail-wm0-f68.google.com with SMTP id n5-v6so4264290wmc.5 for ; Fri, 08 Jun 2018 07:55:09 -0700 (PDT) From: Avi Kivity To: Alexander Viro Cc: Benjamin LaHaise , linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-kernel@vger.kernel.org, hch@lst.de Subject: [PATCH v1] aio: mark __aio_sigset::sigmask const Date: Fri, 8 Jun 2018 17:55:05 +0300 Message-Id: <20180608145505.29063-1-avi@scylladb.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- 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 ed0185945bb2..cdf115b03761 100644 --- a/include/uapi/linux/aio_abi.h +++ b/include/uapi/linux/aio_abi.h @@ -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 */ -- 2.14.4