[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <07f4c01f-4937-9790-703a-b2db8934ddd8@linux.vnet.ibm.com>
Date: Thu, 29 Jun 2017 15:39:45 -0700
From: Tyrel Datwyler <tyreld@...ux.vnet.ibm.com>
To: Arvind Yadav <arvind.yadav.cs@...il.com>,
tyreld@...ux.vnet.ibm.com, benh@...nel.crashing.org,
paulus@...ba.org, mpe@...erman.id.au, jejb@...ux.vnet.ibm.com,
martin.petersen@...cle.com
Cc: linux-scsi@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: ibmvfc: constify dev_pm_ops structures.
On 06/29/2017 12:54 AM, Arvind Yadav wrote:
> dev_pm_ops are not supposed to change at runtime. All functions
> working with dev_pm_ops provided by <linux/device.h> work with const
> dev_pm_ops. So mark the non-const structs as const.
>
> File size before:
> text data bss dec hex filename
> 41937 1296 20 43253 a8f5 drivers/scsi/ibmvscsi/ibmvfc.o
>
> File size After adding 'const':
> text data bss dec hex filename
> 42129 1104 20 43253 a8f5 drivers/scsi/ibmvscsi/ibmvfc.o
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
Acked-by: Tyrel Datwyler <tyreld@...ux.vnet.ibm.com>
Powered by blists - more mailing lists