From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753378AbdF2TuL (ORCPT ); Thu, 29 Jun 2017 15:50:11 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:45226 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbdF2TuJ (ORCPT ); Thu, 29 Jun 2017 15:50:09 -0400 Date: Thu, 29 Jun 2017 15:49:57 -0400 (EDT) Message-Id: <20170629.154957.2190147576942103077.davem@davemloft.net> To: arvind.yadav.cs@gmail.com Cc: jasowang@redhat.com, mingo@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: constify attribute_group structures. From: David Miller In-Reply-To: <7e920337fab72cc388b20ac95c2e198b84145483.1498733815.git.arvind.yadav.cs@gmail.com> References: <7e920337fab72cc388b20ac95c2e198b84145483.1498733815.git.arvind.yadav.cs@gmail.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 29 Jun 2017 12:08:12 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arvind Yadav Date: Thu, 29 Jun 2017 16:31:26 +0530 > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 9968 3168 16 13152 3360 net/core/net-sysfs.o > > File size After adding 'const': > text data bss dec hex filename > 10160 2976 16 13152 3360 net/core/net-sysfs.o > > Signed-off-by: Arvind Yadav Applied.