[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#255183: marked as done (mpspec.h should include a more precise path to mach_mpspec.h.)



Your message dated Sat, 19 Jun 2004 17:37:44 +0200 (CEST)
with message-id <Pine.LNX.4.58.0406191736440.31494@localhost>
and subject line using wrong headers
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Jun 2004 11:06:09 +0000
>From tpo@sourcepole.ch Sat Jun 19 04:06:09 2004
Return-path: <tpo@sourcepole.ch>
Received: from mail1.bluewin.ch [195.186.1.74] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bbdfl-0001FZ-00; Sat, 19 Jun 2004 04:06:09 -0700
Received: from localhost (62.203.57.160) by mail1.bluewin.ch (Bluewin AG 7.0.028)
        id 40D19B9C0003BEA5; Sat, 19 Jun 2004 11:05:38 +0000
Received: from tpo by localhost with local (Exim 3.36 #1 (Debian))
	id 1BbdfJ-0002lq-00; Sat, 19 Jun 2004 13:05:41 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Tomas Pospisek <tpo_deb@sourcepole.ch>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bla
X-Mailer: reportbug 2.61
Date: Sat, 19 Jun 2004 13:05:40 +0200
Message-Id: <[🔎] E1BbdfJ-0002lq-00@localhost>
Sender: Tomas Pospisek <tpo@sourcepole.ch>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: linux-kernel-headers
Version: 2.5.999-test7-bk-16
Severity: normal
Tags: patch

I'm not sure, but to me this looks like mpspec.h should include a more precise
path to mach_mpspec.h. The project I'm compiling here, has nothing to do with mach
whatsoever.

$ gcc kfusd.c -o kfusd.o
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from kfusd.c:83:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from kfusd.c:83:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/include/asm/smp.h:20,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from kfusd.c:83:
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from kfusd.c:83:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
$ gcc -c -I/usr/include/asm/mach-generic/ kfusd.c -o kfusd.o

Here's a suggestion for a patch. Mind you I've got absolutely no idea what I'm doing here, it's
just a barely educated guess.
*t

--- /usr/include/asm/mpspec.h.orig      2004-06-19 13:00:07.000000000 +0200
+++ /usr/include/asm/mpspec.h   2004-06-19 13:00:55.000000000 +0200
@@ -3,7 +3,7 @@

 #include <linux/cpumask.h>
 #include <asm/mpspec_def.h>
-#include <mach_mpspec.h>
+#include <asm/mach-generic/mach_mpspec.h>

 extern int mp_bus_id_to_type [MAX_MP_BUSSES];
 extern int mp_bus_id_to_node [MAX_MP_BUSSES];



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.22
Locale: LANG=C, LC_CTYPE=C

-- no debconf information

---------------------------------------
Received: (at 255183-close) by bugs.debian.org; 19 Jun 2004 15:38:16 +0000
>From tpo@sourcepole.ch Sat Jun 19 08:38:16 2004
Return-path: <tpo@sourcepole.ch>
Received: from mail1.bluewin.ch [195.186.1.74] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bbhv6-00017D-00; Sat, 19 Jun 2004 08:38:16 -0700
Received: from localhost (62.203.57.160) by mail1.bluewin.ch (Bluewin AG 7.0.028)
        id 40D19B9C00044A71 for 255183-close@bugs.debian.org; Sat, 19 Jun 2004 15:37:45 +0000
Received: from tpo (helo=localhost)
	by localhost with local-esmtp (Exim 3.36 #1 (Debian))
	id 1Bbhua-0008GU-00
	for <255183-close@bugs.debian.org>; Sat, 19 Jun 2004 17:37:44 +0200
Date: Sat, 19 Jun 2004 17:37:44 +0200 (CEST)
From: Tomas Pospisek <tpo@sourcepole.ch>
X-X-Sender: tpo@localhost
To: 255183-close@bugs.debian.org
Subject: using wrong headers
Message-ID: <Pine.LNX.4.58.0406191736440.31494@localhost>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 255183-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

I was compiling an external kernel module (FUSE) and I should've used the
kernel's own headers I guess.
*t



Reply to: