[spi:topic/loopback 10/10] drivers/spi/spi-loopback-test.c:983:3: error: implicit declaration of function 'vmalloc'

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

 



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: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux