lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 19 Mar 2019 00:47:43 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Ingo Molnar <mingo@...nel.org>
Subject: drivers/media/i2c/adv748x/adv748x-core.c:585: undefined reference to
 `v4l2_fwnode_endpoint_parse'

Hi Peter,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
commit: f764c58b7faa26f5714e6907f892abc2bc0de4f8 perf/x86: Fixup typo in stub functions
date:   3 days ago
config: x86_64-randconfig-a0-03182338 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout f764c58b7faa26f5714e6907f892abc2bc0de4f8
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/i2c/adv748x/adv748x-core.o: In function `adv748x_parse_csi2_lanes':
>> drivers/media/i2c/adv748x/adv748x-core.c:585: undefined reference to `v4l2_fwnode_endpoint_parse'

vim +585 drivers/media/i2c/adv748x/adv748x-core.c

3e89586a Kieran Bingham   2017-07-06  572  
6a18865d Niklas Söderlund 2018-11-28  573  static int adv748x_parse_csi2_lanes(struct adv748x_state *state,
6a18865d Niklas Söderlund 2018-11-28  574  				    unsigned int port,
6a18865d Niklas Söderlund 2018-11-28  575  				    struct device_node *ep)
6a18865d Niklas Söderlund 2018-11-28  576  {
6a18865d Niklas Söderlund 2018-11-28  577  	struct v4l2_fwnode_endpoint vep;
6a18865d Niklas Söderlund 2018-11-28  578  	unsigned int num_lanes;
6a18865d Niklas Söderlund 2018-11-28  579  	int ret;
6a18865d Niklas Söderlund 2018-11-28  580  
6a18865d Niklas Söderlund 2018-11-28  581  	if (port != ADV748X_PORT_TXA && port != ADV748X_PORT_TXB)
6a18865d Niklas Söderlund 2018-11-28  582  		return 0;
6a18865d Niklas Söderlund 2018-11-28  583  
6a18865d Niklas Söderlund 2018-11-28  584  	vep.bus_type = V4L2_MBUS_CSI2_DPHY;
6a18865d Niklas Söderlund 2018-11-28 @585  	ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(ep), &vep);
6a18865d Niklas Söderlund 2018-11-28  586  	if (ret)
6a18865d Niklas Söderlund 2018-11-28  587  		return ret;
6a18865d Niklas Söderlund 2018-11-28  588  
6a18865d Niklas Söderlund 2018-11-28  589  	num_lanes = vep.bus.mipi_csi2.num_data_lanes;
6a18865d Niklas Söderlund 2018-11-28  590  
6a18865d Niklas Söderlund 2018-11-28  591  	if (vep.base.port == ADV748X_PORT_TXA) {
6a18865d Niklas Söderlund 2018-11-28  592  		if (num_lanes != 1 && num_lanes != 2 && num_lanes != 4) {
6a18865d Niklas Söderlund 2018-11-28  593  			adv_err(state, "TXA: Invalid number (%u) of lanes\n",
6a18865d Niklas Söderlund 2018-11-28  594  				num_lanes);
6a18865d Niklas Söderlund 2018-11-28  595  			return -EINVAL;
6a18865d Niklas Söderlund 2018-11-28  596  		}
6a18865d Niklas Söderlund 2018-11-28  597  
6a18865d Niklas Söderlund 2018-11-28  598  		state->txa.num_lanes = num_lanes;
6a18865d Niklas Söderlund 2018-11-28  599  		adv_dbg(state, "TXA: using %u lanes\n", state->txa.num_lanes);
6a18865d Niklas Söderlund 2018-11-28  600  	}
6a18865d Niklas Söderlund 2018-11-28  601  
6a18865d Niklas Söderlund 2018-11-28  602  	if (vep.base.port == ADV748X_PORT_TXB) {
6a18865d Niklas Söderlund 2018-11-28  603  		if (num_lanes != 1) {
6a18865d Niklas Söderlund 2018-11-28  604  			adv_err(state, "TXB: Invalid number (%u) of lanes\n",
6a18865d Niklas Söderlund 2018-11-28  605  				num_lanes);
6a18865d Niklas Söderlund 2018-11-28  606  			return -EINVAL;
6a18865d Niklas Söderlund 2018-11-28  607  		}
6a18865d Niklas Söderlund 2018-11-28  608  
6a18865d Niklas Söderlund 2018-11-28  609  		state->txb.num_lanes = num_lanes;
6a18865d Niklas Söderlund 2018-11-28  610  		adv_dbg(state, "TXB: using %u lanes\n", state->txb.num_lanes);
6a18865d Niklas Söderlund 2018-11-28  611  	}
6a18865d Niklas Söderlund 2018-11-28  612  
6a18865d Niklas Söderlund 2018-11-28  613  	return 0;
6a18865d Niklas Söderlund 2018-11-28  614  }
6a18865d Niklas Söderlund 2018-11-28  615  

:::::: The code at line 585 was first introduced by commit
:::::: 6a18865da8e3ebc16b7783c126fbb18be91b5622 media: i2c: adv748x: store number of CSI-2 lanes described in device tree

:::::: TO: Niklas Söderlund <niklas.soderlund+renesas@...natech.se>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung@...nel.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (30698 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ