Bug 229489 - include/asm-i386/tsc.h includes asm-x86_64/tsc.h ?!?!
Summary: include/asm-i386/tsc.h includes asm-x86_64/tsc.h ?!?!
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Brian Brock
: 230031 230176 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2007-02-21 15:10 UTC by Tom London
Modified: 2007-11-30 22:11 UTC (History)
11 users (show)

Clone Of:
Last Closed: 2007-03-03 18:16:20 UTC

Attachments (Terms of Use)

Description Tom London 2007-02-21 15:10:40 UTC
Description of problem:
Running kernel-PAE-2.6.20-1.2936.fc7; kernel-headers links asm-i386/tsc.h to
nonexistant asm-x86/tsc.h

I copied asm-i386/tsc.h from 2.6.20-1.2932 to asm-i386/tsc.h and all appears to

Version-Release number of selected component (if applicable):

How reproducible:
Every time!

Steps to Reproduce:
1. yum update
2. ....
Actual results:

Expected results:

Additional info:

Comment 1 Tom London 2007-02-21 15:49:19 UTC
Sorry, typo.... tries to include asm-x86_64/tsc.h

Comment 2 Aurelien Bompard 2007-02-22 22:31:43 UTC
I confirm this (FWIW)

Comment 3 sangu 2007-02-23 12:14:59 UTC
This problem still happens in kernel-2.6.20-1.2940.fc7.
See Also : http://bugzilla.livna.org/show_bug.cgi?id=1419

Comment 4 David Woodhouse 2007-02-23 12:20:48 UTC
At first glance (after fixing the typo in the summary) it looks like the fix
would be to swap the files round and include the i386 one from x86_64 instead --
but on closer inspection I don't actually see what in there is supposed to be
visible to userspace anyway.

Comment 6 Tom London 2007-02-23 14:29:00 UTC
Yeah, sorry.

Fails for rebuild of ipw3945 module, vmware modules, etc.

Comment 7 Chuck Ebbert 2007-02-24 16:38:11 UTC
We need to fix this before the FC6 2.6.20 kernel is released.
Can we just add the whole asm-x86_64 directory to the devel package
as a workaround?

Comment 8 Stewart Adam 2007-02-24 17:39:11 UTC
I can confirm, too - nvidia modules won't build.

Comment 9 Ville Skyttä 2007-02-25 08:57:43 UTC
Me too, with 2.6.20-1.2942.fc7.  By the way, it's not only the PAE kernel-devel
nor only tsc.h, regular i586 and i686 kernel-devels have this too and some other
x86_64 includes, this is from the i686 include dir for 2942:

$ grep -r -- "#include.*x86_64" *
asm/stacktrace.h:#include <asm-x86_64/stacktrace.h>
asm/tsc.h:#include <asm-x86_64/tsc.h>
asm/k8.h:#include <asm-x86_64/k8.h>
asm/pci-direct.h:#include "asm-x86_64/pci-direct.h"
asm-i386/stacktrace.h:#include <asm-x86_64/stacktrace.h>
asm-i386/tsc.h:#include <asm-x86_64/tsc.h>
asm-i386/k8.h:#include <asm-x86_64/k8.h>
asm-i386/pci-direct.h:#include "asm-x86_64/pci-direct.h"

Comment 10 Masami Hiramatsu 2007-02-25 12:55:37 UTC
I confirmed, too.
SystemTap can't run any script on kernel-2.6.20-1.2942.fc7.

Comment 11 Dave Jones 2007-02-26 06:02:53 UTC
*** Bug 230031 has been marked as a duplicate of this bug. ***

Comment 12 Dave Jones 2007-02-27 01:53:40 UTC
*** Bug 230176 has been marked as a duplicate of this bug. ***

Comment 13 Stewart Adam 2007-02-27 15:23:27 UTC
For now why don't we just replace tsc.h with the tsc.h from 2.6.20-1.2932 which
doesn't have this bug? I can provide a patch if needed.

Comment 14 Tom London 2007-03-03 18:16:20 UTC
Working in .2960 and .2962.


Note You need to log in before you can comment on or make changes to this bug.