All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: Andres Salomon <dilinger@queued.net>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	x86 maintainers <x86@kernel.org>, Chris Ball <cjb@laptop.org>,
	Jon Nettleton <jon.nettleton@gmail.com>,
	dsd@laptop.org
Subject: Re: [PATCH -next] olpc: fix olpc-xo1-sci.c build when INPUT=m
Date: Fri, 13 Jan 2012 15:51:34 -0800	[thread overview]
Message-ID: <4F10C386.5030109@xenotime.net> (raw)
In-Reply-To: <20120113143122.3277e7a1@queued.net>

On 01/13/2012 02:31 PM, Andres Salomon wrote:
> On Fri, 13 Jan 2012 14:34:17 -0800
> Randy Dunlap <rdunlap@xenotime.net> wrote:
> 
>> On 01/10/2012 01:30 PM, Randy Dunlap wrote:
>>> From: Randy Dunlap <rdunlap@xenotime.net>
>>>
>>> Fix build errors when CONFIG_INPUT=m.
>>> This is not pretty, but all of the OLPC kconfig options
>>> are bool instead of tristate.
> 
> How about 'select INPUT' instead?

No, we don't select major subsystems to be enabled.
Linus has written about that...

> Cc'ing dsd, as he's the one who worked on the SCI code.  I'm still
> annoyed that this stuff is bool rather than tristate.. Might be worth
> spending some time allowing it to be modular, if we can figure out a
> non-racy solution.

Yes, tristate would be a Good change.

> 
>>
>>
>> ping.
>>
>> This patch is still needed in linux-next (20120113).
>>
>>
>>> arch/x86/built-in.o: In function `send_lid_state':
>>> olpc-xo1-sci.c:(.text+0x1d323): undefined reference to `input_event'
>>> olpc-xo1-sci.c:(.text+0x1d338): undefined reference to `input_event'
>>> arch/x86/built-in.o: In function `free_ebook_switch':
>>> olpc-xo1-sci.c:(.text+0x1d529): undefined reference to
>>> `input_unregister_device' olpc-xo1-sci.c:(.text+0x1d533): undefined
>>> reference to `input_free_device' arch/x86/built-in.o: In function
>>> `free_power_button': olpc-xo1-sci.c:(.text+0x1d549): undefined
>>> reference to `input_unregister_device'
>>> olpc-xo1-sci.c:(.text+0x1d553): undefined reference to
>>> `input_free_device' arch/x86/built-in.o: In function
>>> `send_ebook_state': olpc-xo1-sci.c:(.text+0x1d632): undefined
>>> reference to `input_event' olpc-xo1-sci.c:(.text+0x1d647):
>>> undefined reference to `input_event' arch/x86/built-in.o: In
>>> function `xo1_sci_intr': olpc-xo1-sci.c:(.text+0x1d78e): undefined
>>> reference to `input_event' olpc-xo1-sci.c:(.text+0x1d7a3):
>>> undefined reference to `input_event'
>>> olpc-xo1-sci.c:(.text+0x1d7be): undefined reference to
>>> `input_event' arch/x86/built-in.o:olpc-xo1-sci.c:(.text+0x1d7d3):
>>> more undefined references to `input_event' follow
>>> arch/x86/built-in.o: In function `free_lid_switch':
>>> olpc-xo1-sci.c:(.text+0x1d7fd): undefined reference to
>>> `input_unregister_device' olpc-xo1-sci.c:(.text+0x1d807): undefined
>>> reference to `input_free_device' arch/x86/built-in.o: In function
>>> `setup_lid_switch': 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' olpc-xo1-sci.c:(.devinit.text+0x1ce):
>>> undefined reference to `input_unregister_device'
>>> olpc-xo1-sci.c:(.devinit.text+0x1d8): undefined reference to
>>> `input_free_device' arch/x86/built-in.o: In function
>>> `xo1_sci_probe': olpc-xo1-sci.c:(.devinit.text+0x235): undefined
>>> reference to `input_allocate_device'
>>> olpc-xo1-sci.c:(.devinit.text+0x285): undefined reference to
>>> `input_register_device' olpc-xo1-sci.c:(.devinit.text+0x299):
>>> undefined reference to `input_free_device'
>>> olpc-xo1-sci.c:(.devinit.text+0x2e1): undefined reference to
>>> `input_register_device' olpc-xo1-sci.c:(.devinit.text+0x2f5):
>>> undefined reference to `input_free_device'
>>> olpc-xo1-sci.c:(.devinit.text+0x54c): undefined reference to
>>> `input_allocate_device'
>>>
>>> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
>>> Cc:	Andres Salomon <dilinger@queued.net>
>>> Cc:	Chris Ball <cjb@laptop.org>
>>> Cc:	Jon Nettleton <jon.nettleton@gmail.com>
>>> ---
>>>  arch/x86/Kconfig |    1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> --- linux-next-20120110.orig/arch/x86/Kconfig
>>> +++ linux-next-20120110/arch/x86/Kconfig
>>> @@ -2132,6 +2132,7 @@ config OLPC_XO1_RTC
>>>  config OLPC_XO1_SCI
>>>  	bool "OLPC XO-1 SCI extras"
>>>  	depends on OLPC && OLPC_XO1_PM
>>> +	depends on INPUT=y
>>>  	select POWER_SUPPLY
>>>  	select GPIO_CS5535
>>>  	select MFD_CORE
>>>
>>
>>


-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

      reply	other threads:[~2012-01-13 22:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-10  5:44 linux-next: Tree for Jan 10 Stephen Rothwell
2012-01-10 21:30 ` [PATCH -next] olpc: fix olpc-xo1-sci.c build when INPUT=m Randy Dunlap
2012-01-13 22:34   ` Randy Dunlap
2012-01-13 22:34     ` Randy Dunlap
2012-01-13 22:31     ` Andres Salomon
2012-01-13 23:51       ` Randy Dunlap [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F10C386.5030109@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=akpm@linux-foundation.org \
    --cc=cjb@laptop.org \
    --cc=dilinger@queued.net \
    --cc=dsd@laptop.org \
    --cc=jon.nettleton@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.