Bug 88112

Summary: missing pcibios_find_device definition in pci.h
Product: [Retired] Red Hat Linux Reporter: Lee Olsen <lee>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-27 21:30:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lee Olsen 2003-04-05 23:51:29 UTC
Description of problem:
There should be a static inline definition of pcibios_find_device
when CONFIG_PCI is not defined.

Version-Release number of selected component (if applicable):
kernel-source-2.4.18-5

How reproducible:
Build and load streams 2.13-8, pcibios_find_device is undefined.

Steps to Reproduce:
1.Configure kernel for no PCI
2.Configure and build streams package LiS-2.13-8.
3.Note modprobe complaint.
    
Actual results:


Expected results:


Additional info:
When CONFIG_PCI is defined, pcibios_find_device is declared right after
pcibios_find_class at line 523. When CONFIG_PCI is not defined,
pcibios_find_class is definedat line 626, but there is no definition for
pcibios_find_device.
Full path of the offending file is:
/usr/src/linux-2.4.18-5/linux/include/pci.h
Finding a non-PCI system to test on may be difficult. Configuring streams
for a kernel other than the running one may show the error or you may
need to resort to using 'nm' on the objects.

Comment 1 Lee Olsen 2003-06-10 01:24:34 UTC
Marking this "CLOSED WONTFIX" is saying Redhat does not support systems that do
not have a PCI bus. That flies in the face of the original Linux p[hilosophy:
"How do I use this obsolete hardware for something other than a door stop?"

Besides, it's a one line fix, which I gave you in the original description.
If I have to fix it again the next time I buy a set of Redhat CD's I'll stop
buying Redhat CDs.

Comment 2 Alan Cox 2003-06-27 21:30:10 UTC
pcibios_ calls are obsolete, software should always be using pci_ calls, or in
special cases should do proper CONFIG_PCI and x86 checking if not