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: parisc-allyesconfig (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=parisc 

All warnings (new ones prefixed by >>):

   drivers/vme/bridges/vme_fake.c: In function 'fake_vmeread8':
>> drivers/vme/bridges/vme_fake.c:432:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       loc = (u8 *)(bridge->slaves[i].buf_base + offset);
             ^
   drivers/vme/bridges/vme_fake.c: In function 'fake_vmeread16':
   drivers/vme/bridges/vme_fake.c:464:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       loc = (u16 *)(bridge->slaves[i].buf_base + offset);
             ^
   drivers/vme/bridges/vme_fake.c: In function 'fake_vmeread32':
   drivers/vme/bridges/vme_fake.c:496:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       loc = (u32 *)(bridge->slaves[i].buf_base + offset);
             ^
   drivers/vme/bridges/vme_fake.c: In function 'fake_vmewrite8':
   drivers/vme/bridges/vme_fake.c:626:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       loc = (u8 *)(bridge->slaves[i].buf_base + offset);
             ^
   drivers/vme/bridges/vme_fake.c: In function 'fake_vmewrite16':
   drivers/vme/bridges/vme_fake.c:656:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       loc = (u16 *)(bridge->slaves[i].buf_base + offset);
             ^
   drivers/vme/bridges/vme_fake.c: In function 'fake_vmewrite32':
   drivers/vme/bridges/vme_fake.c:686:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       loc = (u32 *)(bridge->slaves[i].buf_base + offset);
             ^

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

   416		int i;
   417		unsigned long long start, end, offset;
   418		u8 *loc;
   419	
   420		for (i = 0; i < FAKE_MAX_SLAVE; i++) {
   421			start = bridge->slaves[i].vme_base;
   422			end = bridge->slaves[i].vme_base + bridge->slaves[i].size;
   423	
   424			if (aspace != bridge->slaves[i].aspace)
   425				continue;
   426	
   427			if (cycle != bridge->slaves[i].cycle)
   428				continue;
   429	
   430			if ((addr >= start) && (addr < end)) {
   431				offset = addr - bridge->slaves[i].vme_base;
 > 432				loc = (u8 *)(bridge->slaves[i].buf_base + offset);
   433				retval = *loc;
   434	
   435				break;
   436			}
   437		}
   438	
   439		fake_lm_check(bridge, addr, aspace, cycle);
   440	

---
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