Received: by 10.223.185.116 with SMTP id b49csp1130250wrg; Fri, 23 Feb 2018 12:27:58 -0800 (PST) X-Google-Smtp-Source: AH8x227kllQkwguUpUypLQEJb8k1ZjUXspugjuQ0VTvzJ/g4tcLzuA819ho+MRwNfw4TPsqRv0/C X-Received: by 2002:a17:902:522:: with SMTP id 31-v6mr2812027plf.122.1519417678264; Fri, 23 Feb 2018 12:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417678; cv=none; d=google.com; s=arc-20160816; b=jGscMA6B1ICUdQEHXZmRNzpapGT7QHUlBNHNJYGcwuzknye0LJUNxgqYhXbKbMez01 4vWDmsAg9xsKqILOmoo7REr6Zohu9vb/hk7h6nVAO82Lwkf/SFRY5JKdBslv4xxocheD taXuXTF3EL6TO0sWGuB5sJLTJqNVS4xAue82s92PfNJvqPxEd0HzLVRlQO/+7SH97JuJ T7VeEqAhTDMy/5nHktIO+IX/uAnQ+TUefNZ444u+uLmk9uO61CBm1r1UJck/hsa4jiVZ 2bqTw+774ZdWgHKD2G4WStJ+ENyOQAH6HsgtbFYfz7HRjbirJUhe7vITvsgbf3z8tn2p HkAw== 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=dWtrmDizR3ki1Ix2JZVmznhAcMdQNH6gXKT/uh5JT/g=; b=xo9cFcH673343L5JIgRolD+cuzjDXXlX0Ai4DS3EoHsnrSeLRo7gDcU/IajQOlynXd wGzl69cS7qIcWvSK1dXbZryVyz0b36nO6O3a0D4ZlQaDA+KZVWP18va7RATq4+tt7liE XuLLIRarGpPfSSQ/tNZJ5Z7ZuYCcvdsni6FDv4xHlYsTtU0fUnDZeAI4WlYCNkEnNtG7 oXVuPY54BiOrXJbeTj55cO8fQtuQ/MDmARPv09RJGRtWD1cVP+7rr4smF+pZlSZP6X0o i/vUK5DeVkwThOmGT4T1SJsH+VWVCAzVweLd3UU/ct3Xd3/c+6avwbsHV6iTbxjRVyGG pbTw== 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 y40-v6si2235334pla.753.2018.02.23.12.27.44; Fri, 23 Feb 2018 12:27:58 -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 S932225AbeBWU1G (ORCPT + 99 others); Fri, 23 Feb 2018 15:27:06 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38638 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932141AbeBWShN (ORCPT ); Fri, 23 Feb 2018 13:37:13 -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 B6DC7BBF; Fri, 23 Feb 2018 18:37:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Christoph Hellwig , "Martin K. Petersen" Subject: [PATCH 4.4 098/193] SCSI: initio: remove duplicate module device table Date: Fri, 23 Feb 2018 19:25:31 +0100 Message-Id: <20180223170341.366407634@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 d282e2b383e3f41a7758e8cbf3076091ef9d9447 upstream. The initio driver has for many years had two copies of the same module device table. One of them is also used for registering the other driver, the other one is entirely useless after the large scale cleanup that Alan Cox did back in 2007. The compiler warns about this whenever the driver is built-in: drivers/scsi/initio.c:131:29: warning: 'i91u_pci_devices' defined but not used [-Wunused-variable] This removes the extraneous table and the warning. Signed-off-by: Arnd Bergmann Fixes: 72d39fea901 ("[SCSI] initio: Convert into a real Linux driver and update to modern style") Reviewed-by: Christoph Hellwig Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/initio.c | 16 ---------------- 1 file changed, 16 deletions(-) --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -110,11 +110,6 @@ #define i91u_MAXQUEUE 2 #define i91u_REVID "Initio INI-9X00U/UW SCSI device driver; Revision: 1.04a" -#define I950_DEVICE_ID 0x9500 /* Initio's inic-950 product ID */ -#define I940_DEVICE_ID 0x9400 /* Initio's inic-940 product ID */ -#define I935_DEVICE_ID 0x9401 /* Initio's inic-935 product ID */ -#define I920_DEVICE_ID 0x0002 /* Initio's other product ID */ - #ifdef DEBUG_i91u static unsigned int i91u_debug = DEBUG_DEFAULT; #endif @@ -127,17 +122,6 @@ static int setup_debug = 0; static void i91uSCBPost(u8 * pHcb, u8 * pScb); -/* PCI Devices supported by this driver */ -static struct pci_device_id i91u_pci_devices[] = { - { PCI_VENDOR_ID_INIT, I950_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, - { PCI_VENDOR_ID_INIT, I940_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, - { PCI_VENDOR_ID_INIT, I935_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, - { PCI_VENDOR_ID_INIT, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, - { PCI_VENDOR_ID_DOMEX, I920_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, - { } -}; -MODULE_DEVICE_TABLE(pci, i91u_pci_devices); - #define DEBUG_INTERRUPT 0 #define DEBUG_QUEUE 0 #define DEBUG_STATE 0