Bug 12051

Summary: inserting nouveau.ko failed with kernel 2.6.17 since commit 8a4d7f34d9c0182c466518c6f413d9a039db402d
Product: xorg Reporter: Mjules <mjulien.m>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Mjules 2007-08-18 05:46:23 UTC
Hi,

Since commit 8a4d7f34d9c0182c466518c6f413d9a039db402d, when I try to insert nouveau.ko, it failed with unknown symbol, and dmesg say :

[drm] Initialized drm 1.1.0 20060810
nouveau: Unknown symbol pci_get_bus_and_slot

I get a warning at this place during the compilation

/home/jules/nouveau/drm/linux-core/nouveau_mem.o
/home/jules/nouveau/drm/linux-core/nouveau_mem.c: In function 'nouveau_mem_fb_amount_igp':
/home/jules/nouveau/drm/linux-core/nouveau_mem.c:230: warning: implicit declaration of function 'pci_get_bus_and_slot'
/home/jules/nouveau/drm/linux-core/nouveau_mem.c:230: warning: assignment makes pointer from integer without a cast


commenting out the body of the function nouveau_mem_fb_amount_igp, I can compile without warning and insert the module (and Nouveau works).


I'm running linux mandriva 2007.1 with kernel 2.6.17, gcc 4.1.2, x86_64.

01:00.0 VGA compatible controller [0300]: nVidia Corporation NV35 [GeForce FX 5900XT] [10de:0332] (rev a1)
Comment 1 Patrice Mandin 2007-08-20 09:25:46 UTC
A #ifdef check for both Linux kernel (in case of Bsd or other OS) and Linux kernel version (pci_get_bus_and_slot() function needs 2.6.19) has been added. It means detection of IGP memory will fail if not Linux>=2.6.19, but at least the module is loadable again.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.