From patchwork Fri Jun 8 14:55:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 10454641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 28F3E6037F for ; Fri, 8 Jun 2018 14:55:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AFAE295A4 for ; Fri, 8 Jun 2018 14:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B5462969D; Fri, 8 Jun 2018 14:55:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4B89295A4 for ; Fri, 8 Jun 2018 14:55:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751523AbeFHOzL (ORCPT ); Fri, 8 Jun 2018 10:55:11 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scylladb-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=4j077mPXsXrx+Eb/HyhwM5ZNbFZ8JfZTCdW3pP4zJTo=; b=PtJFgsjvZsWC4fJPAoMpF4WfXfX+nMpxtWzJaSsx8P1FxaK/63we1VDlHePyqBd4dV lG30eS1RZP6QkRduAyZLPcuKBVb+Vqr4oCisKM5WkO7vgSCwRdZkYUQR9J92KK+8yI4D piJ3SXl6lLQw7vdWW6Xc1k5e9eX0YcFAODZffmUVsRNI+7Ihnx8XDEiKrR/GUtdzKB2M v10xQA0jNpeGzZSYLIe8Kd39srCIWwE3KSfnjjPzcrwGj6DW84STsQEMGI/sRVvHs633 biaJz6HIofFgChNivl86RhDiMaiSlyjhB5bxBNhNn0IRHjW+J/+j4UCfdzCxDbcQ3wGs g8ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4j077mPXsXrx+Eb/HyhwM5ZNbFZ8JfZTCdW3pP4zJTo=; b=lj7WVt1RSAf2S7GUfhNrsd3NypQxyiNbLX2uk6S3rUcMF4+wThptY0VbXxQch07o9d gyaWrdsJNWMx+17X1yzvvJHaFq0OUJ3Cf+fvATfU790LDUUPLr3xPhOUQPE1/0RFu8Cw 4mbaJD8nsh/DgSH74Sgb5l04f1+F0lDQpQ4DOhZydVGceTXN5X0zPARk7+F6x1Va0Up6 NKt9YJqjkDhM4cOFCNKsFTBNkMfw388U3eqakDG7FolIfArRAVgHaQdzPV4vz2n45uG+ amcjftjtNkv8A1kjmy98aZzBIFUYkvAXpcn3xw52WkbV0i7/yrmh666I52L0dgBjC2xw 1boQ== X-Gm-Message-State: APt69E0LydKadi+K7MIbh6UaGnwC/ewndqjS0NOr5RCAgL9dmhYN/AqU tYANBJcQ+w5joJk8SVtSg2PIbg== X-Google-Smtp-Source: ADUXVKKa7DcRJKnS/tIDJUmQ6ORApYqIyxwfMFJnLI0BfmRjIOI1lGWA0ChGBNOp0Vd79Pu4hwko9w== X-Received: by 2002:a1c:dca:: with SMTP id 193-v6mr1731234wmn.36.1528469708944; Fri, 08 Jun 2018 07:55:08 -0700 (PDT) Received: from avi.cloudius-systems.com (system.cloudius-systems.com. [199.203.229.89]) by smtp.gmail.com with ESMTPSA id b14-v6sm50649945wrn.57.2018.06.08.07.55.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 07:55:07 -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> X-Mailer: git-send-email 2.14.4 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-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 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 */