tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e5220dd16778fe21d234a64e36cf50b54110025f commit: aa31f6514047da6460e3db8247c2cefe3e08f6d9 media: atomisp: allow building the driver again date: 1 year, 1 month ago config: x86_64-randconfig-r023-20210606 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8ec9aa236e325fd4629cfeefac2919302e14d61a) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # 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