Mailinglist Archive: opensuse-bugs (15077 mails)

< Previous Next >
[Bug 326832] New: Bug in kernel headers with enabled xen
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 20 Sep 2007 08:38:07 -0600 (MDT)
  • Message-id: <bug-326832-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=326832

           Summary: Bug in kernel headers with enabled xen
           Product: openSUSE 10.3
           Version: RC 1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Kernel
        AssignedTo: kernel-maintainers@xxxxxxxxxxxxxxxxxxxxxx
        ReportedBy: mt@xxxxxxxxxx
         QAContact: qa@xxxxxxx
          Found By: ---


When CONFIG_XEN is defined, the following code does not compile:

#include <linux/autoconf.h>
#include <linux/version.h>
#include <linux/utsname.h>
int main() {
        if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
            return 0;
        } else {
            return 1;
        }
}

because asm/smp.h needs APIC_BASE, APIC_ID, APIC_LDR in some inline
functions and the constants are not provided by asm/apicdef.h when
CONFIG_XEN is defined:

In file included from /usr/src/linux/include/linux/smp.h:19,
                 from /usr/src/linux/include/linux/sched.h:65,
                 from /usr/src/linux/include/linux/utsname.h:35,
                 from conftest6665.c:3:
/usr/src/linux/include/asm/smp.h: In function ‘hard_smp_processor_id’:
/usr/src/linux/include/asm/smp.h:73: error: ‘APIC_BASE’ undeclared (first
use in this function)
/usr/src/linux/include/asm/smp.h:73: error: (Each undeclared identifier is
reported only once
/usr/src/linux/include/asm/smp.h:73: error: for each function it appears in)
/usr/src/linux/include/asm/smp.h:73: error: ‘APIC_ID’ undeclared (first use
in this function)
/usr/src/linux/include/asm/smp.h: In function ‘logical_smp_processor_id’:
/usr/src/linux/include/asm/smp.h:108: error: ‘APIC_BASE’ undeclared (first
use in this function)
/usr/src/linux/include/asm/smp.h:108: error: ‘APIC_LDR’ undeclared (first
use in this function)


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
< Previous Next >