Message ID | 20170622183347.48799-1-ebiggers3@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> 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 67ABE603F2 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 26 Jun 2017 08:07:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7521222A68 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 26 Jun 2017 08:07:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6732D28161; Mon, 26 Jun 2017 08:07:18 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB78E22A68 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 26 Jun 2017 08:07:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3FD033D945; Mon, 26 Jun 2017 08:07:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3FD033D945 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3FD033D945 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EiJcbL7e" Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 66CDA71D57; Mon, 26 Jun 2017 08:07:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 520241841C41; Mon, 26 Jun 2017 08:07:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v5MIY8Eg009183 for <dm-devel@listman.util.phx.redhat.com>; Thu, 22 Jun 2017 14:34:08 -0400 Received: by smtp.corp.redhat.com (Postfix) id 571325D968; Thu, 22 Jun 2017 18:34:08 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74A2F5D964; Thu, 22 Jun 2017 18:34:04 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 82C95AB460; Thu, 22 Jun 2017 18:34:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 82C95AB460 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=ebiggers3@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 82C95AB460 Received: by mail-pg0-f65.google.com with SMTP id f127so3460067pgc.2; Thu, 22 Jun 2017 11:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=uSDjJT/qS/pY6WTI6oYRnlmSi1l9pGtYIF7TSBKEM5Q=; b=EiJcbL7epk94+HcLlTgF5lbXZ+3Xi9hnkmshWkqYn9r0DgNtksRbl3zZyWiB/36Aqc ulB9uvkJsNE7p/QFeMAsvz0vxgYeR6Xr1TQExsLIfJ26BiVIXoKzc/yL4LxcfJSStJ7x CD5qyxzrjx+NEVo5/6l4qHkVH9zk2tb5cjpx7slGVPCxiSWCb9qWFSsnWGY+TVfoE5fo JOz2uim8CciJy3/4xdVsbG48LyOBa52sMcwTVL+HKzko+n1wRqmTmH7Un2CTalSMgswE kygjCTFhRvJn7amgRP5Ox0t4o9GslYNbr2OAQJjY67veCmT+5DYS+EqT+1EpZHkDPl54 bitg== 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=uSDjJT/qS/pY6WTI6oYRnlmSi1l9pGtYIF7TSBKEM5Q=; b=o0x4rBNNYCMJ7P3s+qgO+vsKPNmmLbP9qpyR/7nrML6assNlqnEYjxVC/ftB4Di/a5 605PTbyLJ1lqRYUIKPLs6bYPOTCOV0RdTjqR4npZ86ETlJxvGsMAYd9IurhLaJLQECMY 60dX7Jc309i8ZDxlpbdmJXRodC8Lv41Tggqzy84Q+iQo507dB8IYTap8Kb8n8P+rQbrr 5dZeXBjfEjHqrNSAPfrJJBxy9FhY6VDHb0kACuh+SkJDciEg+vu04TRqaVAKcp9Jfpcq TbKs5YQSgu68i67C1rQGz7qmgiY/5+JTi+HYW1AKIsrsYUykKapAyp9xRy1lJ9AWysMZ WKRQ== X-Gm-Message-State: AKS2vOxJuM4LTLpCgPDTArKVLAFttRJojQMwQOuTNbDA4AtUF4FBtj3w wntmiL5+nNm51c62DcA= X-Received: by 10.98.206.202 with SMTP id y193mr4021158pfg.108.1498156442747; Thu, 22 Jun 2017 11:34:02 -0700 (PDT) Received: from ebiggers-linuxstation.kir.corp.google.com ([100.66.174.81]) by smtp.gmail.com with ESMTPSA id k11sm5407821pfj.48.2017.06.22.11.34.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 11:34:02 -0700 (PDT) From: Eric Biggers <ebiggers3@gmail.com> To: dm-devel@redhat.com Date: Thu, 22 Jun 2017 11:33:47 -0700 Message-Id: <20170622183347.48799-1-ebiggers3@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 22 Jun 2017 18:34:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 22 Jun 2017 18:34:03 +0000 (UTC) for IP:'74.125.83.65' DOMAIN:'mail-pg0-f65.google.com' HELO:'mail-pg0-f65.google.com' FROM:'ebiggers3@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.92 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.83.65 mail-pg0-f65.google.com 74.125.83.65 mail-pg0-f65.google.com <ebiggers3@gmail.com> X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Mon, 26 Jun 2017 04:00:21 -0400 Cc: Mike Snitzer <snitzer@redhat.com>, Alasdair Kergon <agk@redhat.com>, Eric Biggers <ebiggers@google.com> Subject: [dm-devel] [PATCH] dm ioctl: constify ioctl lookup table X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 26 Jun 2017 08:07:17 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 41852ae287a5..8e9a1eff25d3 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1604,7 +1604,7 @@ static int target_message(struct dm_ioctl *param, size_t param_size) *---------------------------------------------------------------*/ static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags) { - static struct { + static const struct { int cmd; int flags; ioctl_fn fn;