Messages in this thread | | | Date | Sat, 27 Nov 2021 04:14:36 +0800 | From | kernel test robot <> | Subject | [t-kristo-pm:usi-5.16-rfc-v2-bpf 28/30] drivers/i2c/i2c-core-of.c:82:26: error: implicit declaration of function 'i2c_new_probed_device'; did you mean 'i2c_new_scanned_device'? |
| |
tree: https://github.com/t-kristo/linux-pm usi-5.16-rfc-v2-bpf head: 241207b4769fca049dfcc4dbde0bda92e4f67027 commit: f668c459b7bfe36f2317924a5511622cd737e346 [28/30] CHROMIUM: i2c: Add device property for probing config: arc-buildonly-randconfig-r001-20211125 (https://download.01.org/0day-ci/archive/20211127/202111270451.3HOrQ9jQ-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/t-kristo/linux-pm/commit/f668c459b7bfe36f2317924a5511622cd737e346 git remote add t-kristo-pm https://github.com/t-kristo/linux-pm git fetch --no-tags t-kristo-pm usi-5.16-rfc-v2-bpf git checkout f668c459b7bfe36f2317924a5511622cd737e346 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/i2c/i2c-core-of.c: In function 'of_i2c_register_device': >> drivers/i2c/i2c-core-of.c:82:26: error: implicit declaration of function 'i2c_new_probed_device'; did you mean 'i2c_new_scanned_device'? [-Werror=implicit-function-declaration] 82 | client = i2c_new_probed_device(adap, &info, addrs, NULL); | ^~~~~~~~~~~~~~~~~~~~~ | i2c_new_scanned_device drivers/i2c/i2c-core-of.c:82:24: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 82 | client = i2c_new_probed_device(adap, &info, addrs, NULL); | ^ cc1: some warnings being treated as errors
vim +82 drivers/i2c/i2c-core-of.c
64 65 static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap, 66 struct device_node *node) 67 { 68 struct i2c_client *client; 69 struct i2c_board_info info; 70 int ret; 71 72 dev_dbg(&adap->dev, "of_i2c: register %pOF\n", node); 73 74 ret = of_i2c_get_board_info(&adap->dev, node, &info); 75 if (ret) 76 return ERR_PTR(ret); 77 78 /* Allow device property to enable probing before init */ 79 if (of_get_property(node, "linux,probed", NULL)) { 80 unsigned short addrs[] = { info.addr, I2C_CLIENT_END }; 81 > 82 client = i2c_new_probed_device(adap, &info, addrs, NULL); 83 } else { 84 client = i2c_new_client_device(adap, &info); 85 } 86 87 if (IS_ERR(client)) 88 dev_err(&adap->dev, "of_i2c: Failure registering %pOF\n", node); 89 90 return client; 91 } 92
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |