drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used

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

 



Hi Mauro,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6e764bcd1cf72a2846c0e53d3975a09b242c04c9
commit: aa31f6514047da6460e3db8247c2cefe3e08f6d9 media: atomisp: allow building the driver again
date:   1 year, 3 months ago
config: x86_64-randconfig-r003-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d26000e4cc2bc65e207a84fa26cb6e374d60aa12)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aa31f6514047da6460e3db8247c2cefe3e08f6d9
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout aa31f6514047da6460e3db8247c2cefe3e08f6d9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
           int ret = -1;
               ^
   1 warning generated.


vim +/ret +567 drivers/staging/media/atomisp/i2c/atomisp-gc2235.c

ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  563  
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  564  static int gpio_ctrl(struct v4l2_subdev *sd, bool flag)
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  565  {
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  566  	struct gc2235_device *dev = to_gc2235_sensor(sd);
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19 @567  	int ret = -1;
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  568  
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  569  	if (!dev || !dev->platform_data)
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  570  		return -ENODEV;
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  571  
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  572  	ret |= dev->platform_data->gpio1_ctrl(sd, !flag);
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  573  	usleep_range(60, 90);
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  574  	return dev->platform_data->gpio0_ctrl(sd, flag);
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  575  }
ad85094b293e40 Mauro Carvalho Chehab 2020-04-19  576  

:::::: The code at line 567 was first introduced by commit
:::::: ad85094b293e40e7a2f831b0311a389d952ebd5e Revert "media: staging: atomisp: Remove driver"

:::::: TO: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux