CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Kenneth Lee <liguo...@hisilicon.com>
CC: Herbert Xu <herb...@gondor.apana.org.au>
CC: "Greg Kroah-Hartman" <gre...@linuxfoundation.org>
CC: Jonathan Cameron <jonathan.came...@huawei.com>
CC: Zaibo Xu <xuza...@huawei.com>
CC: Zhou Wang <wangzh...@hisilicon.com>
CC: "Jean-Philippe Brucker" <jean-phili...@linaro.org>
CC: Zhangfei Gao <zhangfei....@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   6ee1d745b7c9fd573fba142a2efdad76a9f1cb04
commit: 015d239ac0142ad0e26567fd890ef8d171f13709 uacce: add uacce driver
date:   11 months ago
:::::: branch date: 17 hours ago
:::::: commit date: 11 months ago
config: riscv-randconfig-m031-20210125 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>
Reported-by: Dan Carpenter <dan.carpen...@oracle.com>

New smatch warnings:
drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should 
'uacce->qf_pg_num[0] << (12)' be a 64 bit type?
drivers/misc/uacce/uacce.c:423 region_dus_size_show() warn: should 
'uacce->qf_pg_num[1] << (12)' be a 64 bit type?

Old smatch warnings:
arch/riscv/include/asm/current.h:30 get_current() error: uninitialized symbol 
'tp'.

vim +414 drivers/misc/uacce/uacce.c

015d239ac0142ad Kenneth Lee 2020-02-11  407  
015d239ac0142ad Kenneth Lee 2020-02-11  408  static ssize_t 
region_mmio_size_show(struct device *dev,
015d239ac0142ad Kenneth Lee 2020-02-11  409                                  
struct device_attribute *attr, char *buf)
015d239ac0142ad Kenneth Lee 2020-02-11  410  {
015d239ac0142ad Kenneth Lee 2020-02-11  411     struct uacce_device *uacce = 
to_uacce_device(dev);
015d239ac0142ad Kenneth Lee 2020-02-11  412  
015d239ac0142ad Kenneth Lee 2020-02-11  413     return sprintf(buf, "%lu\n",
015d239ac0142ad Kenneth Lee 2020-02-11 @414                    
uacce->qf_pg_num[UACCE_QFRT_MMIO] << PAGE_SHIFT);
015d239ac0142ad Kenneth Lee 2020-02-11  415  }
015d239ac0142ad Kenneth Lee 2020-02-11  416  
015d239ac0142ad Kenneth Lee 2020-02-11  417  static ssize_t 
region_dus_size_show(struct device *dev,
015d239ac0142ad Kenneth Lee 2020-02-11  418                                 
struct device_attribute *attr, char *buf)
015d239ac0142ad Kenneth Lee 2020-02-11  419  {
015d239ac0142ad Kenneth Lee 2020-02-11  420     struct uacce_device *uacce = 
to_uacce_device(dev);
015d239ac0142ad Kenneth Lee 2020-02-11  421  
015d239ac0142ad Kenneth Lee 2020-02-11  422     return sprintf(buf, "%lu\n",
015d239ac0142ad Kenneth Lee 2020-02-11 @423                    
uacce->qf_pg_num[UACCE_QFRT_DUS] << PAGE_SHIFT);
015d239ac0142ad Kenneth Lee 2020-02-11  424  }
015d239ac0142ad Kenneth Lee 2020-02-11  425  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to