[Intel-gfx] [drm-intel:drm-intel-nightly 1077/1091] drivers/gpu/drm/drm_irq.c:341:6: error: call to '__cmpxchg_called_with_bad_pointer' declared with attribute error: Bad argument size for cmpxchg

kbuild test robot fengguang.wu at intel.com
Wed Mar 29 15:18:45 UTC 2017


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head:   2f9f22b419350cafb06ba7e5342bc461fcb0afca
commit: 43dc7fe2b2118c76fbc2808dec0c57b3158e6dc0 [1077/1091] drm: Mark up accesses of vblank->enabled outside of its spinlock
config: tile-tilegx_defconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 43dc7fe2b2118c76fbc2808dec0c57b3158e6dc0
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_irq.c: In function 'vblank_disable_and_save':
   drivers/gpu/drm/drm_irq.c:341:5: warning: '__x' may be used uninitialized in this function [-Wuninitialized]
>> drivers/gpu/drm/drm_irq.c:341:6: error: call to '__cmpxchg_called_with_bad_pointer' declared with attribute error: Bad argument size for cmpxchg

vim +/__cmpxchg_called_with_bad_pointer +341 drivers/gpu/drm/drm_irq.c

   335	
   336		/*
   337		 * Only disable vblank interrupts if they're enabled. This avoids
   338		 * calling the ->disable_vblank() operation in atomic context with the
   339		 * hardware potentially runtime suspended.
   340		 */
 > 341		if (cmpxchg_relaxed(&vblank->enabled, true, false))
   342			__disable_vblank(dev, pipe);
   343	
   344		/*

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 16379 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170329/6f8b277d/attachment-0001.gz>


More information about the Intel-gfx mailing list