lkml.org 
[lkml]   [2008]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH linux-next] serio: add ifdef for i8042 build fix
    From: Randy Dunlap <randy.dunlap@oracle.com>

    Restrict variable usage by bounding it with ifdef/endif CONFIG_PNP.

    linux-next-20080529/drivers/input/serio/i8042-x86ia64io.h:590: error: 'i8042_nopnp' undeclared (first use in this function)

    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    ---
    drivers/input/serio/i8042-x86ia64io.h | 2 ++
    1 file changed, 2 insertions(+)

    --- linux-next-20080529.orig/drivers/input/serio/i8042-x86ia64io.h
    +++ linux-next-20080529/drivers/input/serio/i8042-x86ia64io.h
    @@ -586,9 +586,11 @@ static int __init i8042_platform_init(vo
    i8042_aux_irq = I8042_MAP_IRQ(12);

    #if defined(__i386__) || defined(__x86_64__)
    +#ifdef CONFIG_PNP
    if (dmi_check_system(i8042_dmi_nopnp_table))
    i8042_nopnp = 1;
    #endif
    +#endif
    retval = i8042_pnp_init();
    if (retval)
    return retval;


    ---

    \
     
     \ /
      Last update: 2008-05-29 18:47    [W:0.019 / U:0.100 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site