From: kernel test robot <lkp@intel.com>
To: Yusuf Khan <yusisamerican@gmail.com>, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
jasowang@redhat.com, mikelley@microsoft.com, mst@redhat.com,
gregkh@linuxfoundation.org, javier@javigon.com, arnd@arndb.de,
will@kernel.org, axboe@kernel.dk,
Yusuf Khan <yusisamerican@gmail.com>,
Christoph Grenz <christophg+lkml@grenz-bonn.de>
Subject: Re: [PATCH v8 1/2] drivers: ddcci: upstream DDCCI driver
Date: Mon, 21 Mar 2022 20:01:31 +0800 [thread overview]
Message-ID: <202203211954.b6DnJ7FO-lkp@intel.com> (raw)
In-Reply-To: <20220321031438.14762-1-yusisamerican@gmail.com>
Hi Yusuf,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linux/master linus/master lee-backlight/for-backlight-next v5.17 next-20220318]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Yusuf-Khan/drivers-ddcci-upstream-DDCCI-driver/20220321-111557
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 37fd83916da2e4cae03d350015c82a67b1b334c4
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20220321/202203211954.b6DnJ7FO-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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://github.com/0day-ci/linux/commit/42317fc284bbedc623892f2b20e404df80f8c393
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yusuf-Khan/drivers-ddcci-upstream-DDCCI-driver/20220321-111557
git checkout 42317fc284bbedc623892f2b20e404df80f8c393
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/char/ drivers/soc/
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/char/ddcci.c:1157:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->module) || (strcmp(device->module, id->module) == 0))) {
^~~~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:49: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1157:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->module) || (strcmp(device->module, id->module) == 0))) {
^~~~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:31: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1156:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->vendor) || (strcmp(device->vendor, id->vendor) == 0))
^~~~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:49: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1156:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->vendor) || (strcmp(device->vendor, id->vendor) == 0))
^~~~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:31: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1155:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->model) || (strcmp(device->model, id->model) == 0))
^~~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:49: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1155:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->model) || (strcmp(device->model, id->model) == 0))
^~~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:31: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1154:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->type) || (strcmp(device->type, id->type) == 0))
^~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:49: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1154:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
&& (IS_ANY_ID(id->type) || (strcmp(device->type, id->type) == 0))
^~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:31: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1153:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
if ((IS_ANY_ID(id->prot) || (strcmp(device->prot, id->prot) == 0))
^~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:49: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
drivers/char/ddcci.c:1153:8: warning: result of comparison of constant -1 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
if ((IS_ANY_ID(id->prot) || (strcmp(device->prot, id->prot) == 0))
^~~~~~~~~~~~~~~~~~~
drivers/char/ddcci.c:1146:31: note: expanded from macro 'IS_ANY_ID'
#define IS_ANY_ID(x) (((x)[0] == -1) && ((x)[7] == -1))
~~~~~~ ^ ~~
>> drivers/char/ddcci.c:1206:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret = 0;
^
11 warnings generated.
vim +/ret +1206 drivers/char/ddcci.c
1201
1202 static void ddcci_device_remove(struct device *dev)
1203 {
1204 struct ddcci_device *device = ddcci_verify_device(dev);
1205 struct ddcci_driver *driver;
> 1206 int ret = 0;
1207
1208 if (!device)
1209 return;
1210 driver = to_ddcci_driver(dev->driver);
1211
1212 if (driver->remove)
1213 ret = driver->remove(device);
1214 }
1215
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-03-21 12:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 3:14 [PATCH v8 1/2] drivers: ddcci: upstream DDCCI driver Yusuf Khan
2022-03-21 3:14 ` [PATCH v8 2/2] " Yusuf Khan
2022-03-21 6:19 ` Greg KH
2022-03-21 12:01 ` kernel test robot [this message]
2022-03-21 14:34 ` [PATCH v8 1/2] " 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=202203211954.b6DnJ7FO-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=axboe@kernel.dk \
--cc=christophg+lkml@grenz-bonn.de \
--cc=gregkh@linuxfoundation.org \
--cc=jasowang@redhat.com \
--cc=javier@javigon.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mikelley@microsoft.com \
--cc=mst@redhat.com \
--cc=will@kernel.org \
--cc=yusisamerican@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox