[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080529095633.8893b4ec.randy.dunlap@oracle.com>
Date: Thu, 29 May 2008 09:56:33 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next@...r.kernel.org, dmitry.torokhov@...il.com,
akpm <akpm@...ux-foundation.org>
Subject: [PATCH linux-next] serio: add ifdef for i8042 build fix
From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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;
---
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists