From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757894Ab1I2Uev (ORCPT ); Thu, 29 Sep 2011 16:34:51 -0400 Received: from lunge.queued.net ([173.255.254.236]:45618 "EHLO lunge.queued.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757817Ab1I2Uet (ORCPT ); Thu, 29 Sep 2011 16:34:49 -0400 Date: Thu, 29 Sep 2011 13:34:46 -0700 From: Andres Salomon To: Randy Dunlap Cc: Stephen Rothwell , linux-next@vger.kernel.org, LKML , Andrew Morton , x86 maintainers , dsd@laptop.org Subject: Re: [PATCH] olpc: olpc-xo1-sci.c is an input driver, depends on INPUT Message-ID: <20110929133446.40ff3250@queued.net> In-Reply-To: <4E84D259.5020008@xenotime.net> References: <20110929165730.661cf28c9bb27b8a85432cd2@canb.auug.org.au> <4E84D259.5020008@xenotime.net> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Sep 2011 13:17:29 -0700 Randy Dunlap wrote: > From: Randy Dunlap > > Fix build errors when CONFIG_INPUT is disabled (shortened list): > > olpc-xo1-sci.c:(.text+0x1aee6): undefined reference to `input_event' > olpc-xo1-sci.c:(.text+0x1b077): undefined reference to > `input_unregister_device' olpc-xo1-sci.c:(.text+0x1b081): undefined > reference to `input_free_device' > arch/x86/built-in.o:olpc-xo1-sci.c:(.text+0x1b270): more undefined > references to `input_event' follow > olpc-xo1-sci.c:(.devinit.text+0x155): undefined reference to > `input_allocate_device' olpc-xo1-sci.c:(.devinit.text+0x1a4): > undefined reference to `input_register_device' > > Signed-off-by: Randy Dunlap > Cc: Andres Salomon > --- > Found in linux-next but also applies to mainline. > > arch/x86/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- next-2011-0929.orig/arch/x86/Kconfig > +++ next-2011-0929/arch/x86/Kconfig > @@ -2052,7 +2052,7 @@ config OLPC_XO1_RTC > > config OLPC_XO1_SCI > bool "OLPC XO-1 SCI extras" > - depends on OLPC && OLPC_XO1_PM > + depends on OLPC && OLPC_XO1_PM && INPUT > select POWER_SUPPLY > select GPIO_CS5535 > select MFD_CORE Thanks! Hm. This might actually need a 'select INPUT' though, since OLPC_XO1_SCI is bool while INPUT is tristate. Sigh, bool..