From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/scsi/ufs/ufs-mediatek.c:530:17: sparse: sparse: dubious: x & !y
Date: Thu, 25 Feb 2021 23:31:15 +0800 [thread overview]
Message-ID: <202102252308.PLrnQhLA-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2912 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Stanley Chu <stanley.chu@mediatek.com>
CC: "Martin K. Petersen" <martin.petersen@oracle.com>
CC: Pengshun Zhao <pengshun.zhao@mediatek.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 29c395c77a9a514c5857c45ceae2665e9bd99ac7
commit: 488edafb1120f715bebd80b6fe4089f83fb082b2 scsi: ufs-mediatek: Introduce low-power mode for device power supply
date: 9 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 9 months ago
config: arm64-randconfig-s031-20210225 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-229-g60c1f270-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=488edafb1120f715bebd80b6fe4089f83fb082b2
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 488edafb1120f715bebd80b6fe4089f83fb082b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/scsi/ufs/ufs-mediatek.c:182:5: sparse: sparse: symbol 'ufs_mtk_wait_link_state' was not declared. Should it be static?
>> drivers/scsi/ufs/ufs-mediatek.c:530:17: sparse: sparse: dubious: x & !y
vim +530 drivers/scsi/ufs/ufs-mediatek.c
fdb2c232497296 Stanley Chu 2020-01-17 524
488edafb1120f7 Stanley Chu 2020-06-01 525 static void ufs_mtk_vreg_set_lpm(struct ufs_hba *hba, bool lpm)
488edafb1120f7 Stanley Chu 2020-06-01 526 {
488edafb1120f7 Stanley Chu 2020-06-01 527 if (!hba->vreg_info.vccq2)
488edafb1120f7 Stanley Chu 2020-06-01 528 return;
488edafb1120f7 Stanley Chu 2020-06-01 529
488edafb1120f7 Stanley Chu 2020-06-01 @530 if (lpm & !hba->vreg_info.vcc->enabled)
488edafb1120f7 Stanley Chu 2020-06-01 531 regulator_set_mode(hba->vreg_info.vccq2->reg,
488edafb1120f7 Stanley Chu 2020-06-01 532 REGULATOR_MODE_IDLE);
488edafb1120f7 Stanley Chu 2020-06-01 533 else if (!lpm)
488edafb1120f7 Stanley Chu 2020-06-01 534 regulator_set_mode(hba->vreg_info.vccq2->reg,
488edafb1120f7 Stanley Chu 2020-06-01 535 REGULATOR_MODE_NORMAL);
488edafb1120f7 Stanley Chu 2020-06-01 536 }
488edafb1120f7 Stanley Chu 2020-06-01 537
---
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: 35477 bytes --]
next reply other threads:[~2021-02-25 15:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-25 15:31 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-25 15:35 drivers/scsi/ufs/ufs-mediatek.c:530:17: sparse: sparse: dubious: x & !y Dan Carpenter
2021-02-08 8:28 kernel test robot
2021-02-08 8:28 ` kernel test robot
2021-02-06 18:21 kernel test robot
2020-12-05 16:41 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=202102252308.PLrnQhLA-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.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.