From patchwork Sun Oct 6 17:21:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 11176581 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D1A2F112B for ; Sun, 6 Oct 2019 17:54:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0D3E20700 for ; Sun, 6 Oct 2019 17:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570384445; bh=qa0mUQv2VHTLNbiFSyncuiRPcluh1c6Y3izKC1A5WRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=tAN/63UbQ/SdftcSkjai2flDyteApLGwTkrVe8E1CAKi2tnnlSMlGFjiamusta8uH Daw+T1WFA2FR3j1pneuMNmoI8XWLHeeRiVG7Pc7WqmMa68PrUlUqURDSInRadOSAnM wc746cig/J4w41nn3fC+vhFgLLhsghLyOXqLjIvo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727407AbfJFRyA (ORCPT ); Sun, 6 Oct 2019 13:54:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:35892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730366AbfJFRg7 (ORCPT ); Sun, 6 Oct 2019 13:36:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96B392080F; Sun, 6 Oct 2019 17:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383419; bh=qa0mUQv2VHTLNbiFSyncuiRPcluh1c6Y3izKC1A5WRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YFzfaQt9sPA+htKi2JqIREy5jAWDcSXimrPi4/NVfrOBZQi1fdBqS5H3S4JxLZMPE 64kS5mMp+/dGWmrOnIX6d81QSP+sR8nyCHeVLSEVLHeDrOzMkJkPFFCVX3uqfQIRsG raytlzBFFWMA0UF90OwBoG6pkmjwI8WtsbQvBhHI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Lorenzo Pieralisi , Haiyang Zhang , Matthew Wilcox , Jake Oshins , "K. Y. Srinivasan" , Stephen Hemminger , Stephen Hemminger , Sasha Levin , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-hyperv@vger.kernel.org, Dexuan Cui Subject: [PATCH 5.2 098/137] PCI: pci-hyperv: Fix build errors on non-SYSFS config Date: Sun, 6 Oct 2019 19:21:22 +0200 Message-Id: <20191006171217.062322810@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171209.403038733@linuxfoundation.org> References: <20191006171209.403038733@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Randy Dunlap [ Upstream commit f58ba5e3f6863ea4486952698898848a6db726c2 ] Fix build errors when building almost-allmodconfig but with SYSFS not set (not enabled). Fixes these build errors: ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! ERROR: "pci_create_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! drivers/pci/slot.o is only built when SYSFS is enabled, so pci-hyperv.o has an implicit dependency on SYSFS. Make that explicit. Also, depending on X86 && X86_64 is not needed, so just change that to depend on X86_64. Fixes: a15f2c08c708 ("PCI: hv: support reporting serial number as slot information") Signed-off-by: Randy Dunlap Signed-off-by: Lorenzo Pieralisi Reviewed-by: Haiyang Zhang Cc: Matthew Wilcox Cc: Jake Oshins Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Stephen Hemminger Cc: Sasha Levin Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org Cc: linux-hyperv@vger.kernel.org Cc: Dexuan Cui Signed-off-by: Sasha Levin --- drivers/pci/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index 2ab92409210af..297bf928d6522 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -181,7 +181,7 @@ config PCI_LABEL config PCI_HYPERV tristate "Hyper-V PCI Frontend" - depends on X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64 + depends on X86_64 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && SYSFS help The PCI device frontend driver allows the kernel to import arbitrary PCI devices from a PCI backend to support PCI driver domains.