From: kernel test robot <lkp@intel.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used
Date: Sun, 6 Jun 2021 07:18:21 +0800 [thread overview]
Message-ID: <202106060715.hUOi6lyM-lkp@intel.com> (raw)
[-- 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 --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:567:6: warning: variable 'ret' set but not used
Date: Sun, 06 Jun 2021 07:18:21 +0800 [thread overview]
Message-ID: <202106060715.hUOi6lyM-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2021-06-05 23:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-05 23:18 kernel test robot [this message]
2021-06-05 23:18 ` 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
2021-08-25 14:09 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202106060715.hUOi6lyM-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.