Received: by 10.223.185.116 with SMTP id b49csp1131122wrg; Fri, 23 Feb 2018 12:29:00 -0800 (PST) X-Google-Smtp-Source: AH8x224ZhHd+L9bbFWtS7mWJtN1flVQhpSqGcLexa/mAbMSqecvkE9GBh8NuJzCZ8HMKYFqJ3MNF X-Received: by 10.99.50.66 with SMTP id y63mr2397402pgy.207.1519417740875; Fri, 23 Feb 2018 12:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417740; cv=none; d=google.com; s=arc-20160816; b=ICooeA1+Q7l0ekEsPvIbnHZQD+sqoUCCl2zQVw1fFGu+89lae3RtjtJemA5lifxeVU JDVua2FvPVp4T2J78D+jDEzjoyjI4b9XZZmrhM2a8820mCdQZwRZFZCTuXMzdggeMPZT BgvpxcHCBRs58K71KiTZ/J40CGGY5E2FPAJt6Y6zgWLZ62JMjeQuLlGntdj6lr8UTw8w rb6E0liMuXe4qfaZC9cFrNl/MwEjBHRF4m0pFvAFePG9ufRJYswGJ3UANvaJiv4gKVgF /gfTnm9lyhb5WsF6AAagkYOrHfuXbbren2ip4VroTqhyERVojnPYYykef46D3kU9qCdA cZ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vSF2mz1RLrlMjgB+OLcY8BtlH7oSRvTQGYETTJNqEsc=; b=JdoBCAxdtr+Fw57IWLu0uo6+Eg83MwOkEHLNrJMkPIljlOqdEGx5wyvRuvBua8eW9V Y9eDnG78zaRZpgG25ZkR0MEWO1cIh/tg0TOBEa3jOAqgUPP7quKAtL9RwlsnB39LCrW+ kKBk4twGDmHDkg7Ut+MKC0YnPpdsn8vzTxsJPWgS1wsTEKTa6JrplOgK6pN5H6QatA4c oFeoOZy0y0HKCnDplcFAZtooclZx37ztwUXkMJCaDAlIqdzfhPSqevZ6CgxBIB4Hayv0 f5b57ES1corUgmC+onBnSu6QgCGqUfUJT/cddnG4VYf3djTD6pdPRAili4mwjJm9jOKi xhsQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92-v6si2274144pli.180.2018.02.23.12.28.46; Fri, 23 Feb 2018 12:29:00 -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 S1754232AbeBWU2M (ORCPT + 99 others); Fri, 23 Feb 2018 15:28:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38180 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752798AbeBWSg4 (ORCPT ); Fri, 23 Feb 2018 13:36:56 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EB4B689C; Fri, 23 Feb 2018 18:36:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "Martin K. Petersen" Subject: [PATCH 4.4 092/193] scsi: fdomain: drop fdomain_pci_tbl when built-in Date: Fri, 23 Feb 2018 19:25:25 +0100 Message-Id: <20180223170340.422965231@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 120f83f8d6f2e2e7dea3570646722c62ecee70b0 upstream. 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 Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/fdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c @@ -1768,7 +1768,7 @@ struct scsi_host_template fdomain_driver }; #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,