From patchwork Thu Feb 18 08:29:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 8347411 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 640B2C0553 for ; Thu, 18 Feb 2016 08:29:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9382B20386 for ; Thu, 18 Feb 2016 08:29:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C06D0202E6 for ; Thu, 18 Feb 2016 08:29:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425421AbcBRI3Y (ORCPT ); Thu, 18 Feb 2016 03:29:24 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34861 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424633AbcBRI3W (ORCPT ); Thu, 18 Feb 2016 03:29:22 -0500 Received: by mail-pf0-f174.google.com with SMTP id c10so28229068pfc.2; Thu, 18 Feb 2016 00:29:22 -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=9wNCkTvobia7f+YF2H+DFMm4qnIKk2qFJuyoixZSFIg=; b=MC7HWNSan3R9Ahe6HteCLPO31VlBXBdGPA6+pBZFfxPhLhH3ktT7N6pK3OWiEh57jO YGDZJyyy5aikJxMGjU4v7xiNgMYCAlqVYiTGNxqTNADm37+4waveNpvfTkU/7S13DJs4 nbrBayOJQ/Qb9B7ysPG/+4/3wJY6JOok8Fk0x7A8sF3khyu4UDgqEkoeU8z3ztx7V7sQ b/bqrDMC5rLM1eakGQnJFVY2o4DtsYnLD8Avbry3lebfzblvGu5HkOGyC8lx2BH/uE3m qUPaGC5v1XhyLusg8C/0jV4tQoTYElDsFBaA01jaEryxiMWJ9K3yBiIK+qBLwyxHU6Ni 7/7g== 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=9wNCkTvobia7f+YF2H+DFMm4qnIKk2qFJuyoixZSFIg=; b=ZlHs1rpysVmEH2GQsFSvDTGsurnWPmxdX5wbqU+nyiVlXiANcVRYlJlwGdPW3F0sP/ P61qclyL8WLbaVt7ZBRa3PRQiV46os6xDDewfEfGDJsmYZOKa7RFRN0gjip5lJ7ND2n2 hapa4B/1LKEDWCmmqDi9Vw4yLVHmifyPYFQTnZc4uTKKTI5pmkP7NaBraJpKM7BIra3Q KwYt61r7UqJskiquifunHEAn208ZLgTMqUWIKIuz5Higqb3To8qYjVD+VPMj2hal5kmU MMKWNNCVb3gi0/IvddBAuQQ3N6eaj96J9YgAkT1HLaOzYqsTv3Nzlhv/0y2ptkmkOqYy eOnQ== X-Gm-Message-State: AG10YORnEDcfiDhCJ4N7lxHqxsX5k6ktLZgzvUHq19nJovv1gN/XKGZF9RjYO2uxndjjMg== X-Received: by 10.98.42.150 with SMTP id q144mr2842180pfq.73.1455784162275; Thu, 18 Feb 2016 00:29:22 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([14.195.230.33]) by smtp.gmail.com with ESMTPSA id d8sm8114609pas.14.2016.02.18.00.29.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 00:29:21 -0800 (PST) From: Sudip Mukherjee To: Adaptec OEM Raid Solutions , "Martin K. Petersen" Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Johannes Thumshirn , Sudip Mukherjee Subject: [PATCH RESEND] dpt_i2o: fix build warning Date: Thu, 18 Feb 2016 13:59:13 +0530 Message-Id: <1455784153-9615-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 We were getting build warning about: drivers/scsi/dpt_i2o.c:183:29: warning: 'dptids' defined but not used dptids[] is only used in the MODULE_DEVICE_TABLE so when MODULE is not defined then dptids[] becomes unused. Reviewed-by: Johannes Thumshirn Signed-off-by: Sudip Mukherjee --- Resending v1 as v2 had a NACK from Alan about the spec not maintained while converting to pci driver. drivers/scsi/dpt_i2o.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index d4cda5e..21c8d21 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c @@ -180,11 +180,14 @@ static u8 adpt_read_blink_led(adpt_hba* host) *============================================================================ */ +#ifdef MODULE static struct pci_device_id dptids[] = { { PCI_DPT_VENDOR_ID, PCI_DPT_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { PCI_DPT_VENDOR_ID, PCI_DPT_RAPTOR_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { 0, } }; +#endif + MODULE_DEVICE_TABLE(pci,dptids); static int adpt_detect(struct scsi_host_template* sht)