From patchwork Wed Jun 17 08:48:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 6622891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7C52D9F399 for ; Wed, 17 Jun 2015 08:51:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6BA5F20844 for ; Wed, 17 Jun 2015 08:51:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89A2720843 for ; Wed, 17 Jun 2015 08:51:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z592N-0005e5-JP; Wed, 17 Jun 2015 08:49:35 +0000 Received: from mail-bn1bon0056.outbound.protection.outlook.com ([157.56.111.56] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z592H-0005WI-U0 for linux-arm-kernel@lists.infradead.org; Wed, 17 Jun 2015 08:49:31 +0000 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Received: from rric.localhost (78.53.81.95) by CY1PR0701MB1614.namprd07.prod.outlook.com (10.163.20.151) with Microsoft SMTP Server (TLS) id 15.1.190.14; Wed, 17 Jun 2015 08:49:05 +0000 Date: Wed, 17 Jun 2015 10:48:52 +0200 From: Robert Richter To: Tejun Heo Subject: [PATCH] ahci, msix: Fix build error for !PCI_MSI Message-ID: <20150617084852.GL4914@rric.localhost> References: <1433526566-21136-1-git-send-email-rric@kernel.org> <20150616132434.GO10428@rric.localhost> <20150616201341.GD22637@mtj.duckdns.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150616201341.GD22637@mtj.duckdns.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.53.81.95] X-ClientProxiedBy: AM2PR02CA0003.eurprd02.prod.outlook.com (25.160.28.141) To CY1PR0701MB1614.namprd07.prod.outlook.com (25.163.20.151) X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1614; 2:LuZiVm5CHb+d3cGzDqHkkYhSB6faJL6Sg6dZN9rz7AN79CVe2wfY8E6Hgsdj/Rh3; 2:RwBXbq9KaE0j8zFqth7roa24upbYTdyo+scndpDMQWtmPMSGla9bc1540YlRUhLgEYePZlewwBGWDtp1/TA0mOhILqHSR2uAvL7L78CwJWKYrPfun55qt+LjYN5qENiMaIrv1EhOmY8x1eOPSNZ8eA==; 6:DuTs3sEaEj99xBekOSKBj/q2kuDIhhU+fUgYXg3LToxjTXFGqfnc0THzrj4/30oai/Dgr+kfSN5uMxGt9ULtJFjwDpNDy4OOleoPPzeE+sdPlkIkEzI7B99CbQLyPPvaUmkzOx0zlhyO6ttWdMl29Pae5VRQA629ThLxBse2Jda3OccIBSx/sL8TUlmMgXoOvUVCQuBroh0gSU+B/XjQRCfanUwHyOVCGL7NAIsS0K7sM4xZtt+Mr6p2zvOhwA5ZbaadUu/jQhXKkY3poumySHWHC5ysdpcFPpWHCco1bxJkcDSGmkI3KX1muQYhXi7D0K5GM4dBZIs18L+MxbqoViPdTPCk7w6VzM2NupVmGSh4jWtjIFCsd54wi9XtPSbLunKa8D3KWZhY4Uw9ocs0r4STb+WCJPsWhqcBmJCCzYh3CKwu465D93Ln4klYxEkpU5zKZYPBDl8kCZICvKE+YC05R4Qr66/COMgfQEyY8fJ1NlV+7vXeueH9D4TnvAtQn2uAD40/aZ+X5sxY5fb4zYL+UrBMOXFuSGYg89WEsgHFuB1OImQa9oac/0EYVjVzGdf6995VepbhRL6RfbHP7BUiz25w8XwGf9cp5mhYA7c= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1614; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520003)(3002001); SRVR:CY1PR0701MB1614; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1614; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1614; 3:UXhQ0grwaKdjsZlrTTsBY2QWkrHsqN6SHdUKpuHJeEa6DIEr8rLr82ejjXNLAL2Xf3Ep5Q+I6lB01eHILoGthsS/T7YXGwfLmTEcqTJ9cWyeRKo71iVG23kF1K13pcwIsA3qRa/v/rbJ1m0yac4QvnTNoaT8b5yBFX27GZBk/UwiL4iNwys2blyYTLEFZBkPL/sria0ob80lvaFeGWJRPTtvShgqxBldAgSyhEms29u+tRnPHxd+qBvyibbBC9V9cNwdhWD9QvkcsokZt5fQGibd2NmCeW30tTlEZcA4uMllbawo/qOUGVqsj6ToRvLe X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(47776003)(83506001)(2950100001)(66066001)(77096005)(23676002)(54356999)(50986999)(92566002)(76176999)(229853001)(42186005)(76506005)(50466002)(40100003)(122386002)(77156002)(62966003)(87976001)(19580405001)(19580395003)(575784001)(86362001)(33656002)(46102003)(5001960100002)(110136002)(189998001)(4001350100001)(5001920100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1614; H:rric.localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1614; 9:DX+7BE5eRACZhd6GL+7EvlTaKJCW2s6J/8fg6hm4oNWgNsoEyMCUvyzlnFSGNqMKFOVEIez7cJQtWMYaSjFEEfHJiGHLvpseicoPAX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N69xTVSqVpME8Xkt+lWA=; 6:iJkL5OeyNYqo0h23/j2NONVww0JVPFZfeS+ZcWu7bMMgWSV3+3BmoWjoK8EGjPC8 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2015 08:49:05.4400 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1614 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150617_014930_180914_F108D278 X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: kbuild test robot , Robert Richter , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, kbuild-all@01.org, Sunil Goutham , Jiang Liu , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From fd984f3be22f27b8d3c4cf577dbbf0a39792ea89 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Wed, 17 Jun 2015 10:33:22 +0200 Subject: [PATCH] ahci, msix: Fix build error for !PCI_MSI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixing a build error if PCI_MSI is unset: drivers/ata/ahci.c: In function ‘msix_get_desc’: drivers/ata/ahci.c:1210:2: error: ‘struct pci_dev’ has no member named ‘msi_list’ Catched by Fengguang's build bot. Reported-by: kbuild test robot Signed-off-by: Robert Richter --- drivers/ata/ahci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index bdedaa4f9d7b..99cc9526ae95 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1205,13 +1205,14 @@ static inline void ahci_gtf_filter_workaround(struct ata_host *host) static struct msi_desc *msix_get_desc(struct pci_dev *dev, u16 entry) { +#ifdef CONFIG_PCI_MSI struct msi_desc *desc; list_for_each_entry(desc, &dev->msi_list, list) { if (desc->msi_attrib.entry_nr == entry) return desc; } - +#endif return NULL; }