lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210208082824.GH219708@shao2-debian>
Date:   Mon, 8 Feb 2021 16:28:24 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Stanley Chu <stanley.chu@...iatek.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        "Martin K. Petersen" <martin.petersen@...cle.com>,
        Pengshun Zhao <pengshun.zhao@...iatek.com>
Subject: drivers/scsi/ufs/ufs-mediatek.c:530:17: sparse: sparse: dubious: x &
 !y

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   61556703b610a104de324e4f061dc6cf7b218b46
commit: 488edafb1120f715bebd80b6fe4089f83fb082b2 scsi: ufs-mediatek: Introduce low-power mode for device power supply
config: arm64-randconfig-s031-20210207 (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-215-g0fb77bb6-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 <rong.a.chen@...el.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@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (28825 bytes)

_______________________________________________
kbuild mailing list -- kbuild@...ts.01.org
To unsubscribe send an email to kbuild-leave@...ts.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ