From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261753AbTKOLk5 (ORCPT ); Sat, 15 Nov 2003 06:40:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261758AbTKOLk5 (ORCPT ); Sat, 15 Nov 2003 06:40:57 -0500 Received: from amsfep13-int.chello.nl ([213.46.243.24]:55137 "EHLO amsfep13-int.chello.nl") by vger.kernel.org with ESMTP id S261753AbTKOLkG (ORCPT ); Sat, 15 Nov 2003 06:40:06 -0500 Message-ID: <3FB61091.7010804@gmx.net> Date: Sat, 15 Nov 2003 12:40:01 +0100 From: Eric User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030911 X-Accept-Language: en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: PROBLEM: (AGP/SMP) following code leads to include errors Content-Type: multipart/mixed; boundary="------------080402080808040209020108" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------080402080808040209020108 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Whilst trying to get the ATI graphics drivers with accelerated 3d support to compile against 2.6.0-test9 (vanilla kernel, not patched), the check used by ATI results in a bunch of include errors. I believe this is not related to the ATI drivers, but to a "bug" in the kernel itself. I tried to figure out where it went wrong myself, but all I can tell is that some kernel includes are trying to include files which reside in different directories. This only occurs if I selected to build an SMP kernel (I have a P4 with HT and I damn well want to make use of that ;). Since I have no knowledge of what the correct layout of the files and directories should be I'm handing it out to you folks :) Just hope this hasn't been reported already, I couldn't find any previous report though. note: I am not subscribed to the LKML, therefore, please post any replies to my email adres as well. (I am trying to read the lkml online, the last time I subscribed the cheer volume filled my mailbox faster then I could empty it). kind regards, Eric attached to this email are: -code used to generate the errors -log of the errors -lspci output -cpuinfo -kernel config -iomem -ioports --------------080402080808040209020108 Content-Type: text/x-csrc; name="tmp_vmasrc.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tmp_vmasrc.c" /* this is a generated file */ #define __KERNEL__ #include int probe_vma_api_version(void) { #ifdef FGL_LINUX253P1_VMA_API struct vm_area_struct *vma; #endif unsigned long from, to, size; pgprot_t prot; return ( remap_page_range( #ifdef FGL_LINUX253P1_VMA_API vma, #endif from, to, size, prot) ); } --------------080402080808040209020108 Content-Type: text/plain; name="tmp_vma253.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tmp_vma253.log" In file included from /lib/modules/2.6.0-test9/build/include/asm/smp.h:18, from /lib/modules/2.6.0-test9/build/include/linux/smp.h:17, from /lib/modules/2.6.0-test9/build/include/linux/sched.h:23, from /lib/modules/2.6.0-test9/build/include/linux/mm.h:4, from tmp_vmasrc.c:3: /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /lib/modules/2.6.0-test9/build/include/asm/smp.h:18, from /lib/modules/2.6.0-test9/build/include/linux/smp.h:17, from /lib/modules/2.6.0-test9/build/include/linux/sched.h:23, from /lib/modules/2.6.0-test9/build/include/linux/mm.h:4, from tmp_vmasrc.c:3: /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function) In file included from /lib/modules/2.6.0-test9/build/include/asm/smp.h:20, from /lib/modules/2.6.0-test9/build/include/linux/smp.h:17, from /lib/modules/2.6.0-test9/build/include/linux/sched.h:23, from /lib/modules/2.6.0-test9/build/include/linux/mm.h:4, from tmp_vmasrc.c:3: /lib/modules/2.6.0-test9/build/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /lib/modules/2.6.0-test9/build/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs' /lib/modules/2.6.0-test9/build/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' In file included from /lib/modules/2.6.0-test9/build/include/linux/smp.h:17, from /lib/modules/2.6.0-test9/build/include/linux/sched.h:23, from /lib/modules/2.6.0-test9/build/include/linux/mm.h:4, from tmp_vmasrc.c:3: /lib/modules/2.6.0-test9/build/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory --------------080402080808040209020108 Content-Type: text/plain; name="lspci.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lspci.log" 00:00.0 Host bridge: Intel Corp. 82865G/PE/P Processor to I/O Controller (rev 02) Subsystem: Micro-Star International Co., Ltd.: Unknown device 7280 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- Reset- FastB2B- 00:1d.0 USB Controller: Intel Corp. 82801EB USB (rev 02) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 7280 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- 00:1f.0 ISA bridge: Intel Corp. 82801EB LPC Interface Controller (rev 02) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Region 1: I/O ports at Region 2: I/O ports at Region 3: I/O ports at Region 4: I/O ports at fc00 [size=16] Region 5: Memory at 20000000 (32-bit, non-prefetchable) [size=1K] 00:1f.3 SMBus: Intel Corp. 82801EB SMBus Controller (rev 02) Subsystem: Micro-Star International Co., Ltd.: Unknown device 7280 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-