linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [kbuild] [xlnx:xlnx_rebase_v5.4 67/1297] drivers/misc/xilinx_flex_pm.c:356:22: error: 'struct xflex_dev_info' has no member named 'lock'
@ 2020-05-12 12:37 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-12 12:37 UTC (permalink / raw)
  To: Shubhrajyoti Datta; +Cc: Michal Simek, kbuild-all, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 17642 bytes --]

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   22b71b41620dac13c69267d2b7898ebfb14c954e
commit: dca3c6831fc7bdc1e021e7608da3a0becd20cd25 [67/1297] misc: xilinx_flex: Add support for the flex noc Performance Monitor
config: um-allmodconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout dca3c6831fc7bdc1e021e7608da3a0becd20cd25
        # save the attached .config to linux build tree
        make ARCH=um 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

Note: the xlnx/xlnx_rebase_v5.4 HEAD 22b71b41620dac13c69267d2b7898ebfb14c954e builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

drivers/misc/xilinx_flex_pm.c: In function 'xflex_sysfs_cmd':
>> drivers/misc/xilinx_flex_pm.c:356:22: error: 'struct xflex_dev_info' has no member named 'lock'
mutex_unlock(&flexpm->lock);
^~
In file included from include/linux/kernfs.h:12:0,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/firmware/xlnx-zynqmp.h:16,
from drivers/misc/xilinx_flex_pm.c:7:
drivers/misc/xilinx_flex_pm.c: In function 'xflex_probe':
drivers/misc/xilinx_flex_pm.c:604:20: error: 'struct xflex_dev_info' has no member named 'lock'
mutex_init(&flexpm->lock);
^
include/linux/mutex.h:108:16: note: in definition of macro 'mutex_init'
__mutex_init((mutex), #mutex, &__key);                       ^~~~~

# https://github.com/Xilinx/linux-xlnx/commit/dca3c6831fc7bdc1e021e7608da3a0becd20cd25
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git remote update xlnx
git checkout dca3c6831fc7bdc1e021e7608da3a0becd20cd25
vim +356 drivers/misc/xilinx_flex_pm.c

dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  151  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  152  /**
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  153   * xflex_sysfs_cmd - Implements sysfs operations
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  154   * @dev: Device structure
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  155   * @buf: Value to write
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  156   * @cmd: sysfs cmd
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  157   *
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  158   * Return: value read from the sysfs cmd on success and negative error code
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  159   *		otherwise.
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  160   */
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  161  static int xflex_sysfs_cmd(struct device *dev, const char *buf,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  162  			   enum xflex_sysfs_cmd_codes cmd)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  163  {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  164  	struct xflex_dev_info *flexpm = to_xflex_dev_info(dev);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  165  	u32 domain, src, offset, reg, val, counter;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  166  	int ret;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  167  	const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops();
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  168  	u32 rdval = 0;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  169  	u32 pm_api_ret[4] = {0, 0, 0, 0};
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  170  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  171  	if (IS_ERR_OR_NULL(eemi_ops))
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  172  		return PTR_ERR(eemi_ops);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  173  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  174  	if (!eemi_ops->ioctl)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  175  		return -ENOTSUPP;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  176  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  177  	switch (cmd) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  178  	case XFLEX_GET_COUNTER_LPD_WRRSP:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  179  		reg = flexpm->counterid_lpd | FPM_WRRSP_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  180  		ret = eemi_ops->ioctl(FPM_LPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  181  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  182  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  183  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  184  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  185  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  186  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  187  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  188  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  189  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  190  	case XFLEX_GET_COUNTER_LPD_WRREQ:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  191  		reg = flexpm->counterid_lpd | FPM_WRREQ_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  192  		ret = eemi_ops->ioctl(FPM_LPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  193  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  194  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  195  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  196  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  197  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  198  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  199  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  200  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  201  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  202  	case XFLEX_GET_COUNTER_LPD_RDRSP:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  203  		reg = flexpm->counterid_lpd | FPM_RDRSP_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  204  		ret = eemi_ops->ioctl(FPM_LPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  205  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  206  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  207  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  208  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  209  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  210  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  211  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  212  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  213  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  214  	case XFLEX_GET_COUNTER_LPD_RDREQ:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  215  		reg = flexpm->counterid_lpd | FPM_RDREQ_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  216  		ret = eemi_ops->ioctl(FPM_LPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  217  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  218  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  219  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  220  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  221  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  222  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  223  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  224  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  225  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  226  	case XFLEX_SET_COUNTER_LPD:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  227  		ret = kstrtou32(buf, 0, &val);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  228  		if (ret < 0)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  229  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  230  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  231  		flexpm->counterid_lpd = val;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  232  		reset_default(dev, val, FPM_LPD);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  233  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  234  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  235  	case XFLEX_SET_PORT_COUNTER_FPD:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  236  		ret = kstrtou32(buf, 0, &val);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  237  		if (ret < 0)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  238  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  239  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  240  		counter = flexpm->counterid_fpd * FPM_COUNTER_OFFSET;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  241  		offset = FPM_PORT_SEL_OFFSET + counter * FPM_COUNTER_OFFSET;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  242  		fpm_reg(flexpm->basefpd, val, offset);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  243  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  244  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  245  	case XFLEX_SET_PORT_COUNTER_LPD:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  246  		ret = kstrtou32(buf, 0, &val);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  247  		if (ret < 0)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  248  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  249  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  250  		counter = flexpm->counterid_lpd * FPM_COUNTER_OFFSET;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  251  		offset = FPM_PORT_SEL_OFFSET + counter * FPM_COUNTER_OFFSET;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  252  		fpm_reg(flexpm->baselpd, val, offset);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  253  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  254  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  255  	case XFLEX_SET_SRC_COUNTER_LPD:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  256  		reg = flexpm->counterid_lpd;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  257  		domain = FPM_LPD;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  258  		ret = kstrtou32(buf, 0, &val);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  259  		if (ret < 0)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  260  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  261  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  262  		for (src = 0; src < FPM_NUM_COUNTERS; src++) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  263  			reg = reg | FPM_SRC | (src << FPM_PROBE_SHIFT);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  264  			ret = eemi_ops->ioctl(domain, IOCTL_PROBE_COUNTER_WRITE,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  265  					      reg, val, NULL);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  266  			if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  267  				dev_err(dev, "Counter write error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  268  				goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  269  			}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  270  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  271  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  272  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  273  	case XFLEX_SET_SRC_COUNTER_FPD:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  274  		reg = flexpm->counterid_fpd;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  275  		domain = FPM_FPD;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  276  		ret = kstrtou32(buf, 0, &val);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  277  		if (ret < 0)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  278  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  279  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  280  		for (src = 0; src < FPM_NUM_COUNTERS; src++) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  281  			reg = reg | FPM_SRC | (src << FPM_PROBE_SHIFT);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  282  			ret = eemi_ops->ioctl(domain, IOCTL_PROBE_COUNTER_WRITE,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  283  					      reg, val, NULL);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  284  			if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  285  				dev_err(dev, "Counter write error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  286  				goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  287  			}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  288  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  289  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  290  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  291  	case XFLEX_SET_COUNTER_FPD:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  292  		ret = kstrtou32(buf, 0, &val);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  293  		if (ret < 0)
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  294  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  295  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  296  		flexpm->counterid_fpd = val;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  297  		reset_default(dev, val, FPM_FPD);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  298  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  299  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  300  	case XFLEX_GET_COUNTER_FPD_WRRSP:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  301  		reg = flexpm->counterid_fpd | FPM_WRRSP_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  302  		ret = eemi_ops->ioctl(FPM_FPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  303  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  304  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  305  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  306  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  307  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  308  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  309  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  310  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  311  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  312  	case XFLEX_GET_COUNTER_FPD_WRREQ:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  313  		reg = flexpm->counterid_fpd | FPM_WRREQ_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  314  		ret = eemi_ops->ioctl(FPM_FPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  315  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  316  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  317  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  318  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  319  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  320  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  321  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  322  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  323  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  324  	case XFLEX_GET_COUNTER_FPD_RDRSP:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  325  		reg = flexpm->counterid_fpd | FPM_RDRSP_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  326  		ret = eemi_ops->ioctl(FPM_FPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  327  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  328  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  329  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  330  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  331  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  332  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  333  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  334  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  335  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  336  	case XFLEX_GET_COUNTER_FPD_RDREQ:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  337  		reg = flexpm->counterid_fpd | FPM_RDREQ_L | FPM_VAL;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  338  		ret = eemi_ops->ioctl(FPM_FPD, IOCTL_PROBE_COUNTER_READ,
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  339  				      reg, 0, &pm_api_ret[0]);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  340  		if (ret < 0) {
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  341  			dev_err(dev, "Counter read error %d\n", ret);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  342  			goto exit_unlock;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  343  		}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  344  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  345  		rdval = pm_api_ret[1];
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  346  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  347  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  348  	default:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  349  		dev_err(dev, "Invalid option\n");
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  350  		break;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  351  	}
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  352  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  353  	return rdval;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  354  
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  355  exit_unlock:
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03 @356  	mutex_unlock(&flexpm->lock);
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  357  	return ret;
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  358  }
dca3c6831fc7bd Shubhrajyoti Datta 2019-12-03  359  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21986 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org

[-- Attachment #4: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-12 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-12 12:37 [kbuild] [xlnx:xlnx_rebase_v5.4 67/1297] drivers/misc/xilinx_flex_pm.c:356:22: error: 'struct xflex_dev_info' has no member named 'lock' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).