mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Ingo Molnar <mingo@kernel.org>
Subject: drivers/media/i2c/adv748x/adv748x-core.c:585: undefined reference to `v4l2_fwnode_endpoint_parse'
Date: Tue, 19 Mar 2019 00:47:43 +0800	[thread overview]
Message-ID: <201903190041.sFReCHHm%lkp@intel.com> (raw)

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

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@ragnatech.se>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

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

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

                 reply	other threads:[~2019-03-18 16:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201903190041.sFReCHHm%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome