[<prev] [next>] [day] [month] [year] [list]
Message-Id: <27ffc54ef2739d5a125ade7ab26342ba63ad95ba.1498117578.git.arvind.yadav.cs@gmail.com>
Date: Thu, 22 Jun 2017 13:26:08 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: joro@...tes.org
Cc: iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: [PATCH] iommu: amd_iommu_init: constify amd_iommu_group.
File size before:
text data bss dec hex filename
14323 1840 353 16516 4084 drivers/iommu/amd_iommu_init.o
File size After adding 'const':
text data bss dec hex filename
14379 1776 353 16508 407c drivers/iommu/amd_iommu_init.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/iommu/amd_iommu_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index 5a11328..41a66ae 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -1532,7 +1532,7 @@ static ssize_t amd_iommu_show_features(struct device *dev,
NULL,
};
-static struct attribute_group amd_iommu_group = {
+static const struct attribute_group amd_iommu_group = {
.name = "amd-iommu",
.attrs = amd_iommu_attrs,
};
--
1.9.1
Powered by blists - more mailing lists