From patchwork Thu Jun 29 07:54:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9816197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 958FF6035F for ; Thu, 29 Jun 2017 07:55:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F75328536 for ; Thu, 29 Jun 2017 07:55:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8446328654; Thu, 29 Jun 2017 07:55:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3811F28536 for ; Thu, 29 Jun 2017 07:55:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752398AbdF2Hze (ORCPT ); Thu, 29 Jun 2017 03:55:34 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36359 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751890AbdF2Hzd (ORCPT ); Thu, 29 Jun 2017 03:55:33 -0400 Received: by mail-pg0-f65.google.com with SMTP id u36so10993759pgn.3; Thu, 29 Jun 2017 00:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=F5lCj96z1v2vO5og2kgIJ+/V7ceC2Cpe9+55MXeryLk=; b=Mg3eaA9Qyn0ClKhjrE2cTEWERLHMzSYlOALs+qrGvglDQVItDp5J4lODvhIySmVCIJ V8n02f7uwzixwNl7NSPlxAtQsUdNafG+ZPQ+RterAk+t2qu9EHnC3MZ35AMGIkZQCSG4 +z1N5+fuRi0nhN2bY8vuVOVscUwRgJjXE+TkioWxNyjlvp5WwsYv0+TvEHsuV2xwrmIX wrqVBpqWNzr/LtI+XmXZ4Oh8vE05Yg+LfHbP8wBS0W2UJUe7B1BxaI2uLoeNLIJCdyqQ o9UZhurcLfymiVWAOphzKeT/9d6ZKcSJY1Y8NUJKC0RADd59CMn77CLCPk2GiHYPm8KX o9Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=F5lCj96z1v2vO5og2kgIJ+/V7ceC2Cpe9+55MXeryLk=; b=HzDgUi+KL3AEtUroaYdttrG+C+98wfl5ZjuQl6ofI53ontgwVeiXptVvIy9IGDIj3J YjZIIcEVP1eR8jFggrsRlt7Oekt/RK8IYZTT2Za3obyPumzUKvMC0KNHEs++mON2peNc afOaLOKANc4jtujlXSUqz9pDqCjFCEzZzvkgnzYqrvQOR89brlqsk09u1HjesG+iX7mE /g3GqK5hye1q0Dsh6ZPIjytGUcQ5fRpr/f5baLVv1sB2Kr09vbw91YDEhrKMNhiKGNrJ og2GlOLQsUUZrVAdRxt94qrPHUseyyS6yhdhSe6TYSS4/cfYUv+Fl/DV2B2mYHVEc/0E 2zIg== X-Gm-Message-State: AKS2vOyMBN6AbFpj4mTR+V7ArwpjSrQ8w1mPqPVsyyzibfb2EDr8xR9U uOMxnqVLjBgPtQ== X-Received: by 10.99.62.65 with SMTP id l62mr14609731pga.106.1498722932769; Thu, 29 Jun 2017 00:55:32 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id a84sm9850030pfe.19.2017.06.29.00.55.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 00:55:32 -0700 (PDT) From: Arvind Yadav To: 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 Cc: linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: ibmvfc: constify dev_pm_ops structures. Date: Thu, 29 Jun 2017 13:24:41 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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 Acked-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 26cd3c2..cc4e05b 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -4935,7 +4935,7 @@ static unsigned long ibmvfc_get_desired_dma(struct vio_dev *vdev) }; MODULE_DEVICE_TABLE(vio, ibmvfc_device_table); -static struct dev_pm_ops ibmvfc_pm_ops = { +static const struct dev_pm_ops ibmvfc_pm_ops = { .resume = ibmvfc_resume };