Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752305AbdGAVGH (ORCPT ); Sat, 1 Jul 2017 17:06:07 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:46930 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751996AbdGAVGG (ORCPT ); Sat, 1 Jul 2017 17:06:06 -0400 To: Arvind Yadav Cc: tyreld@linux.vnet.ibm.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: ibmvfc: constify dev_pm_ops structures. From: "Martin K. Petersen" Organization: Oracle Corporation References: Date: Sat, 01 Jul 2017 17:05:40 -0400 In-Reply-To: (Arvind Yadav's message of "Thu, 29 Jun 2017 13:24:41 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 287 Lines: 11 Arvind, > 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. Applied to 4.13/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering