From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753454AbbFQItS (ORCPT ); Wed, 17 Jun 2015 04:49:18 -0400 Received: from mail-bl2on0084.outbound.protection.outlook.com ([65.55.169.84]:24521 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750941AbbFQItJ (ORCPT ); Wed, 17 Jun 2015 04:49:09 -0400 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Date: Wed, 17 Jun 2015 10:48:52 +0200 From: Robert Richter To: Tejun Heo CC: Robert Richter , Sunil Goutham , Jiang Liu , , , , kbuild test robot , 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-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit 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/8fg6hm4oNWgNsoEyMCUvyzlnFSGNqMKFOVEIez7cJQtWMYaSjFEEfHJiGHLvpseicoPAXIdiCB8eKHzhUdAz/2O/6ivJKBebPhqZH9DosicV9wGLqM43vY4BnYX6/iavZ3j08NFSUCyFzT0DGN+P1VrNBPUHwRWMjc2oZ7idyJjCVpq37Cezpf25oNvY7/KBrJrXLb07xgkdKlN9GCs61T8GGnPDk9jFzyq7tx1/Q+u4B3Bnrh+5uwfA8Q8+rrQVIeAe2bMCE17FR4Jpz9kn/3z3BlhDxq283n2caGU+ggwDUeRRtf57/8f8Pepdgm+TuYCJaWETobmi13m8vea7x+u7xf/aX4+lw0yh7Hb3wgUCdu6O4Ppio9bYAi4I/uJcF6EDO+8t7jzpi2ouIyh3F79h8zz0kdgSCo+FKLLKQYQNkaFeZJNHJuIQd665tHHKvWdMErbtNOR0A+iGxsRPGJ4aEKmaq+Xrx0IlH3Q0bUojE2PWfEmTW+tXlPviPG5c+AX6zz0xnJhP9PjH85bJiv4yWuxHa/IFeUuZZpfoNCt4qM7rja5hldxBW/BuQUp53ThjDa+kdFpO0a0htnnUqX1afaHZPvil5qCKgg9ISeBSy97VMNBTpxzt6kn44yBUuxEAcNVKfbox0K7um/5fuDq7/+EgC8+m99/7dRV44h8/TpL9yxbrVHGTvMoI9lRxPex0+eREviRxe3ccSbDs6UAPHQMBEIKUO+k4K9KQT3Ukm2wTJ/vcmScYQYC0mKCf6hbT9sTt2iHgABRIqyYDuDWrttBfIKPinL9fxQ0kCOL7Arut0/eAouzz3wDmNS2Db3vAjt4BXD3gx6Kobp+goGNRjIOoXBc X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1614;3:KFUnrASlVDU+HGO97Mxc6oBAhvZ+/x8svBLXQzVJrsefbhPnZoSE1lw+BAEshVqLmd+UQ8rjTyd7rt+Zy4jG36JBYUXXwx6JqyE/wBrlufav8SsKN19x4JCk2uGNoQPejsSFaI+FG8ehJno0fzO/rg==;10:FeizGWKpsuj9aZMZEd1tfdX8TNbbULM88QcodJQBmcdPgG4od7PxVl+bRVZWCN1d/JmdHB1/2y+qULZBzAHbgphN69xTVSqVpME8Xkt+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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>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; } -- 2.1.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: robert.richter@caviumnetworks.com (Robert Richter) Date: Wed, 17 Jun 2015 10:48:52 +0200 Subject: [PATCH] ahci, msix: Fix build error for !PCI_MSI In-Reply-To: <20150616201341.GD22637@mtj.duckdns.org> References: <1433526566-21136-1-git-send-email-rric@kernel.org> <20150616132434.GO10428@rric.localhost> <20150616201341.GD22637@mtj.duckdns.org> Message-ID: <20150617084852.GL4914@rric.localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org >>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; } -- 2.1.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Richter Subject: [PATCH] ahci, msix: Fix build error for !PCI_MSI Date: Wed, 17 Jun 2015 10:48:52 +0200 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-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20150616201341.GD22637@mtj.duckdns.org> Sender: linux-kernel-owner@vger.kernel.org To: Tejun Heo Cc: Robert Richter , Sunil Goutham , Jiang Liu , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kbuild test robot , kbuild-all@01.org List-Id: linux-ide@vger.kernel.org =46rom fd984f3be22f27b8d3c4cf577dbbf0a39792ea89 Mon Sep 17 00:00:00 200= 1 =46rom: 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=3DUTF-8 Content-Transfer-Encoding: 8bit =46ixing a build error if PCI_MSI is unset: drivers/ata/ahci.c: In function =E2=80=98msix_get_desc=E2=80=99: drivers/ata/ahci.c:1210:2: error: =E2=80=98struct pci_dev=E2=80=99 has= no member named =E2=80=98msi_list=E2=80=99 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(s= truct ata_host *host) =20 static struct msi_desc *msix_get_desc(struct pci_dev *dev, u16 entry) { +#ifdef CONFIG_PCI_MSI struct msi_desc *desc; =20 list_for_each_entry(desc, &dev->msi_list, list) { if (desc->msi_attrib.entry_nr =3D=3D entry) return desc; } - +#endif return NULL; } =20 --=20 2.1.1