Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753477AbdF2TuG (ORCPT ); Thu, 29 Jun 2017 15:50:06 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:45206 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbdF2TuB (ORCPT ); Thu, 29 Jun 2017 15:50:01 -0400 Date: Thu, 29 Jun 2017 15:49:45 -0400 (EDT) Message-Id: <20170629.154945.1255625119131638079.davem@davemloft.net> To: arvind.yadav.cs@gmail.com Cc: rmk+kernel@armlinux.org.uk, jeremy.linton@arm.com, jarod@redhat.com, nico@fluxnic.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: smc91x: constify dev_pm_ops structures. From: David Miller In-Reply-To: References: 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:07:59 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 664 Lines: 18 From: Arvind Yadav Date: Thu, 29 Jun 2017 11:21:00 +0530 > dev_pm_ops are not supposed to change at runtime. All functions > working with dev_pm_ops provided by work with const > dev_pm_ops. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 18709 401 0 19110 4aa6 drivers/net/ethernet/smsc/smc91x.o > > File size After adding 'const': > text data bss dec hex filename > 18901 201 0 19102 4a9e drivers/net/ethernet/smsc/smc91x.o > > Signed-off-by: Arvind Yadav Applied.