All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should << (12)' be a 64 bit
@ 2021-01-25 18:05 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-01-25 18:05 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2917 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Kenneth Lee <liguozhu@hisilicon.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: Zaibo Xu <xuzaibo@huawei.com>
CC: Zhou Wang <wangzhou1@hisilicon.com>
CC: "Jean-Philippe Brucker" <jean-philippe@linaro.org>
CC: Zhangfei Gao <zhangfei.gao@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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@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-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41862 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should << 12' be a 64 bit
@ 2020-12-12 20:54 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-12-12 20:54 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Kenneth Lee <liguozhu@hisilicon.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: Zaibo Xu <xuzaibo@huawei.com>
CC: Zhou Wang <wangzhou1@hisilicon.com>
CC: "Jean-Philippe Brucker" <jean-philippe@linaro.org>
CC: Zhangfei Gao <zhangfei.gao@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7b1b868e1d9156484ccce9bf11122c053de82617
commit: 015d239ac0142ad0e26567fd890ef8d171f13709 uacce: add uacce driver
date:   10 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 10 months ago
config: i386-randconfig-m021-20201213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@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?

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

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

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

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33263 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should << (12)' be a 64 bit
@ 2020-09-11 10:52 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-11 10:52 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3196 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Kenneth Lee <liguozhu@hisilicon.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: Zaibo Xu <xuzaibo@huawei.com>
CC: Zhou Wang <wangzhou1@hisilicon.com>
CC: "Jean-Philippe Brucker" <jean-philippe@linaro.org>
CC: Zhangfei Gao <zhangfei.gao@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   581cb3a26baf846ee9636214afaa5333919875b1
commit: 015d239ac0142ad0e26567fd890ef8d171f13709 uacce: add uacce driver
date:   7 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 7 months ago
config: riscv-randconfig-m031-20200911 (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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@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'.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=015d239ac0142ad0e26567fd890ef8d171f13709
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 015d239ac0142ad0e26567fd890ef8d171f13709
vim +414 drivers/misc/uacce/uacce.c

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

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26802 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-25 18:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 18:05 drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should << (12)' be a 64 bit kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-12-12 20:54 drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should << 12' " kernel test robot
2020-09-11 10:52 drivers/misc/uacce/uacce.c:414 region_mmio_size_show() warn: should << (12)' " kernel test robot

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.