All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/i3c/master.c:2279 i3c_i2c_notifier_call() error: uninitialized symbol 'ret'.
@ 2022-04-03 18:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-03 18:13 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3791 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Jamie Iles <quic_jiles@quicinc.com>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   be2d3ecedd9911fbfd7e55cc9ceac5f8b79ae4cf
commit: 72a4501b5d089772671360a6ec74d5350acf8c2e i3c: support dynamically added i2c devices
date:   4 weeks ago
:::::: branch date: 22 hours ago
:::::: commit date: 4 weeks ago
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220404/202204040221.Zr8Q8QIq-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
drivers/i3c/master.c:2279 i3c_i2c_notifier_call() error: uninitialized symbol 'ret'.

Old smatch warnings:
drivers/i3c/master.c:459 mode_show() warn: unsigned 'i3cbus->mode' is never less than zero.
drivers/i3c/master.c:2311 i3c_master_i2c_adapter_init() error: potentially dereferencing uninitialized 'i2cdev'.

vim +/ret +2279 drivers/i3c/master.c

3a379bbcea0af62 Boris Brezillon 2017-07-19  2247  
72a4501b5d08977 Jamie Iles      2022-01-17  2248  static int i3c_i2c_notifier_call(struct notifier_block *nb, unsigned long action,
72a4501b5d08977 Jamie Iles      2022-01-17  2249  				 void *data)
72a4501b5d08977 Jamie Iles      2022-01-17  2250  {
72a4501b5d08977 Jamie Iles      2022-01-17  2251  	struct i2c_adapter *adap;
72a4501b5d08977 Jamie Iles      2022-01-17  2252  	struct i2c_client *client;
72a4501b5d08977 Jamie Iles      2022-01-17  2253  	struct device *dev = data;
72a4501b5d08977 Jamie Iles      2022-01-17  2254  	struct i3c_master_controller *master;
72a4501b5d08977 Jamie Iles      2022-01-17  2255  	int ret;
72a4501b5d08977 Jamie Iles      2022-01-17  2256  
72a4501b5d08977 Jamie Iles      2022-01-17  2257  	if (dev->type != &i2c_client_type)
72a4501b5d08977 Jamie Iles      2022-01-17  2258  		return 0;
72a4501b5d08977 Jamie Iles      2022-01-17  2259  
72a4501b5d08977 Jamie Iles      2022-01-17  2260  	client = to_i2c_client(dev);
72a4501b5d08977 Jamie Iles      2022-01-17  2261  	adap = client->adapter;
72a4501b5d08977 Jamie Iles      2022-01-17  2262  
72a4501b5d08977 Jamie Iles      2022-01-17  2263  	if (adap->algo != &i3c_master_i2c_algo)
72a4501b5d08977 Jamie Iles      2022-01-17  2264  		return 0;
72a4501b5d08977 Jamie Iles      2022-01-17  2265  
72a4501b5d08977 Jamie Iles      2022-01-17  2266  	master = i2c_adapter_to_i3c_master(adap);
72a4501b5d08977 Jamie Iles      2022-01-17  2267  
72a4501b5d08977 Jamie Iles      2022-01-17  2268  	i3c_bus_maintenance_lock(&master->bus);
72a4501b5d08977 Jamie Iles      2022-01-17  2269  	switch (action) {
72a4501b5d08977 Jamie Iles      2022-01-17  2270  	case BUS_NOTIFY_ADD_DEVICE:
72a4501b5d08977 Jamie Iles      2022-01-17  2271  		ret = i3c_master_i2c_attach(adap, client);
72a4501b5d08977 Jamie Iles      2022-01-17  2272  		break;
72a4501b5d08977 Jamie Iles      2022-01-17  2273  	case BUS_NOTIFY_DEL_DEVICE:
72a4501b5d08977 Jamie Iles      2022-01-17  2274  		ret = i3c_master_i2c_detach(adap, client);
72a4501b5d08977 Jamie Iles      2022-01-17  2275  		break;
72a4501b5d08977 Jamie Iles      2022-01-17  2276  	}
72a4501b5d08977 Jamie Iles      2022-01-17  2277  	i3c_bus_maintenance_unlock(&master->bus);
72a4501b5d08977 Jamie Iles      2022-01-17  2278  
72a4501b5d08977 Jamie Iles      2022-01-17 @2279  	return ret;
72a4501b5d08977 Jamie Iles      2022-01-17  2280  }
72a4501b5d08977 Jamie Iles      2022-01-17  2281  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-03 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 18:13 drivers/i3c/master.c:2279 i3c_i2c_notifier_call() error: uninitialized symbol 'ret' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.