All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm:for-next 6/8] drivers/md/dm-writecache.c:862:24: error: implicit declaration of function 'array_size'; did you mean '__ua_size'?
@ 2018-06-22 18:40 kbuild test robot
  2018-06-22 18:57 ` Mike Snitzer
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2018-06-22 18:40 UTC (permalink / raw)
  To: Kees Cook; +Cc: dm-devel, kbuild-all, Mike Snitzer

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head:   696ee10fad76d6ec15f256e6dc2c08aa2c706890
commit: 5174624414ac49495a08eca4ee584dac193c0eb7 [6/8] dm writecache: use 2-factor allocator arguments
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5174624414ac49495a08eca4ee584dac193c0eb7
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   drivers/md/dm-writecache.c: In function 'writecache_alloc_entries':
>> drivers/md/dm-writecache.c:862:24: error: implicit declaration of function 'array_size'; did you mean '__ua_size'? [-Werror=implicit-function-declaration]
     wc->entries = vmalloc(array_size(sizeof(struct wc_entry), wc->n_blocks));
                           ^~~~~~~~~~
                           __ua_size
   cc1: some warnings being treated as errors

vim +862 drivers/md/dm-writecache.c

   855	
   856	static int writecache_alloc_entries(struct dm_writecache *wc)
   857	{
   858		size_t b;
   859	
   860		if (wc->entries)
   861			return 0;
 > 862		wc->entries = vmalloc(array_size(sizeof(struct wc_entry), wc->n_blocks));
   863		if (!wc->entries)
   864			return -ENOMEM;
   865		for (b = 0; b < wc->n_blocks; b++) {
   866			struct wc_entry *e = &wc->entries[b];
   867			e->index = b;
   868			e->write_in_progress = false;
   869		}
   870	
   871		return 0;
   872	}
   873	

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

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

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2018-06-22 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-22 18:40 [dm:for-next 6/8] drivers/md/dm-writecache.c:862:24: error: implicit declaration of function 'array_size'; did you mean '__ua_size'? kbuild test robot
2018-06-22 18:57 ` Mike Snitzer

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.