tree: git://linuxtv.org/media_tree.git master head: 8514509ba5933f4e4ade0d5d81be117f18c1ebd2 commit: 1980bfa67f19d628df30b9b5b76bca37c2a76dde [276/295] media: dvbdev: fix building on ia64 config: i386-randconfig-a1-201809 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 1980bfa67f19d628df30b9b5b76bca37c2a76dde # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/media/dvb-core/dvbdev.o: In function `dvb_module_probe': >> drivers/media/dvb-core/dvbdev.c:965: undefined reference to `i2c_new_device' >> drivers/media/dvb-core/dvbdev.c:972: undefined reference to `i2c_unregister_device' drivers/media/dvb-core/dvbdev.o: In function `dvb_module_release': drivers/media/dvb-core/dvbdev.c:987: undefined reference to `i2c_unregister_device' vim +965 drivers/media/dvb-core/dvbdev.c ^1da177e drivers/media/dvb/dvb-core/dvbdev.c Linus Torvalds 2005-04-16 944 1980bfa6 drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-07 945 #if IS_ENABLED(CONFIG_I2C) 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 946 struct i2c_client *dvb_module_probe(const char *module_name, 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 947 const char *name, 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 948 struct i2c_adapter *adap, 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 949 unsigned char addr, 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 950 void *platform_data) 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 951 { 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 952 struct i2c_client *client; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 953 struct i2c_board_info *board_info; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 954 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 955 board_info = kzalloc(sizeof(*board_info), GFP_KERNEL); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 956 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 957 if (name) 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 958 strlcpy(board_info->type, name, I2C_NAME_SIZE); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 959 else 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 960 strlcpy(board_info->type, module_name, I2C_NAME_SIZE); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 961 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 962 board_info->addr = addr; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 963 board_info->platform_data = platform_data; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 964 request_module(module_name); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 @965 client = i2c_new_device(adap, board_info); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 966 if (client == NULL || client->dev.driver == NULL) { 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 967 kfree(board_info); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 968 return NULL; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 969 } 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 970 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 971 if (!try_module_get(client->dev.driver->owner)) { 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 @972 i2c_unregister_device(client); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 973 client = NULL; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 974 } 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 975 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 976 kfree(board_info); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 977 return client; 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 978 } 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 979 EXPORT_SYMBOL_GPL(dvb_module_probe); 8f569c0b drivers/media/dvb-core/dvbdev.c Mauro Carvalho Chehab 2018-03-02 980 :::::: The code at line 965 was first introduced by commit :::::: 8f569c0b4e6b6bd5db1d09551b2df87d912f124e media: dvb-core: add helper functions for I2C binding :::::: TO: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx> :::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip