Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368069 - sys-kernel/gentoo-sources-2.6.37-r4 xen-platform: Fix compile errors if CONFIG_PCI is not enabled.
Summary: sys-kernel/gentoo-sources-2.6.37-r4 xen-platform: Fix compile errors if CONFI...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: gentoo-sources-2.6.37-r6
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-05-19 16:43 UTC by Jonathan Harrison
Modified: 2011-05-26 16:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Harrison 2011-05-19 16:43:15 UTC
I believe this fix needs to be added to the current 2.6.37-r4 gentoo-sources.  I manually applied it after getting the following errors when compiling the kernel.

drivers/xen/platform-pci.c:127: error: implicit declaration of function
          'pci_request_region'
drivers/xen/platform-pci.c:165: error: implicit declaration of function
          'pci_release_region'

Once fix was applied the kernel compiled successfully.  Below is the git commit.

From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Date: Wed, 12 Jan 2011 17:58:06 +0000 (-0500)
Subject: xen-platform: Fix compile errors if CONFIG_PCI is not enabled.
X-Git-Tag: v2.6.38-rc1~73^2
X-Git-Url: http://git390.marist.edu/cgi-bin/gitweb.cgi?p=linux-2.6.git;a=commitdiff_plain;h=e528db5b392ab2a624258a667fed0e65af6e411b

xen-platform: Fix compile errors if CONFIG_PCI is not enabled.

drivers/xen/platform-pci.c:127: error: implicit declaration of function
          'pci_request_region'
drivers/xen/platform-pci.c:165: error: implicit declaration of function
          'pci_release_region'

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---

diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
index 6e6180c..6f52b31 100644
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -64,7 +64,7 @@ config XEN_SYS_HYPERVISOR
 
 config XEN_PLATFORM_PCI
 	tristate "xen platform pci device driver"
-	depends on XEN_PVHVM
+	depends on XEN_PVHVM && PCI
 	default m
 	help
 	  Driver for the Xen PCI Platform device: it is responsible for
Comment 1 Mike Pagano gentoo-dev 2011-05-24 17:51:53 UTC
InSVN for next gentoo-sources-2.6.37 release
Comment 2 Mike Pagano gentoo-dev 2011-05-26 16:31:04 UTC
Release in gentoo-sources-2.6.37-r6