linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m
@ 2014-08-13  7:22 Randy Dunlap
  2014-08-13  7:40 ` Chanwoo Choi
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2014-08-13  7:22 UTC (permalink / raw)
  To: MyungJoo Ham, Chanwoo Choi; +Cc: LKML, linux-next@vger.kernel.org

From: Randy Dunlap <rdunlap@infradead.org>

Fix build errors in extcon-sm5502.c by making EXTCON_SM5502 depend
on I2C since it selects REGMAP_I2C.  The build errors happen when
CONFIG_I2C=m and CONFIG_EXTCON_SM5502=y. This Kconfig change causes
CONFIG_EXTCON_SM5502 to be =m when CONFIG_I2C=m.

drivers/built-in.o: In function `regmap_smbus_byte_reg_read':
regmap-i2c.c:(.text+0x5030a): undefined reference to `i2c_smbus_read_byte_data'
drivers/built-in.o: In function `regmap_smbus_byte_reg_write':
regmap-i2c.c:(.text+0x50338): undefined reference to `i2c_smbus_write_byte_data'
drivers/built-in.o: In function `regmap_smbus_word_reg_read':
regmap-i2c.c:(.text+0x50356): undefined reference to `i2c_smbus_read_word_data'
drivers/built-in.o: In function `regmap_smbus_word_reg_write':
regmap-i2c.c:(.text+0x50384): undefined reference to `i2c_smbus_write_word_data'
drivers/built-in.o: In function `regmap_i2c_read':
regmap-i2c.c:(.text+0x503cf): undefined reference to `i2c_transfer'
drivers/built-in.o: In function `regmap_i2c_gather_write':
regmap-i2c.c:(.text+0x50442): undefined reference to `i2c_transfer'
drivers/built-in.o: In function `regmap_i2c_write':
regmap-i2c.c:(.text+0x50474): undefined reference to `i2c_master_send'
drivers/built-in.o: In function `sm5502_muic_i2c_init':
extcon-sm5502.c:(.init.text+0x6630): undefined reference to `i2c_register_driver'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc:	MyungJoo Ham <myungjoo.ham@samsung.com>
Cc:	Chanwoo Choi <cw00.choi@samsung.com>
---
 drivers/extcon/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Index: linux-next-20140813/drivers/extcon/Kconfig
===================================================================
--- linux-next-20140813.orig/drivers/extcon/Kconfig
+++ linux-next-20140813/drivers/extcon/Kconfig
@@ -72,6 +72,7 @@ config EXTCON_PALMAS
 
 config EXTCON_SM5502
 	tristate "SM5502 EXTCON support"
+	depends on I2C
 	select IRQ_DOMAIN
 	select REGMAP_I2C
 	select REGMAP_IRQ

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m
  2014-08-13  7:22 [PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m Randy Dunlap
@ 2014-08-13  7:40 ` Chanwoo Choi
  2014-08-15 23:36   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Chanwoo Choi @ 2014-08-13  7:40 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: MyungJoo Ham, LKML, linux-next@vger.kernel.org

Dear Randy,

Thanks for your report.

I catched this issue. So, I fix this bug already. You can check it on following url:
- http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-test&id=5e519b04db6c5b42f8d8ee246c16903c130b5fd5


Best Regards,
Chanwoo Choi

On 08/13/2014 04:22 PM, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Fix build errors in extcon-sm5502.c by making EXTCON_SM5502 depend
> on I2C since it selects REGMAP_I2C.  The build errors happen when
> CONFIG_I2C=m and CONFIG_EXTCON_SM5502=y. This Kconfig change causes
> CONFIG_EXTCON_SM5502 to be =m when CONFIG_I2C=m.
> 
> drivers/built-in.o: In function `regmap_smbus_byte_reg_read':
> regmap-i2c.c:(.text+0x5030a): undefined reference to `i2c_smbus_read_byte_data'
> drivers/built-in.o: In function `regmap_smbus_byte_reg_write':
> regmap-i2c.c:(.text+0x50338): undefined reference to `i2c_smbus_write_byte_data'
> drivers/built-in.o: In function `regmap_smbus_word_reg_read':
> regmap-i2c.c:(.text+0x50356): undefined reference to `i2c_smbus_read_word_data'
> drivers/built-in.o: In function `regmap_smbus_word_reg_write':
> regmap-i2c.c:(.text+0x50384): undefined reference to `i2c_smbus_write_word_data'
> drivers/built-in.o: In function `regmap_i2c_read':
> regmap-i2c.c:(.text+0x503cf): undefined reference to `i2c_transfer'
> drivers/built-in.o: In function `regmap_i2c_gather_write':
> regmap-i2c.c:(.text+0x50442): undefined reference to `i2c_transfer'
> drivers/built-in.o: In function `regmap_i2c_write':
> regmap-i2c.c:(.text+0x50474): undefined reference to `i2c_master_send'
> drivers/built-in.o: In function `sm5502_muic_i2c_init':
> extcon-sm5502.c:(.init.text+0x6630): undefined reference to `i2c_register_driver'
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc:	MyungJoo Ham <myungjoo.ham@samsung.com>
> Cc:	Chanwoo Choi <cw00.choi@samsung.com>
> ---
>  drivers/extcon/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> Index: linux-next-20140813/drivers/extcon/Kconfig
> ===================================================================
> --- linux-next-20140813.orig/drivers/extcon/Kconfig
> +++ linux-next-20140813/drivers/extcon/Kconfig
> @@ -72,6 +72,7 @@ config EXTCON_PALMAS
>  
>  config EXTCON_SM5502
>  	tristate "SM5502 EXTCON support"
> +	depends on I2C
>  	select IRQ_DOMAIN
>  	select REGMAP_I2C
>  	select REGMAP_IRQ
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m
  2014-08-13  7:40 ` Chanwoo Choi
@ 2014-08-15 23:36   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2014-08-15 23:36 UTC (permalink / raw)
  To: Chanwoo Choi
  Cc: MyungJoo Ham, LKML, linux-next@vger.kernel.org, Stephen Rothwell

On 08/13/14 00:40, Chanwoo Choi wrote:
> Dear Randy,
> 
> Thanks for your report.
> 
> I catched this issue. So, I fix this bug already. You can check it on following url:
> - http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-test&id=5e519b04db6c5b42f8d8ee246c16903c130b5fd5
> 

linux-next of 20140815 still has this build error.
Please get this patch into linux-next.

Thanks.

> 
> Best Regards,
> Chanwoo Choi
> 
> On 08/13/2014 04:22 PM, Randy Dunlap wrote:
>> From: Randy Dunlap <rdunlap@infradead.org>
>>
>> Fix build errors in extcon-sm5502.c by making EXTCON_SM5502 depend
>> on I2C since it selects REGMAP_I2C.  The build errors happen when
>> CONFIG_I2C=m and CONFIG_EXTCON_SM5502=y. This Kconfig change causes
>> CONFIG_EXTCON_SM5502 to be =m when CONFIG_I2C=m.
>>
>> drivers/built-in.o: In function `regmap_smbus_byte_reg_read':
>> regmap-i2c.c:(.text+0x5030a): undefined reference to `i2c_smbus_read_byte_data'
>> drivers/built-in.o: In function `regmap_smbus_byte_reg_write':
>> regmap-i2c.c:(.text+0x50338): undefined reference to `i2c_smbus_write_byte_data'
>> drivers/built-in.o: In function `regmap_smbus_word_reg_read':
>> regmap-i2c.c:(.text+0x50356): undefined reference to `i2c_smbus_read_word_data'
>> drivers/built-in.o: In function `regmap_smbus_word_reg_write':
>> regmap-i2c.c:(.text+0x50384): undefined reference to `i2c_smbus_write_word_data'
>> drivers/built-in.o: In function `regmap_i2c_read':
>> regmap-i2c.c:(.text+0x503cf): undefined reference to `i2c_transfer'
>> drivers/built-in.o: In function `regmap_i2c_gather_write':
>> regmap-i2c.c:(.text+0x50442): undefined reference to `i2c_transfer'
>> drivers/built-in.o: In function `regmap_i2c_write':
>> regmap-i2c.c:(.text+0x50474): undefined reference to `i2c_master_send'
>> drivers/built-in.o: In function `sm5502_muic_i2c_init':
>> extcon-sm5502.c:(.init.text+0x6630): undefined reference to `i2c_register_driver'
>>
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> Cc:	MyungJoo Ham <myungjoo.ham@samsung.com>
>> Cc:	Chanwoo Choi <cw00.choi@samsung.com>
>> ---
>>  drivers/extcon/Kconfig |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> Index: linux-next-20140813/drivers/extcon/Kconfig
>> ===================================================================
>> --- linux-next-20140813.orig/drivers/extcon/Kconfig
>> +++ linux-next-20140813/drivers/extcon/Kconfig
>> @@ -72,6 +72,7 @@ config EXTCON_PALMAS
>>  
>>  config EXTCON_SM5502
>>  	tristate "SM5502 EXTCON support"
>> +	depends on I2C
>>  	select IRQ_DOMAIN
>>  	select REGMAP_I2C
>>  	select REGMAP_IRQ
>>
> 
> --


-- 
~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-15 23:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13  7:22 [PATCH -next] extcon: fix extcon-sm5502 build when CONFIG_I2C=m Randy Dunlap
2014-08-13  7:40 ` Chanwoo Choi
2014-08-15 23:36   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).