[spi:for-5.3 12/13] drivers//spi/spi.c:1134:12: error: 'struct spi_transfer' has no member named 'effective_speed_hz'

[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.3
head:   47300728fb213486a830565d2af49da967c9d16a
commit: d5864e5bed96db7230da45463d6ae7af5b3b4399 [12/13] spi: core: allow defining time that cs is deasserted as a multiple of SCK
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout d5864e5bed96db7230da45463d6ae7af5b3b4399
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers//spi/spi.c: In function '_spi_transfer_cs_change_delay':
>> drivers//spi/spi.c:1134:12: error: 'struct spi_transfer' has no member named 'effective_speed_hz'
      hz = xfer->effective_speed_hz ?: xfer->speed_hz / 2;
               ^~

vim +1134 drivers//spi/spi.c

  1108	
  1109	static void _spi_transfer_cs_change_delay(struct spi_message *msg,
  1110						  struct spi_transfer *xfer)
  1111	{
  1112		u32 delay = xfer->cs_change_delay;
  1113		u32 unit = xfer->cs_change_delay_unit;
  1114		u32 hz;
  1115	
  1116		/* return early on "fast" mode - for everything but USECS */
  1117		if (!delay && unit != SPI_DELAY_UNIT_USECS)
  1118			return;
  1119	
  1120		switch (unit) {
  1121		case SPI_DELAY_UNIT_USECS:
  1122			/* for compatibility use default of 10us */
  1123			if (!delay)
  1124				delay = 10000;
  1125			else
  1126				delay *= 1000;
  1127			break;
  1128		case SPI_DELAY_UNIT_NSECS: /* nothing to do here */
  1129			break;
  1130		case SPI_DELAY_UNIT_SCK:
  1131			/* if there is no effective speed know, then approximate
  1132			 * by underestimating with half the requested hz
  1133			 */
> 1134			hz = xfer->effective_speed_hz ?: xfer->speed_hz / 2;
  1135			delay *= DIV_ROUND_UP(1000000000, hz);
  1136			break;
  1137		default:
  1138			dev_err_once(&msg->spi->dev,
  1139				     "Use of unsupported delay unit %i, using default of 10us\n",
  1140				     xfer->cs_change_delay_unit);
  1141			delay = 10000;
  1142		}
  1143		/* now sleep for the requested amount of time */
  1144		_spi_transfer_delay_ns(delay);
  1145	}
  1146	

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