Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1672579 > unrolled thread

[PATCH] block: cciss: constify cciss_host_attr_group and cciss_dev_attr_group

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-06-22 14:20 +0200
Last post2017-06-22 14:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] block: cciss: constify cciss_host_attr_group and cciss_dev_attr_group Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-22 14:20 +0200

#1672579 — [PATCH] block: cciss: constify cciss_host_attr_group and cciss_dev_attr_group

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-22 14:20 +0200
Subject[PATCH] block: cciss: constify cciss_host_attr_group and cciss_dev_attr_group
Message-ID<tV9fA-4zM-17@gated-at.bofh.it>
File size before:
   text	   data	    bss	    dec	    hex	filename
  40911	   1432	    304	  42647	   a697	drivers/block/cciss.o

File size After adding 'const':
   text	   data	    bss	    dec	    hex	filename
  41039	   1304	    304	  42647	   a697	drivers/block/cciss.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/block/cciss.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index cd37550..8932cf6 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -853,7 +853,7 @@ static ssize_t cciss_show_usage_count(struct device *dev,
 	NULL
 };
 
-static struct attribute_group cciss_host_attr_group = {
+static const struct attribute_group cciss_host_attr_group = {
 	.attrs = cciss_host_attrs,
 };
 
@@ -879,7 +879,7 @@ static ssize_t cciss_show_usage_count(struct device *dev,
 	NULL
 };
 
-static struct attribute_group cciss_dev_attr_group = {
+static const struct attribute_group cciss_dev_attr_group = {
 	.attrs = cciss_dev_attrs,
 };
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web