Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751815AbdFVLtl (ORCPT ); Thu, 22 Jun 2017 07:49:41 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33609 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750852AbdFVLtk (ORCPT ); Thu, 22 Jun 2017 07:49:40 -0400 From: Arvind Yadav To: gregkh@linuxfoundation.org, rafael.j.wysocki@intel.com, daniel.lezcano@linaro.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] PM / CPU: constify *_attribute_group. Date: Thu, 22 Jun 2017 17:18:53 +0530 Message-Id: <8ad16095d917701dfaab6c4f2aeacb6e929e09f0.1498131980.git.arvind.yadav.cs@gmail.com> 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: 1066 Lines: 37 File size before: text data bss dec hex filename 2280 776 4 3060 bf4 drivers/base/cpu.o File size After adding 'const': text data bss dec hex filename 2384 648 4 3036 bdc drivers/base/cpu.o Signed-off-by: Arvind Yadav --- drivers/base/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 2c3b359..d61e96b 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -176,7 +176,7 @@ static ssize_t show_crash_notes_size(struct device *dev, NULL }; -static struct attribute_group crash_note_cpu_attr_group = { +static const struct attribute_group crash_note_cpu_attr_group = { .attrs = crash_note_cpu_attrs, }; #endif @@ -469,7 +469,7 @@ struct device *cpu_device_create(struct device *parent, void *drvdata, NULL }; -static struct attribute_group cpu_root_attr_group = { +static const struct attribute_group cpu_root_attr_group = { .attrs = cpu_root_attrs, }; -- 1.9.1