All of lore.kernel.org
 help / color / mirror / Atom feed
* [spi:topic/loopback 10/10] drivers/spi/spi-loopback-test.c:983:3: error: implicit declaration of function 'vmalloc'
@ 2017-03-16 14:52 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-03-16 14:52 UTC (permalink / raw)
  To: Frode Isaksen
  Cc: kbuild-all-JC7UmRfGjtg, linux-spi-u79uwXL29TY76Z2rM5mHXA, Mark Brown

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git topic/loopback
head:   576333a1fb940767e8638fafea908214682e8acd
commit: 576333a1fb940767e8638fafea908214682e8acd [10/10] spi: loopback-test: add option to use vmalloc'ed buffers
config: x86_64-randconfig-i0-201711 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 576333a1fb940767e8638fafea908214682e8acd
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/spi/spi-loopback-test.c: In function 'spi_test_run_tests':
>> drivers/spi/spi-loopback-test.c:983:3: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
      rx = vmalloc(SPI_TEST_MAX_SIZE_PLUS);
      ^
>> drivers/spi/spi-loopback-test.c:983:6: warning: assignment makes pointer from integer without a cast
      rx = vmalloc(SPI_TEST_MAX_SIZE_PLUS);
         ^
   drivers/spi/spi-loopback-test.c:992:6: warning: assignment makes pointer from integer without a cast
      tx = vmalloc(SPI_TEST_MAX_SIZE_PLUS);
         ^
   cc1: some warnings being treated as errors

vim +/vmalloc +983 drivers/spi/spi-loopback-test.c

   977		struct spi_test *test;
   978	
   979		/* allocate rx/tx buffers of 128kB size without devm
   980		 * in the hope that is on a page boundary
   981		 */
   982		if (use_vmalloc)
 > 983			rx = vmalloc(SPI_TEST_MAX_SIZE_PLUS);
   984		else
   985			rx = kzalloc(SPI_TEST_MAX_SIZE_PLUS, GFP_KERNEL);
   986		if (!rx) {

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

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

only message in thread, other threads:[~2017-03-16 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 14:52 [spi:topic/loopback 10/10] drivers/spi/spi-loopback-test.c:983:3: error: implicit declaration of function 'vmalloc' kbuild test robot

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.