lkml.org 
[lkml]   [2010]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] x86: fix compiling warning with legacy_pci_xxx

    also remove duplicated cfg[i].vector assigning...

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    arch/x86/kernel/apic/io_apic.c | 2 --
    arch/x86/kernel/i8259.c | 6 +++---
    2 files changed, 3 insertions(+), 5 deletions(-)

    Index: linux-2.6/arch/x86/kernel/apic/io_apic.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/apic/io_apic.c
    +++ linux-2.6/arch/x86/kernel/apic/io_apic.c
    @@ -161,8 +161,6 @@ int __init arch_early_irq_init(void)
    node= cpu_to_node(boot_cpu_id);

    for (i = 0; i < count; i++) {
    - if (i < legacy_pic->nr_legacy_irqs)
    - cfg[i].vector = IRQ0_VECTOR + i;
    desc = irq_to_desc(i);
    desc->chip_data = &cfg[i];
    zalloc_cpumask_var_node(&cfg[i].domain, GFP_NOWAIT, node);
    Index: linux-2.6/arch/x86/kernel/i8259.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/i8259.c
    +++ linux-2.6/arch/x86/kernel/i8259.c
    @@ -371,9 +371,9 @@ static void init_8259A(int auto_eoi)
    * platforms, such as x86 MID.
    */

    -static void __init legacy_pic_noop(void) { };
    -static void __init legacy_pic_uint_noop(unsigned int unused) { };
    -static void __init legacy_pic_int_noop(int unused) { };
    +static void legacy_pic_noop(void) { };
    +static void legacy_pic_uint_noop(unsigned int unused) { };
    +static void legacy_pic_int_noop(int unused) { };

    static struct irq_chip dummy_pic_chip = {
    .name = "dummy pic",

    \
     
     \ /
      Last update: 2010-02-24 03:53    [W:0.027 / U:0.796 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site