Re: [PATCH] VME: Adding Fake VME driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Martyn,

[auto build test WARNING on driver-core/driver-core-testing]
[also build test WARNING on v4.6-rc1 next-20160401]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Martyn-Welch/VME-Adding-Fake-VME-driver/20160403-071706
config: sparc64-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   drivers/vme/bridges/vme_fake.c: In function 'fake_alloc_consistent':
>> drivers/vme/bridges/vme_fake.c:996:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     *dma = (dma_addr_t)address;
            ^
   drivers/vme/bridges/vme_fake.c: In function 'fake_crcsr_init':
   drivers/vme/bridges/vme_fake.c:1027:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     bridge->crcsr_bus = (dma_addr_t)bridge->crcsr_kernel;
                         ^

vim +996 drivers/vme/bridges/vme_fake.c

   980	}
   981	
   982	/*
   983	 * Determine Geographical Addressing
   984	 */
   985	static int fake_slot_get(struct vme_bridge *fake_bridge)
   986	{
   987		return geoid;
   988	}
   989	
   990	static void *fake_alloc_consistent(struct device *parent, size_t size,
   991			dma_addr_t *dma)
   992	{
   993		void *address;
   994	
   995		address = kzalloc(size, GFP_KERNEL);
 > 996		*dma = (dma_addr_t)address;
   997	
   998		return address;
   999	}
  1000	
  1001	static void fake_free_consistent(struct device *parent, size_t size,
  1002			void *vaddr, dma_addr_t dma)
  1003	{
  1004		kfree(vaddr);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux