lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [RFC] remove linux/hardirq.h from asm-generic/local.h
    On Sun, Dec 14, 2008 at 09:58:03AM -0800, Andrew Morton wrote:
    > On Sun, 14 Dec 2008 13:39:41 +0000 Russell King <rmk+lkml@arm.linux.org.uk> wrote:

    > > Note that x86 does not include asm/irq.h nor linux/hardirq.h in its
    > > asm/local.h, so this patch can be viewed as bringing the generic version
    > > into line with the x86 version.
    >
    > Sure. Includes are easy to add and hard to remove. I'll queue it up
    > and see if there's fallout.

    Here is some (but not everything):

    arch/avr32/kernel/traps.c:63: error: implicit declaration of function 'in_interrupt'
    arch/avr32/kernel/traps.c:113: error: implicit declaration of function 'nmi_enter'
    arch/avr32/kernel/traps.c:124: error: implicit declaration of function 'nmi_disable'
    arch/avr32/kernel/traps.c:127: error: implicit declaration of function 'nmi_exit'
    arch/sh/kernel/traps_32.c:104: error: implicit declaration of function 'in_interrupt'
    arch/sparc64/kernel/sysfs.c:201: error: 'cpuinfo_sparc' undeclared (first use in this function)
    arch/sparc64/kernel/mdesc.c:576: error: expected ')' before '*' token


    diff --git a/arch/avr32/kernel/traps.c b/arch/avr32/kernel/traps.c
    index 0d98737..d547c8d 100644
    --- a/arch/avr32/kernel/traps.c
    +++ b/arch/avr32/kernel/traps.c
    @@ -7,6 +7,7 @@
    */

    #include <linux/bug.h>
    +#include <linux/hardirq.h>
    #include <linux/init.h>
    #include <linux/kallsyms.h>
    #include <linux/kdebug.h>
    diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c
    index 1e5c74e..7a2dc95 100644
    --- a/arch/sh/kernel/traps_32.c
    +++ b/arch/sh/kernel/traps_32.c
    @@ -13,6 +13,7 @@
    */
    #include <linux/kernel.h>
    #include <linux/ptrace.h>
    +#include <linux/hardirq.h>
    #include <linux/init.h>
    #include <linux/spinlock.h>
    #include <linux/module.h>
    diff --git a/arch/sparc64/kernel/mdesc.c b/arch/sparc64/kernel/mdesc.c
    index dde52bc..3c539a6 100644
    --- a/arch/sparc64/kernel/mdesc.c
    +++ b/arch/sparc64/kernel/mdesc.c
    @@ -11,6 +11,7 @@
    #include <linux/mm.h>
    #include <linux/miscdevice.h>

    +#include <asm/cpudata.h>
    #include <asm/hypervisor.h>
    #include <asm/mdesc.h>
    #include <asm/prom.h>
    diff --git a/arch/sparc64/kernel/sysfs.c b/arch/sparc64/kernel/sysfs.c
    index 84e5ce1..d28f496 100644
    --- a/arch/sparc64/kernel/sysfs.c
    +++ b/arch/sparc64/kernel/sysfs.c
    @@ -8,6 +8,7 @@
    #include <linux/percpu.h>
    #include <linux/init.h>

    +#include <asm/cpudata.h>
    #include <asm/hypervisor.h>
    #include <asm/spitfire.h>


    \
     
     \ /
      Last update: 2008-12-16 19:45    [W:0.023 / U:0.260 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site