[spi:for-5.2 75/75] drivers/spi/spi-zynq-qspi.c:410:3: error: implicit declaration of function 'writesl'; did you mean 'writel'?

[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 for-5.2
head:   67dca5e580f1e93a66177389981541cac208c817
commit: 67dca5e580f1e93a66177389981541cac208c817 [75/75] spi: spi-mem: Add support for Zynq QSPI controller
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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 67dca5e580f1e93a66177389981541cac208c817
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=alpha 

All errors (new ones prefixed by >>):

   drivers/spi/spi-zynq-qspi.c: In function 'zynq_qspi_write_op':
>> drivers/spi/spi-zynq-qspi.c:410:3: error: implicit declaration of function 'writesl'; did you mean 'writel'? [-Werror=implicit-function-declaration]
      writesl(xqspi->regs + ZYNQ_QSPI_TXD_00_00_OFFSET,
      ^~~~~~~
      writel
   drivers/spi/spi-zynq-qspi.c: In function 'zynq_qspi_read_op':
>> drivers/spi/spi-zynq-qspi.c:436:3: error: implicit declaration of function 'readsl'; did you mean 'readl'? [-Werror=implicit-function-declaration]
      readsl(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET,
      ^~~~~~
      readl
   cc1: some warnings being treated as errors

vim +410 drivers/spi/spi-zynq-qspi.c

   381	
   382	/**
   383	 * zynq_qspi_write_op - Fills the TX FIFO with as many bytes as possible
   384	 * @xqspi:	Pointer to the zynq_qspi structure
   385	 * @txcount:	Maximum number of words to write
   386	 * @txempty:	Indicates that TxFIFO is empty
   387	 */
   388	static void zynq_qspi_write_op(struct zynq_qspi *xqspi, int txcount,
   389				       bool txempty)
   390	{
   391		int count, len, k;
   392	
   393		len = xqspi->tx_bytes;
   394		if (len && len < 4) {
   395			/*
   396			 * We must empty the TxFIFO between accesses to TXD0,
   397			 * TXD1, TXD2, TXD3.
   398			 */
   399			if (txempty)
   400				zynq_qspi_txfifo_op(xqspi, len);
   401	
   402			return;
   403		}
   404	
   405		count = len / 4;
   406		if (count > txcount)
   407			count = txcount;
   408	
   409		if (xqspi->txbuf) {
 > 410			writesl(xqspi->regs + ZYNQ_QSPI_TXD_00_00_OFFSET,
   411				xqspi->txbuf, count);
   412			xqspi->txbuf += count * 4;
   413		} else {
   414			for (k = 0; k < count; k++)
   415				writel_relaxed(0, xqspi->regs +
   416						  ZYNQ_QSPI_TXD_00_00_OFFSET);
   417		}
   418	
   419		xqspi->tx_bytes -= count * 4;
   420	}
   421	
   422	/**
   423	 * zynq_qspi_read_op - Drains the RX FIFO by as many bytes as possible
   424	 * @xqspi:	Pointer to the zynq_qspi structure
   425	 * @rxcount:	Maximum number of words to read
   426	 */
   427	static void zynq_qspi_read_op(struct zynq_qspi *xqspi, int rxcount)
   428	{
   429		int count, len, k;
   430	
   431		len = xqspi->rx_bytes - xqspi->tx_bytes;
   432		count = len / 4;
   433		if (count > rxcount)
   434			count = rxcount;
   435		if (xqspi->rxbuf) {
 > 436			readsl(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET,
   437			       xqspi->rxbuf, count);
   438			xqspi->rxbuf += count * 4;
   439		} else {
   440			for (k = 0; k < count; k++)
   441				readl_relaxed(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET);
   442		}
   443		xqspi->rx_bytes -= count * 4;
   444		len -= count * 4;
   445	
   446		if (len && len < 4 && count < rxcount)
   447			zynq_qspi_rxfifo_op(xqspi, len);
   448	}
   449	

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