On Fri, Mar 21, 2008 at 11:15:04AM +0100, Ingo Molnar wrote:No, tick-common.c has calls to irq_set_affinity and irq_can_set_affinity, for which the prototypes are in linux/irq.h. Each and every architecture seems to include linux/irq.h from a different file in asm-[your-favourite-arch]/*.h. I was able to fix the build breakage on x86 by adding an include <linux/interrupt.h>. But that won't work on other architectures. From a logical point of view I would expect that asm/irq.h is supposed to include linux/irq.h, no? The patch below removes at least three of the includes for a beginning. Still compiles on s390 and x86_64. Subject: [PATCH] time: remove include/irq.h. From: Heiko Carstens <heiko.carstens@de.ibm.com> Generic code is not supposed to include linux/irq.h. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> --- kernel/hrtimer.c | 1 - kernel/time/tick-broadcast.c | 1 - kernel/time/tick-oneshot.c | 1 - 3 files changed, 3 deletions(-) Index: linux-2.6/kernel/hrtimer.c =================================================================== --- linux-2.6.orig/kernel/hrtimer.c +++ linux-2.6/kernel/hrtimer.c @@ -32,7 +32,6 @@ */ #include <linux/cpu.h> -#include <linux/irq.h> #include <linux/module.h> #include <linux/percpu.h> #include <linux/hrtimer.h> Index: linux-2.6/kernel/time/tick-broadcast.c =================================================================== --- linux-2.6.orig/kernel/time/tick-broadcast.c +++ linux-2.6/kernel/time/tick-broadcast.c @@ -14,7 +14,6 @@ #include <linux/cpu.h> #include <linux/err.h> #include <linux/hrtimer.h> -#include <linux/irq.h> #include <linux/percpu.h> #include <linux/profile.h> #include <linux/sched.h> Index: linux-2.6/kernel/time/tick-oneshot.c =================================================================== --- linux-2.6.orig/kernel/time/tick-oneshot.c +++ linux-2.6/kernel/time/tick-oneshot.c @@ -14,7 +14,6 @@ #include <linux/cpu.h> #include <linux/err.h> #include <linux/hrtimer.h> -#include <linux/irq.h> #include <linux/percpu.h> #include <linux/profile.h> #include <linux/sched.h> --
| Alan Cox | [PATCH 00/80] TTY updates for 2.6.28 |
| Eric Sandeen | Re: [RFC] Heads up on sys_fallocate() |
| Linus Torvalds | Linux 2.6.27 |
| Linus Torvalds | Linux 2.6.27-rc8 |
git: | |
| Daniel Berlin | Re: Git and GCC |
| David Kastrup | Empty directories... |
| Denis Bueno | Recovering from repository corruption |
| Linus Torvalds | Re: "failed to read delta base object at..." |
| Hugh Dickins | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Simon Horman | Re: Possible regression in HTB |
| Paul Moore | [PATCH v7 00/17] Labeled networking patches for 2.6.28 |
| Wenji Wu | about Linux adaptivly adjusting ssthresh |
| Linux Kernel Mailing List | i.MX3: make SoC devices globally available |
| Linux Kernel Mailing List | ARM: DaVinci: i2c setup |
| Linux Kernel Mailing List | MXC: Remove WD IRQ priority setting |
| Linux Kernel Mailing List | [MACVLAN]: Update Kconfig to refer to iproute |
| sata/ide timeout errors on asus server-mb | 1 hour ago | Linux kernel |
| Shared swap partition | 2 hours ago | Linux general |
| usb mic not detected | 6 hours ago | Applications and Utilities |
| Problem in Inserting a module | 7 hours ago | Linux kernel |
| Treason Uncloaked | 12 hours ago | Linux kernel |
| high memory | 2 days ago | Linux kernel |
| semaphore access speed | 2 days ago | Applications and Utilities |
| the kernel how to power off the machine | 2 days ago | Linux kernel |
| Easter Eggs in windows XP | 3 days ago | Windows |
| Root password | 3 days ago | Linux general |
