From patchwork Thu Jun 29 07:43:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9816187 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 C3533603D7 for ; Thu, 29 Jun 2017 07:44:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B84CB28654 for ; Thu, 29 Jun 2017 07:44:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA1482867D; Thu, 29 Jun 2017 07:44:52 +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 89A3828654 for ; Thu, 29 Jun 2017 07:44:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751741AbdF2Hot (ORCPT ); Thu, 29 Jun 2017 03:44:49 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:32814 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbdF2Hos (ORCPT ); Thu, 29 Jun 2017 03:44:48 -0400 Received: by mail-pf0-f195.google.com with SMTP id e199so12080102pfh.0; Thu, 29 Jun 2017 00:44:48 -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=Nbt0oPcNqpGXq28x54VPV5U+R5nGrSO/lITOEIT5m44=; b=SSuk1cLFHp4vrozbecgQcMtg5Mqa3Tbjff1YMvaxxsDCIp5Cac4THIb6nh6StIFwqt ryRRu34ksa/GfMPCCBGK+KCj9yDMBs8nFzArgzKuiNpXIqO85yPztF0npeXREP0+1tcd Celb028a2xyN1/fiTIcOiluXvpI2jjA/W7C/moDmm/MKZeeMzTA24Uy6KueQmp2t3ykb BWjmWfSPYcqTIYmIOEbHifO1k6nF821ScS/q82JaJ1FGqFRGCHvtd3+3uV0eyrzWARUB hEbNp5Vt3B8tVxECrvnRhhBmWW5Mq+nXkuIXNl1OsiNnZcqV6snE+JaERgtaPd71dwga gxbA== 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=Nbt0oPcNqpGXq28x54VPV5U+R5nGrSO/lITOEIT5m44=; b=cvwXHLjbtDp03I8LuUVmNtrxV/Of1pzLkIsebbzpJXpzaKh0038fee421xMiou+8YM GZz/g7PdLeZ6zxM1yJ9ShNGEovgzpfgiFDHJ74FpqxzXBKBuvT8YEt6fe744rY5tn/EW +d5wmun8P2nw+s5SqmcUpRlrIgYu3wl5KGD6/4Hcq8fIGo/X0bmkF2PlEv3qsYbsgOJr gA1/RAhdT1tb18s6sOQbBumRH2P06WtkJ8AaReM12Z6HpMD16WjRjreoMO/gUktYJ6S7 7psGyNVzG/BZZUyCWEwVAvepw8+h9L6RdtUkyhg0OtAaEZ1AnDtG1HkA/W1SXG2KXlLv I4RQ== X-Gm-Message-State: AKS2vOwNN3OI/R1l1GoyIh2YHk3EfVhTWTCR+1n9/bE0/kft65jqL7hH PGormdsbhOIlIAyxlXU= X-Received: by 10.84.199.170 with SMTP id r39mr16496758pld.204.1498722287649; Thu, 29 Jun 2017 00:44:47 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id e124sm10154716pfc.76.2017.06.29.00.44.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 00:44:46 -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: ibmvscsi: constify dev_pm_ops structures. Date: Thu, 29 Jun 2017 13:13:55 +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 17956 1456 8 19420 4bdc drivers/scsi/ibmvscsi/ibmvscsi.o File size After adding 'const': text data bss dec hex filename 18164 1264 8 19436 4bec drivers/scsi/ibmvscsi/ibmvscsi.o Signed-off-by: Arvind Yadav Acked-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index 1deb0a9..da22b36 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.c +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c @@ -2336,7 +2336,7 @@ static int ibmvscsi_resume(struct device *dev) }; MODULE_DEVICE_TABLE(vio, ibmvscsi_device_table); -static struct dev_pm_ops ibmvscsi_pm_ops = { +static const struct dev_pm_ops ibmvscsi_pm_ops = { .resume = ibmvscsi_resume };