From patchwork Wed Jan 27 15:57:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101066 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2663652lbb; Wed, 27 Jan 2016 07:58:47 -0800 (PST) X-Received: by 10.66.234.200 with SMTP id ug8mr43924602pac.129.1453910327008; Wed, 27 Jan 2016 07:58:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qc8si10254213pac.39.2016.01.27.07.58.46; Wed, 27 Jan 2016 07:58:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934001AbcA0P6o (ORCPT + 30 others); Wed, 27 Jan 2016 10:58:44 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:57171 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933603AbcA0P6b (ORCPT ); Wed, 27 Jan 2016 10:58:31 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0MFcG5-1aLQ5U27sL-00EdqW; Wed, 27 Jan 2016 16:57:53 +0100 From: Arnd Bergmann To: "Martin K. Petersen" , James.Bottomley@HansenPartnership.com Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-scsi@vger.kernel.org, "James E.J. Bottomley" , Rik Faith , linux-kernel@vger.kernel.org Subject: [PATCH 1/7] scsi: fdomain: drop fdomain_pci_tbl when built-in Date: Wed, 27 Jan 2016 16:57:17 +0100 Message-Id: <1453910247-3447628-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453910247-3447628-1-git-send-email-arnd@arndb.de> References: <1453910247-3447628-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:BNNrh3tWSgrqPGiWaBhENYfLn50HUmSb2AmRGdmlBKhOBNdlWhL 1tbaKHAGAN+3yMFHIT1x2kpAGXpusCuN/kFHNZXJCtHRUxox7Oj41Tlga5JlA79kVC75eVo +WxAlf7oDxHFBla5ESS7LBe/HdO69+yws75MpQz/Dd4cOLnhovQeqc2fJIFCIiafNPGMQHs aPMB2QjVKiMLgjsSM+f0w== X-UI-Out-Filterresults: notjunk:1; V01:K0:XkHnGXjgJ10=:JR5hyMUwaut/yUrBOT2dKv Ul0KEj0h8GMEQ2DPuIz89MNx4t0H56ej0vrrnjIiA7TW7IFAUbXZcmVzAgVWyPnzKVHXidJPp KYDXO5oVj6gHueU+KVMUQBDeoXrtsRy9AzlpGhqxDBbKND5JO83GH940PY5J18wQJFSsuvWpZ rFku8rMAoaCihnAo5Qyi5QCWvSc/1aSK6lk8vJcz3L4lkm/rTsdDcyyopYEJMcP+n2BQAMGm/ w7WQopLsRiyF+H2j9UQ+ejrpc2pmvU5qPaiyvPWDPU4i/U/+He9k7YE5p0NFWbI8Nj25gYox/ e7CAcH4ZmNOtahPJTVoMunOD32BSjDyvnclXPli207QIirc6CEgXUKNltzLy7MGZHetjOn2Mu 87RAWKIVELV9kF5BtU/3pHQ3B9KN3mG4iK3LEBJbxKPt536ks9WMYWVYBtC1W28qmb3AHZ/wd cilw+9cRnkmgV38ks64Wcn89oUSqBF5Rrp5MhYpMbw4GqI0yu1sVqzUVPw35EiYIAJXG8YN6X x3qdq7QW0wAT1buuBBSakbSX9Ml0S0QjNlxqDvEb8/gi0ZNBJzKUqPDfF9yiPUxq3zXeeoB6e 3+QAJh9J/XFCSTVeIb85u9Dt+TlmNLSlkCOqj7/3yPwkJmItPCBEtBD1sSDkqBtzRxFSLqSiJ U9YhBvyOqC6xqx1whpDWh8hDuSlkjKw7AStN4kIS1XQaH8IjltxwsWBXzd3ywkUc/OUo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The fdomain SCSI host driver is one of the last remaining drivers that manually search the PCI bus using pci_get_device rather than registering a pci_driver instance. This means the module device table is unused when the driver is built-in, and we get a warning about it: drivers/scsi/fdomain.c:1773:29: warning: 'fdomain_pci_tbl' defined but not used [-Wunused-variable] To avoid the warning, this adds another #ifdef around the table definition. Signed-off-by: Arnd Bergmann --- drivers/scsi/fdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index eefe14d453db..b87ab38a4530 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c @@ -1768,7 +1768,7 @@ struct scsi_host_template fdomain_driver_template = { }; #ifndef PCMCIA -#ifdef CONFIG_PCI +#if defined(CONFIG_PCI) && defined(MODULE) static struct pci_device_id fdomain_pci_tbl[] = { { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70,