[ulf.hansson-mmc:fixes 3/3] drivers/mmc/host/tmio_mmc_core.c:706:34: error: 'SZ_64K' undeclared; did you mean 'SF_I4'?

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

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git fixes
head:   063f8fee9927ac118113b7f8c1247b922134f65d
commit: 063f8fee9927ac118113b7f8c1247b922134f65d [3/3] mmc: tmio: fix access width of Block Count Register
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 8.2.0-11) 8.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 063f8fee9927ac118113b7f8c1247b922134f65d
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/mmc/host/tmio_mmc_core.c: In function 'tmio_mmc_start_data':
>> drivers/mmc/host/tmio_mmc_core.c:706:34: error: 'SZ_64K' undeclared (first use in this function); did you mean 'SF_I4'?
     if (host->mmc->max_blk_count >= SZ_64K)
                                     ^~~~~~
                                     SF_I4
   drivers/mmc/host/tmio_mmc_core.c:706:34: note: each undeclared identifier is reported only once for each function it appears in

vim +706 drivers/mmc/host/tmio_mmc_core.c

   679	
   680	static int tmio_mmc_start_data(struct tmio_mmc_host *host,
   681				       struct mmc_data *data)
   682	{
   683		struct tmio_mmc_data *pdata = host->pdata;
   684	
   685		pr_debug("setup data transfer: blocksize %08x  nr_blocks %d\n",
   686			 data->blksz, data->blocks);
   687	
   688		/* Some hardware cannot perform 2 byte requests in 4/8 bit mode */
   689		if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4 ||
   690		    host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) {
   691			int blksz_2bytes = pdata->flags & TMIO_MMC_BLKSZ_2BYTES;
   692	
   693			if (data->blksz < 2 || (data->blksz < 4 && !blksz_2bytes)) {
   694				pr_err("%s: %d byte block unsupported in 4/8 bit mode\n",
   695				       mmc_hostname(host->mmc), data->blksz);
   696				return -EINVAL;
   697			}
   698		}
   699	
   700		tmio_mmc_init_sg(host, data);
   701		host->data = data;
   702		host->dma_on = false;
   703	
   704		/* Set transfer length / blocksize */
   705		sd_ctrl_write16(host, CTL_SD_XFER_LEN, data->blksz);
 > 706		if (host->mmc->max_blk_count >= SZ_64K)
   707			sd_ctrl_write32(host, CTL_XFER_BLK_COUNT, data->blocks);
   708		else
   709			sd_ctrl_write16(host, CTL_XFER_BLK_COUNT, data->blocks);
   710	
   711		tmio_mmc_start_dma(host, data);
   712	
   713		return 0;
   714	}
   715	

---
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 Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux