lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 22 Jun 2017 17:18:53 +0530
From:   Arvind Yadav <arvind.yadav.cs@...il.com>
To:     gregkh@...uxfoundation.org, rafael.j.wysocki@...el.com,
        daniel.lezcano@...aro.org
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] PM / CPU: constify *_attribute_group.

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 <arvind.yadav.cs@...il.com>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ