All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used
@ 2021-08-25 14:09 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-25 14:09 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: clang-built-linux, kbuild-all, linux-kernel, linux-media

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

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@intel.com>

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@kernel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33056 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used
@ 2021-08-25 14:09 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-25 14:09 UTC (permalink / raw)
  To: kbuild-all

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

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@intel.com>

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@kernel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33056 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used
@ 2021-06-05 23:18 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-06-05 23:18 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: kbuild-all, clang-built-linux, linux-kernel, linux-media

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

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@intel.com>

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@kernel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39115 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used
@ 2021-06-05 23:18 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-06-05 23:18 UTC (permalink / raw)
  To: kbuild-all

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

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@intel.com>

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@kernel.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39115 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-25 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 14:09 drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used kernel test robot
2021-08-25 14:09 ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-06-05 23:18 kernel test robot
2021-06-05 23:18 ` 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.