Re: [PATCH v13 2/4] i2c: Add support for Intel LJCA USB I2C driver

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

 



Hi Wentong,

kernel test robot noticed the following build errors:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on broonie-spi/for-next linus/master v6.5 next-20230831]
[cannot apply to usb/usb-testing usb/usb-next usb/usb-linus]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Wentong-Wu/usb-Add-support-for-Intel-LJCA-device/20230904-112200
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
patch link:    https://lore.kernel.org/r/1693797462-4833-3-git-send-email-wentong.wu%40intel.com
patch subject: [PATCH v13 2/4] i2c: Add support for Intel LJCA USB I2C driver
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20230904/202309041328.xzeaJFiO-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230904/202309041328.xzeaJFiO-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309041328.xzeaJFiO-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/i2c/busses/i2c-ljca.c: In function 'ljca_i2c_probe':
>> drivers/i2c/busses/i2c-ljca.c:311:17: error: implicit declaration of function 'acpi_dev_clear_dependencies' [-Werror=implicit-function-declaration]
     311 |                 acpi_dev_clear_dependencies(ACPI_COMPANION(&ljca_i2c->adap.dev));
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/acpi_dev_clear_dependencies +311 drivers/i2c/busses/i2c-ljca.c

   270	
   271	static int ljca_i2c_probe(struct auxiliary_device *auxdev,
   272				  const struct auxiliary_device_id *aux_dev_id)
   273	{
   274		struct ljca_client *ljca = auxiliary_dev_to_ljca_client(auxdev);
   275		struct ljca_i2c_dev *ljca_i2c;
   276		int ret;
   277	
   278		ljca_i2c = devm_kzalloc(&auxdev->dev, sizeof(*ljca_i2c), GFP_KERNEL);
   279		if (!ljca_i2c)
   280			return -ENOMEM;
   281	
   282		ljca_i2c->ljca = ljca;
   283		ljca_i2c->i2c_info = dev_get_platdata(&auxdev->dev);
   284	
   285		ljca_i2c->adap.owner = THIS_MODULE;
   286		ljca_i2c->adap.class = I2C_CLASS_HWMON;
   287		ljca_i2c->adap.algo = &ljca_i2c_algo;
   288		ljca_i2c->adap.quirks = &ljca_i2c_quirks;
   289		ljca_i2c->adap.dev.parent = &auxdev->dev;
   290	
   291		snprintf(ljca_i2c->adap.name, sizeof(ljca_i2c->adap.name), "%s-%s-%d",
   292			 dev_name(&auxdev->dev), dev_name(auxdev->dev.parent),
   293			 ljca_i2c->i2c_info->id);
   294	
   295		device_set_node(&ljca_i2c->adap.dev, dev_fwnode(&auxdev->dev));
   296	
   297		i2c_set_adapdata(&ljca_i2c->adap, ljca_i2c);
   298		auxiliary_set_drvdata(auxdev, ljca_i2c);
   299	
   300		ret = ljca_i2c_init(ljca_i2c, ljca_i2c->i2c_info->id);
   301		if (ret)
   302			return dev_err_probe(&auxdev->dev, -EIO,
   303					     "i2c init failed id: %d\n",
   304					     ljca_i2c->i2c_info->id);
   305	
   306		ret = devm_i2c_add_adapter(&auxdev->dev, &ljca_i2c->adap);
   307		if (ret)
   308			return ret;
   309	
   310		if (has_acpi_companion(&ljca_i2c->adap.dev))
 > 311			acpi_dev_clear_dependencies(ACPI_COMPANION(&ljca_i2c->adap.dev));
   312	
   313		return 0;
   314	}
   315	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux