:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: Manual check reason: "low confidence static check warning: 
drivers/ntb/test/ntb_perf.c:1445:9: warning: shift by negative count ('-1') 
[-Wanalyzer-shift-count-negative]"
:::::: 

CC: kbuild-...@lists.01.org
BCC: l...@intel.com
CC: Linux Memory Management List <linux...@kvack.org>
TO: Alexander Fomichev <a.fomic...@yadro.com>
CC: Jon Mason <jdma...@kudzu.us>
CC: Dave Jiang <dave.ji...@intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   f2528c29385819a84480cacef4886b049761e2c5
commit: d3b4b9c2142ca288f81a373841989f592f138934 [3554/8914] ntb_perf: extend 
with doorbell latency measurement
:::::: branch date: 2 days ago
:::::: commit date: 3 weeks ago
config: arm-randconfig-c002-20220710 
(https://download.01.org/0day-ci/archive/20220710/202207101631.ddysxhl9-...@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0
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/next/linux-next.git/commit/?id=d3b4b9c2142ca288f81a373841989f592f138934
        git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout d3b4b9c2142ca288f81a373841989f592f138934
        # save the config file
         ARCH=arm KBUILD_USERCFLAGS='-fanalyzer -Wno-error' 

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <l...@intel.com>


gcc-analyzer warnings: (new ones prefixed by >>)
   drivers/ntb/test/ntb_perf.c: In function 'perf_clear_dbl':
>> drivers/ntb/test/ntb_perf.c:1445:9: warning: shift by negative count ('-1') 
>> [-Wanalyzer-shift-count-negative]
    1445 |         ntb_db_set_mask(perf->ntb, BIT_ULL(data->db));
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'perf_clear_dbl': event 1
       |
       | 1445 |         ntb_db_set_mask(perf->ntb, BIT_ULL(data->db));
       |      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |      |         |
       |      |         (1) shift by negative amount here ('-1')
       |

vim +1445 drivers/ntb/test/ntb_perf.c

d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1439  
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1440  static void 
perf_clear_dbl(struct perf_ext_lat_data *data)
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1441  {
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1442      struct perf_ctx *perf = 
data->perf;
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1443  
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1444      data->db = -1;
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13 @1445      
ntb_db_set_mask(perf->ntb, BIT_ULL(data->db));
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1446      
atomic_set(&perf->running, 0);
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1447      wake_up(&perf->twait);
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1448  }
d3b4b9c2142ca2 Alexander Fomichev 2022-05-13  1449  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to