linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [pm:bleeding-edge 102/108] drivers/gpu/drm/xen/xen_drm_front.c:710:42: warning: shift count >= width of type
@ 2021-06-09 19:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-09 19:08 UTC (permalink / raw)
  To: Erik Kaneda
  Cc: kbuild-all, clang-built-linux, linux-acpi, devel, linux-pm,
	Rafael J. Wysocki

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   7604cba9f860bcae8fd95c907ffee8ebeab73bef
commit: f06e8901662d5c5c80f47d1cef6207688ee42e81 [102/108] ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype
config: x86_64-randconfig-a015-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=f06e8901662d5c5c80f47d1cef6207688ee42e81
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout f06e8901662d5c5c80f47d1cef6207688ee42e81
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/xen/xen_drm_front.c:16:
   In file included from include/drm/drm_atomic_helper.h:31:
   In file included from include/drm/drm_crtc.h:28:
   In file included from include/linux/i2c.h:13:
   include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
>> drivers/gpu/drm/xen/xen_drm_front.c:710:42: warning: shift count >= width of type [-Wshift-count-overflow]
           ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64));
                                                   ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 1 error generated.


vim +710 drivers/gpu/drm/xen/xen_drm_front.c

c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  702  
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  703  static int xen_drv_probe(struct xenbus_device *xb_dev,
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  704  			 const struct xenbus_device_id *id)
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  705  {
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  706  	struct xen_drm_front_info *front_info;
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  707  	struct device *dev = &xb_dev->dev;
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  708  	int ret;
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  709  
ee7f5225dc3cc7 Rob Herring             2019-10-08 @710  	ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64));
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  711  	if (ret < 0) {
ee7f5225dc3cc7 Rob Herring             2019-10-08  712  		DRM_ERROR("Cannot setup DMA mask, ret %d", ret);
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  713  		return ret;
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  714  	}
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  715  
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  716  	front_info = devm_kzalloc(&xb_dev->dev,
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  717  				  sizeof(*front_info), GFP_KERNEL);
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  718  	if (!front_info)
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  719  		return -ENOMEM;
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  720  
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  721  	front_info->xb_dev = xb_dev;
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  722  	spin_lock_init(&front_info->io_lock);
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  723  	INIT_LIST_HEAD(&front_info->dbuf_list);
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  724  	dev_set_drvdata(&xb_dev->dev, front_info);
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  725  
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  726  	return xenbus_switch_state(xb_dev, XenbusStateInitialising);
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  727  }
c575b7eeb89f94 Oleksandr Andrushchenko 2018-04-03  728  

:::::: The code at line 710 was first introduced by commit
:::::: ee7f5225dc3cc7c19df1603597532ff34571f895 xen: Stop abusing DT of_dma_configure API

:::::: TO: Rob Herring <robh@kernel.org>
:::::: CC: Boris Ostrovsky <boris.ostrovsky@oracle.com>

---
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: 34503 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-09 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 19:08 [pm:bleeding-edge 102/108] drivers/gpu/drm/xen/xen_drm_front.c:710:42: warning: shift count >= width of type kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).