From patchwork Mon Oct 16 15:18:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 10008665 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 658B5601D5 for ; Mon, 16 Oct 2017 15:21:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56DF7285FE for ; Mon, 16 Oct 2017 15:21:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AE042862C; Mon, 16 Oct 2017 15:21: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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 F1BE328595 for ; Mon, 16 Oct 2017 15:21:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753531AbdJPPUp (ORCPT ); Mon, 16 Oct 2017 11:20:45 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:47631 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbdJPPTv (ORCPT ); Mon, 16 Oct 2017 11:19:51 -0400 Received: by mail-wm0-f68.google.com with SMTP id t69so4462988wmt.2; Mon, 16 Oct 2017 08:19:49 -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:in-reply-to:references; bh=A9dPiZ+fQ32jhNQ5UKark0PSddny0jl+eND9l93P4RI=; b=nxnEfRSIK/wGCpsUjSDCUo5NkApssNY1fcrC4Dah8uLy7YeuwqS6VvovbmiVrk/fTu 4L2xiTh5FggOF80DteMrbiDybiZKf19R7pZa0eY29ps1wSI9BS03uuk//cnbSNC+MysJ lQqE+s+Yh8PbjNGSxJlB89v29d1VbhPIS2mLLdlhFknkqaFEigg5Q00dajaP/U41tG9g kJ+sfwcLumpU+R3MfhTsc99WJosrSfb/zhWhR9yk7xCe/jOFSzUvC3VD/LXT7k1n/k4n W0OVF6NqAljd4mRekZDk/1fHPY44/uth9OE3kBgPn4fODRJVmk9gNytpxtDv3z6D5z+h qsFg== 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:in-reply-to :references; bh=A9dPiZ+fQ32jhNQ5UKark0PSddny0jl+eND9l93P4RI=; b=UF0XrFHw6wcb7RBO7xTmO4hnPjYfYBA3LQPMLQTlTS9CbNbMBmIwzxjx5bDym8iGOa s2AqbysHaJCPVaepbKlAWQWaLE/WhhAO/fnhBjV9ByoOI0DfoKM3yEoBkhqvM9SSPrVP GnojARc+nazC57LbiIO89scL2k5TuLgbYABHo/rlsLfixR3sGbVjBT339O6aOEXJk8xu uXg6OLpDJj82em/+OHobaVP4OPfPAkkvdBC3A+pLx3sCnmA+iq/jOZIIzmO8GN9okBz5 EcMqwKTcqs8XYjWVSW2JEKWJua3CcnIj+Hrt3WocHpBniAFMBXOAkrfnQOdqojScCYOi 5Qgg== X-Gm-Message-State: AMCzsaWzawF4LDaw4ATD9A6fsDyGXRBkjH9wQRriq1+rRze+rNOg7VcD pMTKMFy5xg8dwSxVSpmUc1I= X-Google-Smtp-Source: ABhQp+SRavBMl8/pxWnUcEdTzM/JNNq2kcse9SX6hhLCivpkWZVWPaEjHVi8LwfxpUmrTyXlAkQqgQ== X-Received: by 10.223.160.141 with SMTP id m13mr848488wrm.35.1508167188338; Mon, 16 Oct 2017 08:19:48 -0700 (PDT) Received: from gmail.com (dell-goyal.wifi.rsr.lip6.fr. [132.227.77.190]) by smtp.gmail.com with ESMTPSA id s70sm8167553wrc.83.2017.10.16.08.19.45 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Oct 2017 08:19:47 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 16 Oct 2017 17:19:45 +0200 From: Bhumika Goyal To: julia.lawall@lip6.fr, rjw@rjwysocki.net, lenb@kernel.org, alexander.shishkin@linux.intel.com, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com, hch@lst.de, sagi@grimberg.me, kishon@ti.com, bhelgaas@google.com, nab@linux-iscsi.org, balbi@kernel.org, gregkh@linuxfoundation.org, laurent.pinchart@ideasonboard.com, jlbec@evilplan.org, ccaulfie@redhat.com, teigland@redhat.com, mfasheh@versity.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-usb@vger.kernel.org, cluster-devel@redhat.com, ocfs2-devel@oss.oracle.com, linux-fsdevel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH v2 14/15] dlm: make config_item_type const Date: Mon, 16 Oct 2017 17:18:53 +0200 Message-Id: <1508167134-6243-15-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508167134-6243-1-git-send-email-bhumirks@gmail.com> References: <1508167134-6243-1-git-send-email-bhumirks@gmail.com> 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 Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- * Changes in v2- Combine all the followup patches and the constification patches into a series. fs/dlm/config.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 7211e82..1270551 100644 --- a/fs/dlm/config.c +++ b/fs/dlm/config.c @@ -282,44 +282,44 @@ struct dlm_node { .release = release_node, }; -static struct config_item_type clusters_type = { +static const struct config_item_type clusters_type = { .ct_group_ops = &clusters_ops, .ct_owner = THIS_MODULE, }; -static struct config_item_type cluster_type = { +static const struct config_item_type cluster_type = { .ct_item_ops = &cluster_ops, .ct_attrs = cluster_attrs, .ct_owner = THIS_MODULE, }; -static struct config_item_type spaces_type = { +static const struct config_item_type spaces_type = { .ct_group_ops = &spaces_ops, .ct_owner = THIS_MODULE, }; -static struct config_item_type space_type = { +static const struct config_item_type space_type = { .ct_item_ops = &space_ops, .ct_owner = THIS_MODULE, }; -static struct config_item_type comms_type = { +static const struct config_item_type comms_type = { .ct_group_ops = &comms_ops, .ct_owner = THIS_MODULE, }; -static struct config_item_type comm_type = { +static const struct config_item_type comm_type = { .ct_item_ops = &comm_ops, .ct_attrs = comm_attrs, .ct_owner = THIS_MODULE, }; -static struct config_item_type nodes_type = { +static const struct config_item_type nodes_type = { .ct_group_ops = &nodes_ops, .ct_owner = THIS_MODULE, }; -static struct config_item_type node_type = { +static const struct config_item_type node_type = { .ct_item_ops = &node_ops, .ct_attrs = node_attrs, .ct_owner = THIS_MODULE,