From patchwork Thu Mar 3 13:06:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 8492551 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7DDCCC0553 for ; Thu, 3 Mar 2016 13:07:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A93DD201BB for ; Thu, 3 Mar 2016 13:07:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D01AE20268 for ; Thu, 3 Mar 2016 13:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751733AbcCCNHF (ORCPT ); Thu, 3 Mar 2016 08:07:05 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34528 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbcCCNHE (ORCPT ); Thu, 3 Mar 2016 08:07:04 -0500 Received: by mail-pf0-f174.google.com with SMTP id 4so14860588pfd.1; Thu, 03 Mar 2016 05:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=kiDosAe60P1SiA55vvMXptW3WW2SpxeGAJJXYjuS5J4=; b=iwLwjw3jkeAe/WBc7zIWbJ9rNyZL1DSe1WU3sfo7Er/N9TcOdCgau7kyECvKWAqXqj Tm03eZyB9oN0Qife+SxZ9fgvWrvROhxpnISLBK96POCAxZdijNKY+0PDnM0/FBZWScs2 Mqxyf9CUVfh6isXWi6m32tzE+J6uCaQ5qXBVBtEgGOYaDLHgtSmeHRG8dLnfXw6F5yEo jTY6zMt+SY3y1iCP0DRobScSDb3Myr4Mk4w4ppb0rmmEJNopALAXFdMcbMSQAGkaShj3 nH3zhqTffGLchUxjkBZT+bLtgJusgo9vN+Qm+sRqIsuBLL+L5ng4loyAAN6ZLXZF6xLX XrWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kiDosAe60P1SiA55vvMXptW3WW2SpxeGAJJXYjuS5J4=; b=bLdnMiQCehIVgYiSRVCZ9QRstzeWqi/4+pOJF3kTd5tIkQlPPybkJQweIDt7UQn6Ca AOVyl4g6fSNN+gynuPlonhshGt4fvNiai14872VK9wmLDF+l6tZw14BpZEyKiLBsWhGt oXppnr/s8Qs4hMaGJVwBjU/6HUwiIrxCQzqJmhCHIn8+Ks6PNYe+Nym5Wrkp889QOwTj k3pmtzlpm5I45QMPoUCNwFJG1Z52w+2wYdSUqSTTBkAYjV660vh20VIo5PidnK4to0wE 2RgB94Hun2xtlBk3/fJsDDftbgKr3JV0IP1g/w/X9FhjYSG1z5gZ5FhWsRLfIAVokeV3 yqiA== X-Gm-Message-State: AD7BkJIxxlH8JoEQbYTNT8KtCxNulP+bn0etWu6+C+LGSmnMKC5da2iVKcJ/9wEYoHjHig== X-Received: by 10.98.34.13 with SMTP id i13mr3575251pfi.26.1457010423200; Thu, 03 Mar 2016 05:07:03 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([14.195.231.152]) by smtp.gmail.com with ESMTPSA id 144sm60595704pfa.83.2016.03.03.05.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Mar 2016 05:07:02 -0800 (PST) From: Sudip Mukherjee To: "Martin K. Petersen" Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] mvumi: fix build warning Date: Thu, 3 Mar 2016 18:36:53 +0530 Message-Id: <1457010413-12809-1-git-send-email-sudipm.mukherjee@gmail.com> 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-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP While building tilepro allmodconfig we were getting build warning: drivers/scsi/mvumi.c:2632:12: warning: 'mvumi_suspend' defined but not used drivers/scsi/mvumi.c:2651:12: warning: 'mvumi_resume' defined but not used mvumi_suspend() and mvumi_resume() are only used when CONFIG_PM is defined as mentioned in the mvumi_pci_driver. Signed-off-by: Sudip Mukherjee --- drivers/scsi/mvumi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 02360de..d9d0736 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2629,6 +2629,7 @@ static void mvumi_shutdown(struct pci_dev *pdev) mvumi_flush_cache(mhba); } +#ifdef CONFIG_PM static int mvumi_suspend(struct pci_dev *pdev, pm_message_t state) { struct mvumi_hba *mhba = NULL; @@ -2716,6 +2717,7 @@ fail: return ret; } +#endif static struct pci_driver mvumi_pci_driver = {