[spi:topic/imx 11/11] drivers/spi/spi-imx.c:1007:16: error: 'config' undeclared

[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/imx
head:   a0cc330240c9dae8e3080bd6dc59adb2bdc792ce
commit: a0cc330240c9dae8e3080bd6dc59adb2bdc792ce [11/11] spi: imx: dynamic burst length adjust for PIO mode
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout a0cc330240c9dae8e3080bd6dc59adb2bdc792ce
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/spi/spi-imx.c: In function 'spi_imx_buf_rx_swap_u32':
   drivers/spi/spi-imx.c:281:15: warning: unused variable 'bytes_per_word' [-Wunused-variable]
     unsigned int bytes_per_word;
                  ^
   drivers/spi/spi-imx.c: In function 'spi_imx_buf_tx_swap_u32':
   drivers/spi/spi-imx.c:316:15: warning: unused variable 'bytes_per_word' [-Wunused-variable]
     unsigned int bytes_per_word;
                  ^
   drivers/spi/spi-imx.c: In function 'spi_imx_setupxfer':
>> drivers/spi/spi-imx.c:1007:16: error: 'config' undeclared (first use in this function)
      mask = (1 << config.bpw) - 1;
                   ^
   drivers/spi/spi-imx.c:1007:16: note: each undeclared identifier is reported only once for each function it appears in

vim +/config +1007 drivers/spi/spi-imx.c

  1001			u32 mask;
  1002	
  1003			spi_imx->dynamic_burst = 0;
  1004			spi_imx->remainder = 0;
  1005			spi_imx->read_u32  = 1;
  1006	
> 1007			mask = (1 << config.bpw) - 1;
  1008			spi_imx->rx = spi_imx_buf_rx_swap;
  1009			spi_imx->tx = spi_imx_buf_tx_swap;
  1010			spi_imx->dynamic_burst = 1;

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