mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [andersson:wip/sc8180x-next-20220301-take2 5/27] drivers/gpu/drm/msm/dp/dp_hpd.c:83: undefined reference to `typec_mux_unregister'
Date: Wed, 30 Mar 2022 06:32:28 +0800	[thread overview]
Message-ID: <202203300600.W7zSpGZl-lkp@intel.com> (raw)

tree:   https://github.com/andersson/kernel wip/sc8180x-next-20220301-take2
head:   4e9e94d03691fd0820dcff8d0877ddb280b01f88
commit: e4014b0e8a0a46349e91bfb9ef44a59d5a4a2771 [5/27] drm/msm/dp: Add typec_mux implementation
config: microblaze-randconfig-r006-20220327 (https://download.01.org/0day-ci/archive/20220330/202203300600.W7zSpGZl-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/andersson/kernel/commit/e4014b0e8a0a46349e91bfb9ef44a59d5a4a2771
        git remote add andersson https://github.com/andersson/kernel
        git fetch --no-tags andersson wip/sc8180x-next-20220301-take2
        git checkout e4014b0e8a0a46349e91bfb9ef44a59d5a4a2771
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   microblaze-linux-ld: drivers/gpu/drm/msm/dp/dp_hpd.o: in function `dp_hpd_unregister_typec_mux':
>> drivers/gpu/drm/msm/dp/dp_hpd.c:83: undefined reference to `typec_mux_unregister'
   microblaze-linux-ld: drivers/gpu/drm/msm/dp/dp_hpd.o: in function `dp_hpd_mux_set':
>> drivers/gpu/drm/msm/dp/dp_hpd.c:55: undefined reference to `typec_mux_get_drvdata'
   microblaze-linux-ld: drivers/gpu/drm/msm/dp/dp_hpd.o: in function `dp_hpd_get':
>> drivers/gpu/drm/msm/dp/dp_hpd.c:109: undefined reference to `typec_mux_register'
>> microblaze-linux-ld: drivers/gpu/drm/msm/dp/dp_hpd.c:83: undefined reference to `typec_mux_unregister'


vim +83 drivers/gpu/drm/msm/dp/dp_hpd.c

    52	
    53	static int dp_hpd_mux_set(struct typec_mux *mux, struct typec_mux_state *state)
    54	{
  > 55		struct dp_hpd_private *dp_hpd = typec_mux_get_drvdata(mux);
    56		struct dp_usbpd *usbpd = &dp_hpd->dp_usbpd;
    57		struct typec_displayport_data *dp_data = state->data;
    58		int pin_assign = 0;
    59	
    60		if (dp_data) {
    61			pin_assign = DP_CONF_GET_PIN_ASSIGN(dp_data->conf);
    62			usbpd->hpd_irq = !!(dp_data->status & DP_STATUS_IRQ_HPD);
    63			usbpd->multi_func = pin_assign == DP_PIN_ASSIGN_C || DP_PIN_ASSIGN_E;
    64		}
    65	
    66		if (!pin_assign) {
    67			if (dp_hpd->connected) {
    68				dp_hpd->connected = false;
    69				dp_hpd->dp_cb->disconnect(dp_hpd->dev);
    70			}
    71		} else if (!dp_hpd->connected) {
    72			dp_hpd->connected = true;
    73			dp_hpd->dp_cb->configure(dp_hpd->dev);
    74		} else {
    75			dp_hpd->dp_cb->attention(dp_hpd->dev);
    76		}
    77	
    78		return 0;
    79	}
    80	
    81	static void dp_hpd_unregister_typec_mux(void *data)
    82	{
  > 83		typec_mux_unregister(data);
    84	}
    85	
    86	struct dp_usbpd *dp_hpd_get(struct device *dev, struct dp_usbpd_cb *cb)
    87	{
    88		struct typec_mux_desc mux_desc = {};
    89		struct dp_hpd_private *dp_hpd;
    90		int rc;
    91	
    92		if (!cb) {
    93			pr_err("invalid cb data\n");
    94			return ERR_PTR(-EINVAL);
    95		}
    96	
    97		dp_hpd = devm_kzalloc(dev, sizeof(*dp_hpd), GFP_KERNEL);
    98		if (!dp_hpd)
    99			return ERR_PTR(-ENOMEM);
   100	
   101		dp_hpd->dev = dev;
   102		dp_hpd->dp_cb = cb;
   103	
   104		dp_hpd->dp_usbpd.connect = dp_hpd_connect;
   105	
   106		mux_desc.fwnode = dev->fwnode;
   107		mux_desc.set = dp_hpd_mux_set;
   108		mux_desc.drvdata = dp_hpd;
 > 109		dp_hpd->mux = typec_mux_register(dev, &mux_desc);

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-03-29 22:33 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=202203300600.W7zSpGZl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®