Re: [usb:usb-next 36/38] drivers/usb/typec/tcpci.c:549: undefined reference to `__devm_regmap_init_i2c'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 29, 2018 at 03:42:02PM -0700, Guenter Roeck wrote:
> On Fri, Jun 29, 2018 at 12:52:34PM +0800, kbuild test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
> > head:   aaf3f4e925dc2bdc4715142103660285632a245c
> > commit: 990da41530b31ed7de29340ce1d78c04bee9670c [36/38] staging: typec: tcpci: move tcpci drivers out of staging
> > config: x86_64-randconfig-a0-06290727 (attached as .config)
> > compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> > reproduce:
> >         git checkout 990da41530b31ed7de29340ce1d78c04bee9670c
> >         # save the attached .config to linux build tree
> >         make ARCH=x86_64 
> > 
> > All errors (new ones prefixed by >>):
> > 
> >    drivers/usb/typec/tcpci.o: In function `tcpci_probe':
> > >> drivers/usb/typec/tcpci.c:549: undefined reference to `__devm_regmap_init_i2c'
> >    drivers/usb/typec/tcpci.o: In function `tcpci_i2c_driver_init':
> > >> drivers/usb/typec/tcpci.c:609: undefined reference to `i2c_register_driver'
> >    drivers/usb/typec/tcpci.o: In function `tcpci_i2c_driver_exit':
> > >> drivers/usb/typec/tcpci.c:609: undefined reference to `i2c_del_driver'
> >    drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_check_revision':
> > >> drivers/usb/typec/tcpci_rt1711h.c:218: undefined reference to `i2c_smbus_read_word_data'
> >    drivers/usb/typec/tcpci_rt1711h.c:225: undefined reference to `i2c_smbus_read_word_data'
> >    drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_probe':
> > >> drivers/usb/typec/tcpci_rt1711h.c:251: undefined reference to `__devm_regmap_init_i2c'
> >    drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_i2c_driver_init':
> > >> drivers/usb/typec/tcpci_rt1711h.c:308: undefined reference to `i2c_register_driver'
> >    drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_i2c_driver_exit':
> > >> drivers/usb/typec/tcpci_rt1711h.c:308: undefined reference to `i2c_del_driver'
> > 
> 
> This is because CONFIG_I2C=m but CONFIG_TYPEC_TCPCI=y. I didn't know this
> was even possible given the dependencies. When I load the configuration
> into menuconfig and save it, or if I run "make olddefconfig", the problem
> disappears.
> 
> Puzzled. Greg, did you update the patch already ?

Nope, this might be due to the merge, it should be "all fixed" now, if
not, please let me know.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux