Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752111AbdFVMFA (ORCPT ); Thu, 22 Jun 2017 08:05:00 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36525 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbdFVME6 (ORCPT ); Thu, 22 Jun 2017 08:04:58 -0400 From: Arvind Yadav To: idryomov@gmail.com, sage@redhat.com, elder@kernel.org Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] block: rbd: constify rbd_attr_group and rbd_opts_tokens Date: Thu, 22 Jun 2017 17:34:14 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 37 File size before: text data bss dec hex filename 43100 2161 64 45325 b10d drivers/block/rbd.o File size After adding 'const': text data bss dec hex filename 43292 1969 64 45325 b10d drivers/block/rbd.o Signed-off-by: Arvind Yadav --- drivers/block/rbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 454bf9c..2fb1912 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -802,7 +802,7 @@ enum { Opt_err }; -static match_table_t rbd_opts_tokens = { +static const match_table_t rbd_opts_tokens = { {Opt_queue_depth, "queue_depth=%d"}, /* int args above */ /* string args above */ @@ -4670,7 +4670,7 @@ static ssize_t rbd_image_refresh(struct device *dev, NULL }; -static struct attribute_group rbd_attr_group = { +static const struct attribute_group rbd_attr_group = { .attrs = rbd_attrs, }; -- 1.9.1