From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [freescale-fslc:pr/207 8473/15819] drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to incomplete type 'struct ci_hdrc_platform_data'
Date: Sun, 10 Jan 2021 07:40:42 +0800 [thread overview]
Message-ID: <202101100735.ZnpnOYRG-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4102 bytes --]
tree: https://github.com/Freescale/linux-fslc pr/207
head: 542efcb517375f400651e87a35dc11948908afa9
commit: d74f8108dce77b0fb2496cfe92461de9766e060e [8473/15819] MLK-23677-4 usb: chipidea: add tracepoint support for udc
config: i386-randconfig-a001-20210110 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/d74f8108dce77b0fb2496cfe92461de9766e060e
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/207
git checkout d74f8108dce77b0fb2496cfe92461de9766e060e
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
In file included from drivers/usb/chipidea/trace.h:18,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':
>> drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to incomplete type 'struct ci_hdrc_platform_data'
476 | struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
| ^~
In file included from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from drivers/usb/chipidea/trace.h:18,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':
>> drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to incomplete type 'struct ci_hdrc_platform_data'
476 | struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
| ^~
vim +476 drivers/usb/chipidea/ci.h
e443b333629f82ca Alexander Shishkin 2012-05-11 466
57677be5ef838743 Li Jun 2014-04-23 467 /**
57677be5ef838743 Li Jun 2014-04-23 468 * ci_otg_is_fsm_mode: runtime check if otg controller
57677be5ef838743 Li Jun 2014-04-23 469 * is in otg fsm mode.
19353881b4afc9e2 Peter Chen 2014-09-22 470 *
19353881b4afc9e2 Peter Chen 2014-09-22 471 * @ci: chipidea device
57677be5ef838743 Li Jun 2014-04-23 472 */
57677be5ef838743 Li Jun 2014-04-23 473 static inline bool ci_otg_is_fsm_mode(struct ci_hdrc *ci)
57677be5ef838743 Li Jun 2014-04-23 474 {
57677be5ef838743 Li Jun 2014-04-23 475 #ifdef CONFIG_USB_OTG_FSM
b0930d4cafb487a6 Li Jun 2015-07-09 @476 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
b0930d4cafb487a6 Li Jun 2015-07-09 477
57677be5ef838743 Li Jun 2014-04-23 478 return ci->is_otg && ci->roles[CI_ROLE_HOST] &&
b0930d4cafb487a6 Li Jun 2015-07-09 479 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support ||
b0930d4cafb487a6 Li Jun 2015-07-09 480 otg_caps->hnp_support || otg_caps->adp_support);
57677be5ef838743 Li Jun 2014-04-23 481 #else
57677be5ef838743 Li Jun 2014-04-23 482 return false;
57677be5ef838743 Li Jun 2014-04-23 483 #endif
57677be5ef838743 Li Jun 2014-04-23 484 }
57677be5ef838743 Li Jun 2014-04-23 485
:::::: The code at line 476 was first introduced by commit
:::::: b0930d4cafb487a663ac6780a0369d1a0f461bc2 usb: chipidea: update ci_otg_is_fsm_mode conditions
:::::: TO: Li Jun <jun.li@freescale.com>
:::::: CC: Felipe Balbi <balbi@ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33176 bytes --]
reply other threads:[~2021-01-09 23:40 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=202101100735.ZnpnOYRG-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.